/* =========================================================================
   La Guadalupana — landing page (v2)
   Layout, rhythm and interactions modeled on musa.com; every color, font,
   radius and shadow comes from assets/tokens.css (generated from
   design-system/design-tokens.json). Tints are color-mix() of tokens —
   no parallel palette. v1's invented dark navy is gone: dark moments use
   cobalt, calm moments use cream.

   Note: <body> deliberately does NOT use tokens.css's `.gua` class — its
   `.gua h1, .gua h2 { color: … }` rule overrides section heading colors
   on specificity (the v1 contrast bug).
   ========================================================================= */

:root {
  --ink: var(--gua-color-cobalt);
  --cream: var(--gua-color-cream);
  --on-brand: var(--gua-color-cream-on-brand);
  --pink: var(--gua-color-pink);
  --gold: var(--gua-color-gold);
  --jade: var(--gua-color-jade);

  /* token tints */
  --cobalt-lift: color-mix(in srgb, var(--gua-color-cream) 12%, var(--gua-color-cobalt));
  --cobalt-deep: color-mix(in srgb, #000 22%, var(--gua-color-cobalt));
  --on-brand-soft: color-mix(in srgb, var(--gua-color-cream-on-brand) 78%, transparent);
  --blush: color-mix(in srgb, var(--gua-color-pink) 9%, var(--gua-color-white));

  --display: var(--gua-font-display);
  --body: var(--gua-font-body);
  --gutter: clamp(16px, 5vw, 48px);
  --maxw: 1160px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--gua-size-body);
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, blockquote, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--pink); color: var(--gua-color-white);
  padding: 10px 16px; border-radius: var(--gua-radius-pill); text-decoration: none;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- shared bits ------------------------------------------------- */
.overline {
  font-size: var(--gua-size-overline);
  font-weight: var(--gua-weight-bold);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.overline--pink { color: var(--pink); }

.section-title {
  font-family: var(--display);
  font-weight: var(--gua-weight-black);
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.section-lead {
  margin-top: 14px;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--gua-text-muted);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--gua-radius-pill); border: 0;
  font-family: var(--body); font-weight: var(--gua-weight-bold);
  font-size: 17px; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--pink { background: var(--pink); color: var(--gua-color-white); box-shadow: 0 10px 24px color-mix(in srgb, var(--pink) 40%, transparent); }
.btn--cobalt { background: var(--ink); color: var(--on-brand); box-shadow: var(--gua-shadow-raised); }
.btn--ghost { background: transparent; color: var(--on-brand); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--on-brand) 40%, transparent); }
.btn--ghost:hover { background: color-mix(in srgb, var(--on-brand) 10%, transparent); }
.btn--block { width: 100%; }

/* Reveal-on-scroll only hides content once script.js is known to run
   (html.js is set inline in <head> and removed by a failsafe if the
   script never finishes). Without JS everything stays visible. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

.sticker { position: absolute; pointer-events: none; filter: drop-shadow(0 12px 18px rgba(0,0,0,.14)); will-change: transform; }

/* ---------- nav --------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  padding-top: max(12px, env(safe-area-inset-top));
  color: var(--on-brand);
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--ink) 30%, transparent);
}
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__brand img { width: 36px; height: 36px; object-fit: contain; }
.nav__brand span { font-family: var(--display); font-weight: var(--gua-weight-black); font-size: 21px; }
.nav__links { display: none; gap: 28px; }
.nav__links a { text-decoration: none; font-weight: var(--gua-weight-semibold); font-size: 15px; opacity: .9; }
.nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold); }
@media (min-width: 720px) { .nav__links { display: flex; } }

/* ---------- 1. hero ----------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(96px + env(safe-area-inset-top)) var(--gutter) 0;
  background: var(--ink);
  color: var(--on-brand);
  text-align: center;
}
/* The nicho: Musa's big "V" shape, turned into an altar niche arch. */
.hero__nicho {
  position: absolute; z-index: -2;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(96vw, 820px); height: 86%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(to bottom, var(--cobalt-lift), color-mix(in srgb, var(--gua-color-cream) 4%, var(--ink)));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gold) 30%, transparent);
}
.hero__nicho::after {
  content: ""; position: absolute; inset: 18px 18px 0;
  border-radius: 999px 999px 0 0;
  border: 2px dashed color-mix(in srgb, var(--gold) 28%, transparent);
  border-bottom: 0;
}
/* The resplandor: slow-turning gold rays, centered behind the Virgin's
   head (lives inside .hero__art so it tracks her size on every screen). */
