/* SHAMA · aguashama.com.mx
   Concepto: alegría por los colores (garrafones arcoíris) + espiritualidad maya (jeroglíficos, jade).
   El fondo de toda la página es el arte de la etiqueta; el contenido va en paneles de vidrio. */
:root {
  --ink: #1d2733;
  --ink-2: #44505e;
  --jade: #2f8a5f;
  --jade-deep: #1e5f40;
  --jade-light: #7cc49b;
  --gold: #b8862b;
  --teal: #3aa7b8;
  --purple: #8a5cc7;
  --sun: #e8b04a;
  --pink: #e07a9a;
  --red: #d9534f;
  --vidrio: rgba(255, 252, 247, .72);
  --borde: rgba(255, 255, 255, .7);
  --wa: #25d366;
  --pad: clamp(16px, 5vw, 64px);
  --arcoiris: linear-gradient(90deg, #2fa58c, #3aa7b8 20%, #8a5cc7 45%, #e07a9a 70%, #e8b04a 90%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; color: var(--ink); background: #f3ece4; font: 16px/1.6 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; }
h1, h2 { font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); margin-bottom: 1rem; }
b { color: var(--ink); }
.muted { color: var(--ink-2); }
.nota { color: var(--ink-2); font-size: .95rem; }
.centro { text-align: center; margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--jade-deep); margin: 0 0 .9rem; padding: .38rem .85rem; border-radius: 99px; background: rgba(255,255,255,.7); border: 1px solid rgba(47,138,95,.3); }
.eyebrow.centro { display: table; }
.arcoiris { background: var(--arcoiris); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Fondo arcoíris con jeroglíficos (fijo, también en iPhone) ---------- */
.fondo-glifos { position: fixed; inset: -2%; z-index: -1; background:
    linear-gradient(180deg, rgba(248,243,236,.55), rgba(248,243,236,.35) 40%, rgba(248,243,236,.6)),
    url('../img/fondo-glifos.jpg') center/cover no-repeat;
  filter: saturate(1.25); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.55rem; border-radius: 99px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font: 600 1rem/1 'Inter', sans-serif; transition: transform .15s, filter .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.btn.primario { background: linear-gradient(180deg, #3aa576, var(--jade-deep)); color: #fff; box-shadow: 0 8px 22px rgba(30,95,64,.35); }
.btn.fantasma { background: rgba(255,255,255,.75); border-color: rgba(29,39,51,.18); color: var(--ink); }
.btn.wa { background: var(--wa); color: #06331b; }
.btn.sm { padding: .6rem 1.05rem; font-size: .9rem; }
.btn.grande { width: 100%; padding: 1.05rem; font-size: 1.05rem; }

/* ---------- Encabezado ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: 1.2rem; padding: .75rem var(--pad); transition: background .3s, box-shadow .3s; }
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--arcoiris); opacity: 0; transition: opacity .3s; }
.top.solido { background: rgba(255,252,247,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 6px 24px rgba(29,39,51,.08); }
.top.solido::after { opacity: 1; }
.marca { display: flex; align-items: center; gap: .55rem; margin-right: auto; }
.marca .glifo { width: 30px; }
.marca .palabra { width: 112px; filter: brightness(0) saturate(100%); opacity: .88; }
.menu { display: flex; gap: 1.5rem; }
.menu a { text-decoration: none; font-weight: 600; color: var(--ink); font-size: .93rem; }
.menu a:hover { color: var(--jade); }
.hamb { display: none; background: rgba(255,255,255,.7); border: 0; border-radius: 12px; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; }
.hamb span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.hamb[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.hamb[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Portada: video + explicación ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-velo { position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(250,246,240,.9) 0%, rgba(250,246,240,.7) 38%, rgba(250,246,240,.1) 70%, rgba(250,246,240,0) 100%),
    linear-gradient(0deg, rgba(243,236,228,.9) 0%, rgba(243,236,228,0) 22%); }
.hero-in { position: relative; width: 100%; max-width: 1280px; margin: 0 auto; padding: 110px var(--pad) 90px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); margin-bottom: 1.2rem; max-width: 12ch; }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 40ch; color: var(--ink-2); margin: 0 0 1.8rem; }
.acciones { display: flex; flex-wrap: wrap; gap: .8rem; }
.lema { margin: 2rem 0 0; font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: .08em; color: var(--jade-deep); }
.lema em { font-style: normal; background: var(--arcoiris); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bajar { position: absolute; left: 50%; bottom: 22px; width: 28px; height: 44px; border: 2px solid rgba(29,39,51,.45); border-radius: 99px; transform: translateX(-50%); }
.bajar span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--ink); animation: bajar 1.6s infinite; }
@keyframes bajar { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Bloques y paneles de vidrio ---------- */
.bloque { padding: clamp(2.5rem, 6vw, 5rem) var(--pad); max-width: 1280px; margin: 0 auto; }
.vidrio { background: var(--vidrio); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border: 1px solid var(--borde); border-radius: 32px; padding: clamp(1.6rem, 4.5vw, 3.5rem); box-shadow: 0 30px 60px rgba(60,40,60,.12); }
.intro { max-width: 60ch; font-size: 1.1rem; color: var(--ink-2); margin-bottom: 2.2rem; }

/* Beneficios */
.beneficios { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; }
.beneficios li { background: var(--vidrio); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--borde); border-top: 4px solid var(--c); border-radius: 20px; padding: 1.1rem 1rem; display: flex; flex-direction: column; gap: .15rem; color: var(--ink-2); font-size: .88rem; box-shadow: 0 14px 30px rgba(60,40,60,.08); }
.beneficios .ico { font-size: 1.5rem; margin-bottom: .25rem; }
.beneficios b { font-size: 1.08rem; color: var(--ink); }

/* Productos */
.prod { position: relative; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px rgba(60,40,60,.16); transition: transform .25s, box-shadow .25s; }
.prod:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 26px 50px rgba(60,40,60,.22), 0 0 0 3px var(--c, var(--jade)); }
.prod img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s; }
.prod:hover img { transform: scale(1.05); }
.prod .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.6rem 1rem .95rem; background: linear-gradient(0deg, rgba(15,20,26,.82), rgba(15,20,26,0)); display: flex; align-items: center; gap: .55rem; color: #fff; }
.prod h4 { font-family: 'Cinzel', serif; font-size: 1.2rem; color: #fff; margin-right: auto; }
.prod p { margin: 0; font-size: .82rem; color: rgba(255,255,255,.8); }
.punto { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px rgba(255,255,255,.85); flex: none; }
.garrafones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
/* Nombres largos ("Transparente"): letra un poco menor y, si no cabe, el botón baja a otra línea */
.garrafones .prod .info { flex-wrap: wrap; row-gap: .5rem; }
.garrafones .prod h4 { font-size: clamp(1rem, 1.35vw, 1.2rem); min-width: 0; }
.garrafones .prod .btn { margin-left: auto; }
.colores .nota { margin-top: 1.6rem; }
.botellas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin: 1.6rem 0 1.4rem; }
.botellas .prod img { aspect-ratio: 4/3; }
.botellas .info { display: grid; grid-template-columns: 1fr auto; row-gap: .1rem; }
.botellas .info .btn { grid-row: 1 / span 2; grid-column: 2; }

/* A domicilio */
.dos { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
.video-marco { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 16/9; box-shadow: 0 20px 40px rgba(60,40,60,.2); background: #ddd; }
.video-marco video { width: 100%; height: 100%; object-fit: cover; }
.pasos { counter-reset: p; list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; gap: .9rem; }
.pasos li { counter-increment: p; position: relative; padding-left: 3.1rem; color: var(--ink-2); font-size: 1.04rem; }
.pasos li::before { content: counter(p); position: absolute; left: 0; top: -.15rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-family: 'Cinzel', serif; font-weight: 700; color: #fff; background: var(--c); box-shadow: 0 6px 14px rgba(0,0,0,.15); }

/* Esencia (espiritualidad) */
.esencia { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); border-radius: 32px; overflow: hidden; padding: clamp(1.6rem, 4.5vw, 3.5rem);
  background: radial-gradient(circle at 25% 55%, rgba(63,154,107,.55), transparent 55%), linear-gradient(135deg, rgba(14,28,22,.92), rgba(24,20,40,.9)), url('../img/fondo-altar.jpg') center/cover; color: #f2efe4; box-shadow: 0 30px 60px rgba(20,20,40,.3); }
.esencia .eyebrow { background: rgba(255,255,255,.1); color: var(--jade-light); border-color: rgba(124,196,155,.4); }
.esencia h2 { color: #fff; }
.esencia p { color: #d9d5c9; font-size: 1.08rem; }
.esencia-img img { width: 100%; max-width: 360px; margin: 0 auto; filter: drop-shadow(0 25px 35px rgba(0,0,0,.55)); animation: flotar 6s ease-in-out infinite; }
.esencia .firma { font-family: 'Cinzel', serif; font-size: 1.25rem; margin-top: 1.4rem; background: var(--arcoiris); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Pedido */
.pedido-card { display: grid; grid-template-columns: .9fr 1.1fr; padding: 0; overflow: hidden; }
.pedido-arte { display: grid; place-items: center; padding: 2rem; background: radial-gradient(circle at 50% 55%, rgba(255,255,255,.85), rgba(255,255,255,.2) 65%); }
.pedido-arte img { width: 100%; max-width: 520px; filter: drop-shadow(0 18px 26px rgba(0,0,0,.25)); }
.form { padding: clamp(1.6rem, 4vw, 3rem); }
.form h2 { margin-bottom: .4rem; }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 1.4rem 0 1.3rem; }
.campos .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: .35rem; font-size: .84rem; color: var(--ink-2); font-weight: 600; }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: rgba(255,255,255,.92); border: 1px solid rgba(29,39,51,.14); border-radius: 12px; padding: .8rem .9rem; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--jade); box-shadow: 0 0 0 3px rgba(47,138,95,.2); }
input.mal { border-color: var(--red); }
.error { color: var(--red); font-size: .9rem; min-height: 1.2em; margin: .6rem 0 0; }

/* Agüita Japii */
.japii-card { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 1rem; text-decoration: none; border-radius: 32px; overflow: hidden; padding: clamp(1.6rem, 4vw, 3rem) clamp(1.6rem, 4vw, 3rem) 0;
  background: linear-gradient(160deg, #cfe8ff 0%, #9cd0f5 45%, #ffd9a8 100%); box-shadow: 0 30px 60px rgba(40,80,140,.25); transition: transform .25s; }
.japii-card:hover { transform: translateY(-4px); }
.japii-txt { align-self: center; padding-bottom: clamp(1.6rem, 4vw, 3rem); }
.japii-logo { width: min(320px, 70%); margin-bottom: 1rem; }
.japii-txt p { font-size: 1.12rem; color: #1f2a44; max-width: 38ch; margin: 0 0 1.4rem; }
.japii-btn { background: #f28b1e; color: #1f2a44; font-weight: 700; box-shadow: 0 6px 0 #c96f0e; }
.japii-plip { position: relative; display: grid; justify-items: center; }
.japii-plip img { width: 100%; max-width: 380px; filter: drop-shadow(0 16px 20px rgba(40,80,140,.3)); }
.globo { position: relative; background: #fff; color: #1f2a44; font-weight: 700; padding: .7rem 1.1rem; border-radius: 18px; box-shadow: 0 10px 24px rgba(40,80,140,.2); margin-bottom: -.4rem; z-index: 1; animation: flotar 4s ease-in-out infinite; }
.globo::after { content: ''; position: absolute; left: 50%; bottom: -10px; margin-left: -10px; border: 10px solid transparent; border-top-color: #fff; border-bottom: 0; }

/* Pie: vidrio claro sobre el fondo de jeroglíficos, como el resto de la página */
.pie { position: relative; margin: 2rem var(--pad) 0; padding: 3rem clamp(1.4rem, 4vw, 3rem) 1.6rem; max-width: 1280px; border-radius: 32px 32px 0 0;
  background: var(--vidrio); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border: 1px solid var(--borde); border-bottom: 0; box-shadow: 0 -10px 40px rgba(60,40,60,.08); }
@media (min-width: 1408px) { .pie { margin-left: auto; margin-right: auto; } }
.pie::before { content: ''; position: absolute; left: 28px; right: 28px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--arcoiris); }
.pie-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; align-items: start; }
.pie-logo { width: 200px; filter: drop-shadow(0 8px 14px rgba(30,95,64,.25)); }
.pie-lema { font-family: 'Cinzel', serif; font-weight: 600; margin: 1rem 0 0; line-height: 1.5; background: var(--arcoiris); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pie h4 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--jade-deep); margin-bottom: .9rem; }
.pie a, .pie span { display: block; text-decoration: none; color: var(--ink-2); margin-bottom: .45rem; font-weight: 500; }
.pie a:hover { color: var(--jade); }
.legal { margin: 2.2rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(29,39,51,.1); color: var(--ink-2); font-size: .82rem; }

/* Botón de música: vive en el encabezado para no tapar el contenido */
.musica { display: inline-flex; align-items: center; gap: .5rem; flex: none; border: 1px solid rgba(29,39,51,.14); cursor: pointer; background: rgba(255,255,255,.75); color: var(--ink); font: 600 .88rem 'Inter', sans-serif; padding: .5rem .85rem; border-radius: 99px; }
.musica[hidden] { display: none; }
.musica:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.musica .ondas { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.musica .ondas i { width: 3px; height: 4px; border-radius: 2px; background: var(--jade); }
.musica .ondas i:nth-child(2) { background: var(--purple); } .musica .ondas i:nth-child(3) { background: var(--pink); }
.musica.on .ondas i { animation: onda .9s ease-in-out infinite; } .musica.on .ondas i:nth-child(2) { animation-delay: .15s; } .musica.on .ondas i:nth-child(3) { animation-delay: .3s; }
.musica.pend { background: linear-gradient(90deg, #2fa58c, #8a5cc7, #e07a9a); color: #fff; border-color: transparent; animation: latido 1.6s ease-in-out infinite; }
.musica.pend .ondas i { background: #fff; }
@media (max-width: 860px) {
  /* En celular: solo el ícono, redondo, junto al menú */
  .musica { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .musica .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@keyframes onda { 0%, 100% { height: 4px; } 50% { height: 14px; } }
@keyframes latido { 0%, 100% { box-shadow: 0 0 0 0 rgba(138,92,199,.55); } 50% { box-shadow: 0 0 0 10px rgba(138,92,199,0); } }

.wa-flotante { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s; }
.wa-flotante:hover { transform: scale(1.08); }

/* Aparición al hacer scroll */
.aparece { opacity: 0; translate: 0 26px; transition: opacity .8s ease, translate .8s ease; }
.aparece.visto { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .beneficios { grid-template-columns: repeat(3, 1fr); }
  .garrafones, .botellas { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu { position: fixed; inset: 68px 12px auto 12px; flex-direction: column; gap: 0; background: rgba(255,252,247,.97); border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,.15); padding: .5rem 1.2rem; transform: translateY(-140%); transition: transform .3s; }
  .menu.abierto { transform: none; }
  .menu a { padding: .9rem 0; border-bottom: 1px solid rgba(29,39,51,.08); font-size: 1.05rem; }
  .menu a:last-child { border-bottom: 0; }
  .hamb { display: flex; }
  .top .btn.wa { display: none; }
  .hero-velo { background: linear-gradient(0deg, rgba(250,246,240,.95) 0%, rgba(250,246,240,.82) 55%, rgba(250,246,240,.25) 100%); }
  .hero { align-items: flex-end; }
  .hero-in { padding-bottom: 80px; }
  .dos, .pedido-card, .esencia, .japii-card { grid-template-columns: 1fr; }
  .esencia-img img { max-width: 220px; }
  .pedido-arte { padding: 1.5rem 1.5rem 0; }
  .pedido-arte img { max-width: 380px; }
  .japii-plip img { max-width: 260px; }
  .pie { margin-left: 12px; margin-right: 12px; }
  .pie-in { grid-template-columns: 1fr 1fr; }
  .pie-in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .beneficios { grid-template-columns: repeat(2, 1fr); }
  .garrafones { gap: .7rem; }
  .garrafones .prod .info { flex-wrap: wrap; padding: 2rem .75rem .75rem; }
  .garrafones .prod h4 { font-size: 1rem; }
  .garrafones .prod .btn { width: 100%; }
  .botellas { gap: .7rem; }
  .botellas .info { grid-template-columns: 1fr; padding: 2rem .75rem .75rem; }
  .botellas .info .btn { grid-row: auto; grid-column: 1; width: 100%; margin-top: .45rem; }
  .botellas .prod h4 { font-size: 1rem; }
  .botellas .prod p { display: none; }
  .campos { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .esencia-img img, .globo, .bajar span, .musica, .musica .ondas i { animation: none !important; }
  .aparece { opacity: 1; translate: none; transition: none; }
  html { scroll-behavior: auto; }
}