.hero__rays {
  position: absolute; z-index: -1;
  left: 50%; top: 34%;
  width: 250%; aspect-ratio: 1;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--gold) 30%, transparent) 0deg 4deg, transparent 4deg 12deg);
  -webkit-mask: radial-gradient(circle, #000 8%, transparent 56%);
  mask: radial-gradient(circle, #000 8%, transparent 56%);
  transform: translate(-50%, -50%);
  animation: spin 120s linear infinite;
  will-change: transform;
  pointer-events: none;
}
@keyframes spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Shining stars: grow and shrink with a gold glow (from the codex
   branch's star-glow). Uses scale/rotate so it composes with parallax
   transforms set from script.js. */
.twinkle { animation: twinkle 2.8s ease-in-out var(--tw, 0s) infinite !important; }
@keyframes twinkle {
  0%, 100% { scale: .82; rotate: -8deg; filter: drop-shadow(0 0 0 transparent); }
  50% { scale: 1.16; rotate: 8deg; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--gold) 85%, transparent)); }
}
.hero__star { position: absolute; z-index: 0; pointer-events: none; }
.hero__star--a { width: 9%; left: 14%; top: 12%; }
.hero__star--b { width: 7%; right: 12%; top: 6%; }
.hero__star--c { width: 6%; right: 6%; top: 34%; }

.hero__copy { position: relative; z-index: 2; max-width: 900px; }
.hero__kicker {
  font-size: clamp(16px, 2.2vw, 20px); font-weight: var(--gua-weight-semibold);
  color: var(--on-brand-soft); margin-bottom: 10px;
}
.hero__title {
  font-family: var(--display); font-weight: var(--gua-weight-black);
  font-size: clamp(46px, 9.4vw, 104px);
  line-height: .98; letter-spacing: -.015em;
}
.hero__line { display: block; }
.hero__line--gold { color: var(--gold); }

/* rotating phrases: stacked in one cell, only the active (or leaving)
   one is visible. Words re-run word-in each time a phrase activates. */
.js-phrases { display: grid; }
.hero__phrase { grid-area: 1 / 1; align-self: center; }
.hero__phrase--mid { font-size: .76em; }
.hero__phrase--long { font-size: .55em; line-height: 1.04; }
.hero__phrase:not(.is-active):not(.is-leaving) { visibility: hidden; }
.hero__phrase:not(.is-active) .w { animation: none; }
.hero__phrase.is-leaving .w { opacity: 1; filter: none; transform: none;
     animation: word-out .6s var(--ease) forwards; animation-delay: calc(var(--i) * 40ms); }
@keyframes word-out { to { opacity: 0; filter: blur(12px); transform: translateY(-.25em); } }
/* used only under prefers-reduced-motion (see the block at the end) */
@keyframes phrase-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes phrase-fade-out { from { opacity: 1; } to { opacity: 0; } }

/* ---- the moment she speaks: destellos + letras ---------------------
   Two effects on every phrase change, switchable with data-fx on .hero.
   Both sit *behind* the words (z-index below .hero__copy text) so
   nothing ever lands on a letter. */

/* destellos: brand stars pop around the phrase and fade */
.hero__destellos { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.destello {
  position: absolute; width: var(--s, 26px); translate: -50% -50%;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--gold) 70%, transparent));
  animation: destello 1.3s var(--ease) forwards;
}
@keyframes destello {
  0%   { opacity: 0; scale: .15; rotate: -40deg; }
  30%  { opacity: 1; scale: 1; }
  100% { opacity: 0; scale: .5; rotate: 45deg; }
}

/* letras: each word catches the candlelight as it arrives */
.hero[data-fx~="letras"] .hero__phrase.is-active .w { animation-name: word-in-lit; animation-duration: 1.3s; }
@keyframes word-in-lit {
  0%   { opacity: 0; filter: blur(12px); transform: translateY(.25em); text-shadow: 0 0 0 transparent; }
  45%  { opacity: 1; filter: blur(0); transform: none;
         text-shadow: 0 0 .28em color-mix(in srgb, var(--gold) 80%, transparent),
                      0 0 .9em color-mix(in srgb, var(--gold) 40%, transparent); }
  100% { opacity: 1; filter: blur(0); transform: none; text-shadow: 0 0 0 transparent; }
}

/* word blur-in (words are wrapped by script.js) */
.w { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(.25em);
     animation: word-in 1s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + var(--d, 0ms)); }
@keyframes word-in { to { opacity: 1; filter: blur(0); transform: none; } }

.hero__arrow {
  display: block; width: clamp(150px, 20vw, 220px); margin: 6px auto -18px;
  fill: none; stroke: var(--on-brand); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
  transform: translateX(-12%);
}
.hero__arrow path { will-change: stroke-dashoffset;  stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.1s var(--ease) forwards; }
.hero__arrow-swoosh { animation-delay: 1.3s !important; stroke: var(--gold); }
.hero__arrow-line { animation-delay: 1.75s !important; }
.hero__arrow-head { animation-delay: 2.25s !important; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__art { position: relative; z-index: 1; isolation: isolate; margin-top: auto; width: min(94vw, 600px); will-change: transform; }
.hero__virgin {
  width: 100%; height: auto;
  margin-bottom: -14%;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.28));
  animation: rise 1.6s var(--ease) .5s both;
}
@media (max-width: 599px) {
  .hero { min-height: auto; padding-top: calc(84px + env(safe-area-inset-top)); }
  .hero__arrow { width: 96px; margin: 2px auto -8px; }
  .hero__arrow-swoosh { display: none; }
  .hero__art { width: 124vw; margin-top: 0; }
  .hero__float--1 { top: 50%; } .hero__float--3 { top: 54%; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18%) scale(.96); } to { opacity: 1; transform: none; } }

.hero__float { position: absolute; z-index: 0; filter: drop-shadow(0 14px 20px rgba(0,0,0,.25)); animation: bob 6s ease-in-out infinite alternate, pop .9s var(--ease) both; will-change: transform; }
.hero__float--1 { width: clamp(80px, 12vw, 150px); left: 4%; top: 58%; animation-delay: 0s, 1.2s; }
.hero__float--2 { width: clamp(44px, 5vw, 72px); right: 4%; top: 36%; animation-delay: -2s, 1.4s; }
.hero__float--3 { width: clamp(84px, 12vw, 150px); right: 3%; top: 62%; animation-delay: -4s, 1.6s; }
.hero__float--4 { width: clamp(34px, 4vw, 56px); left: 6%; top: 38%; animation-delay: -1s, 1.8s; }
@keyframes bob { from { translate: 0 0; rotate: -4deg; } to { translate: 0 -14px; rotate: 4deg; } }
@keyframes pop { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }

/* ---------- 2. manifesto ------------------------------------------------ */
.manifesto {
  position: relative; overflow: hidden;
  padding: clamp(96px, 14vw, 180px) var(--gutter);
  background: var(--cream);
}
.manifesto__inner { max-width: 940px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.manifesto__icon { width: 96px; margin: 0 auto 26px; }
.manifesto__text {
  font-family: var(--body); font-weight: var(--gua-weight-semibold);
  font-size: clamp(27px, 4.6vw, 50px); line-height: 1.18; letter-spacing: -.01em;
}
.manifesto__text + .manifesto__text { margin-top: 34px; }
.manifesto__text--strong { font-family: var(--display); font-weight: var(--gua-weight-black); font-size: clamp(32px, 5.6vw, 62px); }
.manifesto em { font-style: normal; }
.js-scrub .sw { opacity: .14; filter: blur(3px); transition: opacity .45s, filter .45s, color .45s; }
.js-scrub .sw.on { opacity: 1; filter: none; }
.js-scrub em .sw.on { color: var(--pink); }

.sticker--m1 { width: clamp(70px, 10vw, 130px); left: 3%; top: 12%; rotate: -10deg; }
.sticker--m2 { width: clamp(56px, 8vw, 100px); right: 5%; top: 8%; rotate: 12deg; }
.sticker--m3 { width: clamp(40px, 5vw, 64px); left: 16%; bottom: 14%; }
.sticker--m4 { width: clamp(66px, 9vw, 120px); right: 3%; bottom: 10%; rotate: -8deg; }
.sticker--m5 { width: clamp(60px, 8vw, 110px); left: -2%; top: 48%; rotate: 24deg; }
.sticker--m6 { width: clamp(52px, 7vw, 96px); right: 1%; top: 44%; rotate: 8deg; }
@media (max-width: 719px) {
  .sticker--m4, .sticker--m5, .sticker--m6 { display: none; }
  .sticker--m1 { top: 3%; } .sticker--m2 { top: 3%; }
  .sticker--m3 { bottom: 4%; } .sticker--m4 { bottom: 3%; }
}

/* ---------- 3. cobalt panel -------------------------------------------- */
.panel {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 70%, var(--cobalt-deep) 100%);
  color: var(--on-brand);
  border-radius: clamp(32px, 5vw, 64px);
  margin: 0 clamp(0px, 1.2vw, 16px);
  padding: clamp(72px, 10vw, 120px) 0 clamp(64px, 8vw, 100px);
}
.feature {
  display: grid; gap: 40px; align-items: center;
  max-width: var(--maxw); margin: 0 auto clamp(88px, 11vw, 140px);
  padding: 0 var(--gutter);
}
@media (min-width: 880px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature--flip .feature__copy { order: 2; }
}
.feature__title { font-family: var(--display); font-weight: var(--gua-weight-black); font-size: clamp(36px, 5.2vw, 60px); line-height: 1.02; letter-spacing: -.01em; }
.feature__lead { margin-top: 18px; font-size: clamp(19px, 2.2vw, 22px); font-weight: var(--gua-weight-bold); color: var(--gold); line-height: 1.3; }
.feature__body { margin-top: 14px; font-size: clamp(17px, 1.9vw, 20px); line-height: 1.55; color: var(--on-brand-soft); max-width: 30em; }
.feature__body strong { color: var(--gold); font-weight: var(--gua-weight-bold); }
.feature__device { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.js .feature__device.reveal { transform: translateY(40px) rotate(-2deg); }
.js .feature__device.reveal.is-visible { transform: none; }

/* phone mock */
.phone {
  position: relative; width: 268px; aspect-ratio: 9 / 19.2;
  border-radius: 46px; padding: 9px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--gua-color-cream) 38%, var(--ink)), color-mix(in srgb, var(--gua-color-cream) 18%, var(--ink)));
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.45), inset 0 0 0 1px color-mix(in srgb, var(--gua-color-white) 35%, transparent);
}
.phone__island { position: absolute; z-index: 3; top: 19px; left: 50%; transform: translateX(-50%); width: 82px; height: 24px; border-radius: 20px; background: #000; }
.phone__screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; display: flex; flex-direction: column; padding: 14px 14px 0; }
.phone__status { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: var(--gua-weight-bold); padding: 0 12px; height: 22px; }
.phone__status-icons { display: flex; gap: 3px; align-items: flex-end; }
.phone__status-icons i { display: block; width: 4px; background: currentColor; border-radius: 1px; }
.phone__status-icons i:nth-child(1) { height: 5px; } .phone__status-icons i:nth-child(2) { height: 7px; } .phone__status-icons i:nth-child(3) { height: 9px; }

.screen--cream { background: var(--cream); color: var(--ink); }
.app-brand { margin-top: 14px; text-align: center; font-family: var(--display); font-weight: var(--gua-weight-bold); font-size: 14px; }
.app-greet { display: flex; align-items: center; justify-content: space-between; margin: 6px 4px 8px; }
.app-greet p { font-family: var(--display); font-weight: var(--gua-weight-black); font-size: 20px; line-height: 1.05; text-align: left; }
.app-greet img { width: 66px; margin-right: -6px; }
.app-card { background: var(--ink); color: var(--on-brand); border-radius: var(--gua-radius-md); padding: 14px 12px 12px; text-align: center; }
.app-card__title { font-family: var(--display); font-weight: var(--gua-weight-black); font-size: 21px; line-height: 1.05; }
.app-card__caption { font-size: 10px; margin-top: 4px; opacity: .85; }
.app-card__btn { display: block; margin-top: 10px; background: var(--pink); color: var(--gua-color-white); border-radius: var(--gua-radius-pill); font-weight: var(--gua-weight-bold); font-size: 12px; padding: 7px; }
.app-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px; background: var(--gua-color-white); border: 1px solid var(--gua-border-subtle); border-radius: var(--gua-radius-md); }
.app-row img { width: 26px; }
.app-row p { flex: 1; font-size: 11px; font-weight: var(--gua-weight-bold); line-height: 1.2; text-align: left; }
.app-row span { font-weight: var(--gua-weight-black); }
.app-msg { margin-top: 10px; padding: 11px 12px; border-radius: var(--gua-radius-md); background: var(--blush); text-align: left; }
.app-msg b { display: block; font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); margin-bottom: 3px; }
.app-msg p { font-family: var(--display); font-size: 11.5px; line-height: 1.3; }
.app-tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 8px 0 18px; border-top: 1px solid var(--gua-border-subtle); }
.app-tabs span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9px; font-weight: var(--gua-weight-semibold); color: var(--gua-text-muted); }
.app-tabs span.is-active { color: var(--ink); }
.app-tabs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.app-tabs .is-active svg { fill: currentColor; }

.chat-head { display: flex; align-items: center; gap: 8px; margin: 14px 2px 8px; padding-bottom: 8px; border-bottom: 1px solid var(--gua-border-subtle); text-align: left; }
.chat-head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: var(--ink); }
.chat-head b { display: block; font-family: var(--display); font-size: 15px; }
.chat-head small { font-size: 9.5px; color: var(--gua-text-muted); }
.chat { display: flex; flex-direction: column; gap: 7px; text-align: left; }
.bubble { font-size: 10.5px; line-height: 1.35; padding: 8px 10px; border-radius: 14px; max-width: 86%; }
.bubble--me { align-self: flex-end; background: var(--ink); color: var(--on-brand); border-bottom-right-radius: 4px; }
.bubble--her { align-self: flex-start; background: var(--gua-color-white); border: 1px solid var(--gua-border-subtle); border-bottom-left-radius: 4px; }
.bubble--prayer { align-self: flex-start; background: var(--blush); border: 1px solid color-mix(in srgb, var(--pink) 25%, transparent); font-family: var(--display); font-size: 11px; }
.bubble--prayer b { display: block; font-family: var(--body); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); margin-bottom: 3px; }
.chat-input { margin: auto -4px 16px; padding: 10px 12px; border-radius: var(--gua-radius-pill); background: var(--gua-color-white); border: 1px solid var(--gua-border-subtle); font-size: 10.5px; color: var(--gua-text-muted); text-align: left; }

.screen--lock {
  color: var(--gua-color-white); text-align: center; padding-top: 44px;
  background:
    radial-gradient(120% 70% at 50% 110%, color-mix(in srgb, var(--pink) 70%, transparent), transparent 60%),
    radial-gradient(90% 60% at 50% 0%, var(--cobalt-lift), transparent 70%),
    var(--ink);
}
.lock__date { font-size: 12px; font-weight: var(--gua-weight-semibold); opacity: .9; }
.lock__time { font-family: var(--display); font-weight: var(--gua-weight-black); font-size: 70px; line-height: 1; margin-top: 2px; }
.lock__widget {
  margin: 16px 4px 0; display: flex; align-items: center; gap: 8px; text-align: left;
  padding: 10px; border-radius: 22px;
  background: color-mix(in srgb, var(--gua-color-white) 20%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gua-color-white) 35%, transparent);
}
.lock__widget img { width: 44px; flex: none; }
.lock__widget p { font-size: 10.5px; font-weight: var(--gua-weight-semibold); line-height: 1.3; }
.lock__flower { position: absolute; bottom: 38px; width: 118px; opacity: .95; }
.lock__flower--l { left: -14px; } .lock__flower--r { right: -14px; }
.lock__bar { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 96px; height: 4px; border-radius: 4px; background: var(--gua-color-white); }

/* sticker tags (Musa's "Keep the fire!" badges) */
.tag {
  position: absolute; z-index: 4;
  font-family: var(--body); font-weight: var(--gua-weight-black); font-size: 14px; line-height: 1.05; text-align: center;
  padding: 12px 16px; box-shadow: 0 10px 22px rgba(0,0,0,.25);
  animation: bob 5s ease-in-out infinite alternate;
}
.tag--gold { background: var(--gold); color: var(--ink); }
.tag--pink { background: var(--pink); color: var(--gua-color-white); }
.tag--jade { background: var(--jade); color: var(--gua-color-white); }
.tag--scallop { border-radius: 50%; padding: 18px 20px; outline: 2px dashed currentColor; outline-offset: -7px; }
.tag--speech { border-radius: 22px; }
.tag--speech::after { content: ""; position: absolute; left: 22px; bottom: -9px; border: 10px solid transparent; border-top-color: var(--pink); border-bottom: 0; }
.tag--ticket {
  border-radius: 8px;
  -webkit-mask: radial-gradient(circle 8px at 0 50%, transparent 98%, #000) , radial-gradient(circle 8px at 100% 50%, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.tag--t1 { left: calc(50% - 190px); top: 34%; rotate: -10deg; }
.tag--t2 { right: calc(50% - 196px); top: 14%; rotate: 8deg; }
.tag--t3 { left: calc(50% - 184px); bottom: 20%; rotate: -8deg; animation-delay: -2s; }
.tag--t4 { right: calc(50% - 188px); top: 46%; rotate: 10deg; }

.veladora-badge { position: absolute; z-index: 4; right: calc(50% - 200px); bottom: 12%; display: flex; flex-direction: column; align-items: center; rotate: 6deg; animation: bob 5.5s ease-in-out infinite alternate; }
.veladora-badge img { width: 96px; filter: drop-shadow(0 12px 20px rgba(0,0,0,.35)); }
.veladora-badge span { margin-top: -4px; font-weight: var(--gua-weight-black); font-size: 15px; color: var(--on-brand); text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.veladora-badge b { font-family: var(--display); font-size: 30px; display: block; line-height: 1; text-align: center; color: var(--gold); }

@media (max-width: 420px) {
  .tag { font-size: 12px; }
  .tag--t1, .tag--t3 { left: 2%; } .tag--t2, .tag--t4 { right: 2%; }
  .veladora-badge { right: 0; } .veladora-badge img { width: 78px; }
}

/* estampitas marquee */
.estampitas { overflow: hidden; padding: 30px 0 10px; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.estampitas__track { display: flex; gap: 22px; width: max-content; animation: marquee 48s linear infinite; }
.estampitas:hover .estampitas__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 11px)); } }
.estampa {
  position: relative; flex: none; width: 216px; height: 236px; overflow: hidden;
  border-radius: var(--gua-radius-xl); padding: 18px 18px 0;
  box-shadow: 0 24px 40px -14px rgba(0,0,0,.45);
  transition: transform .4s var(--ease);
}
.estampa:nth-child(odd) { rotate: -4deg; } .estampa:nth-child(even) { rotate: 3deg; translate: 0 12px; }
.estampa:hover { transform: scale(1.06) rotate(2deg); }
.estampa__count { font-family: var(--display); font-weight: var(--gua-weight-black); font-size: 52px; line-height: .9; }
.estampa__label { font-weight: var(--gua-weight-bold); font-size: 15px; line-height: 1.15; margin-top: 6px; max-width: 11em; }
.estampa img { position: absolute; right: -12px; bottom: -18px; width: 150px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.2)); }
.estampa--pink { background: var(--pink); color: var(--gua-color-white); }
.estampa--cream { background: var(--cream); color: var(--ink); }
.estampa--gold { background: var(--gold); color: var(--ink); }
.estampa--jade { background: var(--jade); color: var(--gua-color-white); }
.estampa--white { background: var(--gua-color-white); color: var(--ink); }

.estampitas__caption { text-align: center; padding: 48px var(--gutter) 0; }
.estampitas__caption h3 { font-family: var(--display); font-weight: var(--gua-weight-black); color: var(--gold); font-size: clamp(28px, 4vw, 42px); line-height: 1.05; margin-bottom: 16px; }
.estampitas__caption p { font-size: 18px; color: var(--on-brand-soft); margin-top: 8px; }
.estampitas__caption b { color: var(--on-brand); }

/* ---------- 4. rezar (interactive) ------------------------------------- */
.rezar { padding: clamp(96px, 12vw, 150px) var(--gutter) clamp(72px, 9vw, 110px); max-width: var(--maxw); margin: 0 auto; }
.rezar__head { text-align: center; max-width: 760px; margin: 0 auto; }

.intenciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 44px auto 0; max-width: 980px; }
@media (min-width: 760px) { .intenciones { grid-template-columns: repeat(6, 1fr); gap: 16px; } }
.intencion {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 6px 14px; border: 0; cursor: pointer;
  background: var(--gua-color-white); border-radius: var(--gua-radius-lg);
  box-shadow: var(--gua-shadow-card), inset 0 0 0 1px var(--gua-border-subtle);
  font-weight: var(--gua-weight-bold); font-size: 14px; line-height: 1.1; color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.intencion img { width: 62px; height: 62px; object-fit: contain; transition: transform .45s var(--ease); }
.intencion:hover { transform: translateY(-4px); }
.intencion:hover img { transform: scale(1.1) rotate(-6deg); }
.intencion.is-active { background: var(--blush); box-shadow: var(--gua-shadow-raised), inset 0 0 0 2.5px var(--pink); transform: translateY(-4px); }

.altar { display: grid; gap: 28px; margin-top: 36px; align-items: stretch; }
@media (min-width: 880px) { .altar { grid-template-columns: 1.55fr 1fr; } }
.altar__card {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-brand);
  border-radius: var(--gua-radius-xl); padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px) clamp(32px, 4vw, 44px);
  text-align: center; box-shadow: var(--gua-shadow-raised);
}
.altar__corner { position: absolute; top: -8px; width: clamp(84px, 11vw, 130px); opacity: .95; }
.altar__corner--l { left: -8px; } .altar__corner--r { right: -8px; }
.altar__for { font-size: var(--gua-size-overline); font-weight: var(--gua-weight-bold); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.altar__prayer {
  margin: 16px auto 0; max-width: 26em; min-height: 6.2em;
  font-family: var(--display); font-weight: var(--gua-weight-semibold);
  font-size: clamp(21px, 2.8vw, 29px); line-height: 1.3;
}
.altar__prayer .w { animation-duration: .7s; }
.altar__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.altar__veladora {
  position: relative; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  min-height: 340px; padding: 28px;
  border-radius: var(--gua-radius-xl);
  background: var(--gua-color-white);
  box-shadow: var(--gua-shadow-card), inset 0 0 0 1px var(--gua-border-subtle);
  transition: background .8s;
}
.altar__candle { position: relative; z-index: 1; width: min(230px, 70%); filter: grayscale(1) brightness(1.08) opacity(.55); transition: filter 1.1s var(--ease), transform 1.1s var(--ease); }
.altar__glow { position: absolute; left: 50%; top: 38%; width: 360px; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.3); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 70%, transparent), transparent 62%); opacity: 0; transition: opacity 1s, transform 1.2s var(--ease); }
.altar__done { position: relative; z-index: 1; margin-top: 16px; font-weight: var(--gua-weight-bold); font-size: 17px; color: var(--gua-text-muted); text-align: center; }
.altar__veladora.is-lit { background: var(--blush); }
.altar__veladora.is-lit .altar__candle { filter: none; transform: translateY(-6px) scale(1.04); animation: flicker 2.4s ease-in-out 1.1s infinite; }
.altar__veladora.is-lit .altar__glow { opacity: 1; transform: translate(-50%, -50%) scale(1); animation: breathe 3s ease-in-out 1.2s infinite alternate; }
.altar__veladora.is-lit .altar__done { color: var(--pink); }
@keyframes flicker { 0%,100% { filter: brightness(1); } 45% { filter: brightness(1.08) saturate(1.1); } 55% { filter: brightness(.97); } }
@keyframes breathe { to { transform: translate(-50%, -50%) scale(1.12); opacity: .8; } }
.spark { position: absolute; z-index: 2; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); pointer-events: none; animation: spark 1.6s var(--ease) forwards; }
@keyframes spark { from { opacity: 1; transform: translate(0,0) scale(1); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); } }

/* ---------- 5. frases carousel ----------------------------------------- */
.frases { padding: clamp(40px, 6vw, 80px) 0 clamp(96px, 12vw, 150px); overflow: hidden; }
.frases__head { text-align: center; max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.frases__track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 44px max(var(--gutter), calc((100vw - var(--maxw)) / 2)) 30px;
  scrollbar-width: none; cursor: grab; perspective: 1000px;
}
.frases__track::-webkit-scrollbar { display: none; }
.frases__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.frase-slide { flex: none; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
/* Phrase card per brand board (Figma 88:6): staggered lines, the key word
   much bigger and tucked up into the line above, 3–4 big 3D icons. */
.frase {
  position: relative; overflow: hidden; container-type: inline-size;
  width: min(84vw, 380px); aspect-ratio: 6 / 5;
  display: flex; align-items: center;
  border-radius: var(--gua-radius-xl);
  box-shadow: var(--gua-shadow-raised);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease);
  user-select: none;
}
.frase blockquote {
  position: relative; z-index: 1; width: 100%;
  font-family: var(--display); font-weight: var(--gua-weight-black);
  font-size: 12cqi; line-height: 1;
}
.frase blockquote > * { display: block; width: fit-content; margin-left: var(--x, 10%); white-space: nowrap; }
.frase blockquote em { font-style: normal; font-size: 1.72em; line-height: .86; margin-top: -.14em; margin-bottom: -.06em; }
.frase__ico {
  position: absolute; z-index: 0; left: var(--l); top: var(--t); width: var(--w);
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.15)); pointer-events: none;
}
.frase--cream { background: var(--cream); color: var(--ink); box-shadow: var(--gua-shadow-raised), inset 0 0 0 1px var(--gua-border-subtle); }
.frase--cream em { color: var(--pink); }
.frase--cobalt { background: var(--ink); color: var(--on-brand); }
.frase--cobalt em { color: var(--gold); }
.frase--blush { background: var(--blush); color: var(--ink); }
.frase--blush em { color: var(--pink); }
.frase--gold { background: var(--gold); color: var(--ink); }
.frase--gold em { color: var(--pink); }
.frase--jade { background: var(--jade); color: var(--gua-color-white); }
.frase--jade em { color: var(--gold); }
.frase__share {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border: 0; cursor: pointer;
  border-radius: var(--gua-radius-pill);
  background: var(--gua-color-white); color: var(--ink);
  box-shadow: var(--gua-shadow-card), inset 0 0 0 1px var(--gua-border-subtle);
  font-weight: var(--gua-weight-bold); font-size: 15px;
  transition: transform .25s var(--ease), background .25s;
}
.frase__share:hover { transform: translateY(-2px); background: var(--blush); }
.frase__share svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.frase__share[aria-busy="true"] { opacity: .6; pointer-events: none; }
.frases__dots { display: flex; justify-content: center; gap: 8px; }
.frases__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: color-mix(in srgb, var(--ink) 22%, transparent); cursor: pointer; transition: width .35s var(--ease), background .35s; }
.frases__dots button.is-active { width: 28px; background: var(--pink); }

/* ---------- 6. dorado ---------------------------------------------------- */
.dorado {
  display: grid; gap: 24px; align-items: center;
  margin: 0 clamp(0px, 1.2vw, 16px);
  padding: clamp(64px, 9vw, 110px) var(--gutter);
  border-radius: clamp(32px, 5vw, 64px);
  background: var(--gold); color: var(--ink);
}
@media (min-width: 880px) { .dorado { grid-template-columns: 1fr 1.1fr; padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); } }
.dorado__art { position: relative; width: min(100%, 420px); margin: 0 auto; }
.dorado__virgin { width: 100%; filter: drop-shadow(0 24px 36px color-mix(in srgb, var(--ink) 25%, transparent)); }
.sticker--d1 { width: 64px; left: -2%; top: 8%; }
.sticker--d2 { width: 80px; right: -4%; top: 30%; animation: bob 6s ease-in-out -2s infinite alternate; }
.sticker--d3 { width: 96px; left: -6%; bottom: 8%; animation: bob 5.5s ease-in-out -1s infinite alternate; }
.dorado__copy h2 { font-family: var(--display); font-weight: var(--gua-weight-black); font-size: clamp(36px, 5.4vw, 62px); line-height: 1.02; letter-spacing: -.01em; }
.dorado__copy p { margin-top: 18px; font-size: clamp(17px, 1.9vw, 20px); line-height: 1.55; font-weight: var(--gua-weight-medium); max-width: 30em; }
.dorado__copy .dorado__kicker { font-weight: var(--gua-weight-black); font-size: clamp(20px, 2.4vw, 25px); margin-bottom: 26px; }

/* ---------- 7. faq (split card from the codex branch) ----------------- */
.faq { padding: clamp(80px, 10vw, 130px) var(--gutter) clamp(80px, 10vw, 120px); }
.faq__shell {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; overflow: hidden;
  border-radius: clamp(28px, 4vw, 48px);
  background: var(--gua-color-white);
  box-shadow: var(--gua-shadow-card), inset 0 0 0 1px var(--gua-border-subtle);
}
@media (min-width: 880px) { .faq__shell { grid-template-columns: .8fr 1.2fr; } }
.faq__head { position: relative; background: var(--ink); color: var(--on-brand); padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px); }
.faq__head h2 { font-family: var(--display); font-weight: var(--gua-weight-black); font-size: clamp(38px, 5.4vw, 60px); line-height: 1; margin: 6px 0 16px; }
.faq__head p:last-child { font-size: 18px; color: var(--on-brand-soft); }
.faq__star { position: absolute; right: 24px; top: 24px; width: 56px; }
.faq__list { padding: clamp(8px, 2vw, 24px) clamp(20px, 4vw, 40px) clamp(20px, 3vw, 32px); }
.faq__item { border-bottom: 1px solid var(--gua-border-subtle); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-weight: var(--gua-weight-semibold); font-size: var(--gua-size-title); color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { flex: none; font-size: 24px; line-height: 1; color: var(--pink); transition: transform .3s var(--ease); }
.faq__item[open] .faq__plus { transform: rotate(45deg); }
.faq__item p { padding: 0 32px 22px 0; color: var(--gua-text-muted); font-size: 17px; line-height: 1.6; animation: faq-open .45s var(--ease); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } }
.faq__more { display: none; }
@media (max-width: 879px) { .faq__head { text-align: center; } .faq__star { width: 40px; right: 16px; top: 16px; } }
@media (max-width: 560px) {
  .faq__item summary { font-size: var(--gua-size-body); padding: 18px 0; }
  .faq__item:nth-child(n + 4) { display: none; }
  .faq__list.show-all .faq__item:nth-child(n + 4) { display: block; }
  .faq__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 0; border: 0; background: none; cursor: pointer; font-weight: var(--gua-weight-bold); color: var(--ink); }
}

/* ---------- footer ------------------------------------------------------ */
.footer {
  background: var(--ink); color: var(--on-brand); text-align: center;
  border-radius: clamp(32px, 5vw, 64px) clamp(32px, 5vw, 64px) 0 0;
  padding: 80px var(--gutter) calc(130px + env(safe-area-inset-bottom));
}
.footer__mark { width: 84px; margin: 0 auto 10px; }
.footer__word { font-family: var(--display); font-weight: var(--gua-weight-black); font-size: clamp(40px, 7vw, 72px); line-height: 1; }
.footer__tagline { font-family: var(--display); font-weight: var(--gua-weight-bold); color: var(--gold); font-size: clamp(20px, 3vw, 28px); margin-top: 6px; }
.footer__tags { margin-top: 44px; font-size: var(--gua-size-overline); font-weight: var(--gua-weight-bold); letter-spacing: .14em; text-transform: uppercase; color: var(--on-brand-soft); }
.footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.footer__links a { font-size: 15px; text-underline-offset: 4px; }
.footer__copy { margin-top: 32px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--gua-color-cream) 14%, transparent); font-size: 14px; color: color-mix(in srgb, var(--on-brand) 60%, transparent); }

/* ---------- floating store pills (always visible, like Musa) ------------ */
.stores {
  position: fixed; z-index: 50; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; gap: 10px; transform: translate(-50%, 140%);
  animation: stores-in .9s var(--ease) 2.4s forwards;
}
@keyframes stores-in { to { transform: translate(-50%, 0); } }
.store {
  display: flex; align-items: center; gap: 9px; height: 54px; padding: 0 22px 0 18px;
  border-radius: var(--gua-radius-pill); text-decoration: none; white-space: nowrap;
  font-weight: var(--gua-weight-bold); font-size: 16px; color: var(--on-brand);
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--ink) 35%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--gua-color-white) 28%, transparent);
  transition: transform .25s var(--ease), background .25s;
}
.store:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--ink) 88%, transparent); }
.store svg { width: 20px; height: 20px; }
@media (max-width: 360px) { .store { padding: 0 16px 0 14px; font-size: 14px; } }

/* ---------- modal -------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 60%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s; }
.modal__card { position: relative; width: min(100%, 420px); background: var(--cream); border-radius: var(--gua-radius-xl); padding: 36px 28px 28px; text-align: center; box-shadow: var(--gua-shadow-raised); animation: modal-in .45s var(--ease); }
.modal__art { width: 150px; margin: -110px auto 8px; filter: drop-shadow(0 16px 24px rgba(0,0,0,.2)); }
.modal__card h3 { font-family: var(--display); font-weight: var(--gua-weight-black); font-size: 30px; line-height: 1.05; }
.modal__card p { margin: 12px 0 22px; color: var(--gua-text-muted); font-size: 17px; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--gua-color-white); cursor: pointer; font-size: 15px; }
@keyframes fade { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(30px) scale(.96); } }

/* ---------- reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .w { opacity: 1; filter: none; transform: none; }
  .js-scrub .sw { opacity: 1; filter: none; }
  .js-scrub em .sw { color: var(--pink); }
  .hero__arrow path { will-change: stroke-dashoffset;  stroke-dashoffset: 0; }
  .estampitas__track { animation: none; }
  /* Keep the two ambient effects the page is built around, just gentler:
     the slow resplandor and the star shimmer (no movement across the
     screen). iPhones with Reduce Motion on would otherwise show neither. */
  .hero__rays { animation: spin 200s linear infinite !important; }
  .twinkle { animation: twinkle 4s ease-in-out var(--tw, 0s) infinite !important; }
  /* Her questions still change — that sequence is the hero's content, not
     decoration — but as a plain cross-fade of the whole phrase: no blur,
     no rise, no destellos, no glow. Opacity isn't movement, so this stays
     safe for motion sensitivity while avoiding a hard cut of 100px type.
     The word animations are silenced so they can't fight the fade. */
  .hero__phrase.is-active { animation: phrase-fade-in .5s ease both !important; }
  .hero__phrase.is-leaving { animation: phrase-fade-out .4s ease both !important; }
  .hero__phrase .w { animation: none !important; opacity: 1 !important; filter: none !important; transform: none !important; }
  .stores { transform: translate(-50%, 0); }
}
