/* ============================================================
   Adrian Web — Estudio de diseño web
   Dirección: galería cinematográfica. El trabajo es el héroe.
   Negro neutro · azul cobalto como acento preciso · tipografía editorial
   ============================================================ */

:root {
  --ink:    #08080A;   /* fondo casi negro, neutro (no navy) */
  --ink-1:  #0E0E11;
  --ink-2:  #131317;
  --raise:  #0D0D10;   /* superficie elevada para secciones */
  --line:   rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.15);
  --hair:   rgba(255,255,255,.055);

  --chalk:  #F0F0F1;   /* texto principal, no blanco puro */
  --fog:    #A4A4AC;   /* texto secundario (AA sobre negro) */
  --fog-2:  #7C7C85;   /* terciario / mono */

  --cobalt: #3B6DFF;   /* acento de marca, usado con cuentagotas */
  --cobalt-soft: #83A6FF;

  --paper:  #F3F1EC;   /* para el mockup dental claro */

  --maxw: 1240px;
  --ease: cubic-bezier(.22,.7,.24,1);

  --f-disp: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-body: 'Hanken Grotesk', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--cobalt); color: #fff; }

/* Foco de teclado visible (accesibilidad / navegación por teclado) */
:focus-visible { outline: 2px solid var(--cobalt-soft); outline-offset: 3px; border-radius: 3px; }
a:focus-visible, .btn:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cobalt-soft); outline-offset: 4px;
}
.wa-link:focus-visible, .wa-pill:focus-visible { outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 32px; }
.mono { font-family: var(--f-mono); font-weight: 400; letter-spacing: -.01em; }

/* Film grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.aw-letters { stroke: var(--chalk); stroke-width: 5.5; }
.aw-slash   { stroke: var(--cobalt); stroke-width: 6; }
.brand__text { font-family: var(--f-disp); font-weight: 700; font-size: 1.04rem; letter-spacing: -.02em; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(11,11,12,.72); backdrop-filter: blur(16px) saturate(150%); border-bottom-color: var(--line); }
.nav__row { display: flex; align-items: center; gap: 28px; height: 74px; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { font-size: .9rem; color: var(--fog); display: inline-flex; align-items: baseline; gap: 7px; transition: color .3s; }
.nav__links a:hover { color: var(--chalk); }
.nav__links .idx { font-family: var(--f-mono); font-size: .68rem; color: var(--cobalt); }
.wa-link {
  font-family: var(--f-mono); font-size: .82rem; color: var(--chalk);
  border: 1px solid var(--line-2); padding: 9px 15px; border-radius: 2px;
  transition: background .3s, border-color .3s, color .3s;
}
.wa-link:hover { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.wa-link__arrow { display: inline-block; transition: transform .3s var(--ease); }
.wa-link:hover .wa-link__arrow { transform: translate(2px,-2px); }

.burger { display: none; width: 40px; height: 40px; flex-direction: column; gap: 6px; align-items: center; justify-content: center; margin-left: auto; }
.burger span { width: 22px; height: 1.5px; background: var(--chalk); transition: transform .3s var(--ease), opacity .3s; }
.nav.is-open .burger span:nth-child(1) { transform: translateY(3.7px) rotate(45deg); }
.nav.is-open .burger span:nth-child(2) { transform: translateY(-3.7px) rotate(-45deg); }
.nav__drawer { display: none; flex-direction: column; padding: 8px 32px 26px; background: rgba(11,11,12,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav__drawer a { padding: 15px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.nav__drawer .drawer__cta { color: var(--cobalt-soft); border: none; }
.nav.is-open .nav__drawer { display: flex; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-weight: 500; font-size: .96rem;
  padding: 14px 24px; border-radius: 2px; white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn__ico { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .btn__ico { transform: translate(3px,-3px); }
.btn--solid { background: var(--chalk); color: var(--ink); }
.btn--solid:hover { background: #fff; box-shadow: 0 12px 40px -12px rgba(255,255,255,.4); transform: translateY(-2px); }
.btn--line { color: var(--chalk); border: 1px solid var(--line-2); }
.btn--line:hover { border-color: var(--chalk); }
.btn--big { padding: 18px 34px; font-size: 1.05rem; }
/* Beacon: firma de luz cobalto bajo EL CTA principal (solo el del hero) */
.btn--beacon { position: relative; }
.btn--beacon::after {
  content: ''; position: absolute; left: 10%; right: 10%; bottom: -11px; height: 14px;
  border-radius: 999px; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(59,109,255,.7) 30%, rgba(131,166,255,.55) 70%, transparent);
  filter: blur(13px); opacity: .5;
  transition: opacity .45s var(--ease);
}
.btn--beacon:hover::after { opacity: .9; }

/* ---------- Hero ---------- */
.hero { padding: 172px 0 96px; position: relative; z-index: 2; }
.hero__top { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 46px; }
.tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .02em;
  color: var(--chalk); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px;
}
.tag--muted { color: var(--fog); }
.tag__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 0 0 rgba(47,107,255,.6); animation: dot 2.6s infinite; }
@keyframes dot { 0%{ box-shadow:0 0 0 0 rgba(47,107,255,.55);} 70%{ box-shadow:0 0 0 8px rgba(47,107,255,0);} 100%{ box-shadow:0 0 0 0 rgba(47,107,255,0);} }

.hero__title {
  font-family: var(--f-disp); font-weight: 700;
  font-size: clamp(2.9rem, 8.4vw, 7.2rem);
  line-height: .96; letter-spacing: -.045em;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__title .line--accent > span { color: var(--cobalt-soft); }

.hero__foot { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--line); }
.hero__lead { max-width: 40ch; color: var(--fog); font-size: 1.08rem; }
.hero__lead em { color: var(--chalk); font-style: italic; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__meta { margin-top: 30px; color: var(--fog-2); font-size: .78rem; letter-spacing: .04em; }

/* ---------- Section heads ---------- */
.head { max-width: 760px; margin-bottom: 70px; }
.head__label { color: var(--cobalt-soft); font-size: .8rem; letter-spacing: .04em; display: block; margin-bottom: 24px; }
.head__title { font-family: var(--f-disp); font-weight: 700; font-size: clamp(2.1rem, 5vw, 3.8rem); line-height: 1.02; letter-spacing: -.035em; }
.head__note { margin-top: 20px; color: var(--fog); font-size: 1.1rem; }

/* ===== Proyectos en vivo ===== */
.live { padding: clamp(64px, 9vw, 118px) 0; }
.live__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(34px, 5vw, 54px); }
.live__card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 30px 28px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--ink-1); text-decoration: none; color: var(--chalk);
  transition: border-color .35s ease, transform .35s ease, background .35s ease;
}
.live__card:hover { border-color: var(--cobalt); transform: translateY(-4px); background: var(--ink-2); }
.live__type { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt-soft); }
.live__name { font-family: var(--f-disp); font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.5rem); letter-spacing: -.03em; line-height: 1; margin-top: 4px; }
.live__go { margin-top: auto; padding-top: 26px; font-size: .82rem; color: var(--fog); display: inline-flex; align-items: center; gap: 8px; }
.live__arrow { transition: transform .3s ease; }
.live__card:hover .live__go { color: var(--chalk); }
.live__card:hover .live__arrow { transform: translate(3px, -3px); }
@media (max-width: 820px) { .live__grid { grid-template-columns: 1fr; } }

/* ---------- Work / cases ---------- */
.work { padding: 60px 0 40px; position: relative; z-index: 2; }
.case { padding: 46px 0; }
.case__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: center; }
.case--rev .case__grid { grid-template-columns: 1fr 1.5fr; }
.case--rev .case__view { order: 2; }

.case__info { align-self: center; }
.case__idx { color: var(--cobalt-soft); font-size: .78rem; letter-spacing: .04em; }
.case__name { font-family: var(--f-disp); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.4rem); letter-spacing: -.03em; margin: 12px 0 22px; }
.case__need, .case__sol { color: var(--fog); font-size: 1rem; margin-bottom: 14px; max-width: 44ch; }
.case__need strong, .case__sol strong { color: var(--chalk); font-weight: 600; }
.case__tag { display: inline-block; margin-top: 12px; color: var(--cobalt-soft); font-size: .82rem; }
.case__result { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hair); }
.case__result-num { font-family: var(--f-disp); font-weight: 800; font-size: clamp(2.5rem, 4.2vw, 3.3rem); line-height: 1; letter-spacing: -.03em; color: var(--cobalt-soft); flex-shrink: 0; }
.case__result-lbl { font-size: .92rem; color: var(--fog); line-height: 1.35; }
.case__result-lbl strong { color: var(--chalk); font-weight: 600; }
.case__result-lbl .mono { display: inline-block; margin-top: 3px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt-soft); }
/* Sparkline: el crecimiento del caso, dibujado (dato decorativo; la cifra real va en texto) */
.case__spark { width: 92px; height: 37px; flex-shrink: 0; margin-left: auto; align-self: center; }
.case__spark-line { fill: none; stroke: var(--cobalt-soft); stroke-width: 1.7; stroke-linecap: round; }
.case[data-reveal] .case__spark-line { stroke-dasharray: 150; stroke-dashoffset: 150; transition: stroke-dashoffset 1.3s var(--ease) .45s; }
.case[data-reveal] .case__spark-area { opacity: 0; transition: opacity .9s var(--ease) 1s; }
.case[data-reveal].is-in .case__spark-line { stroke-dashoffset: 0; }
.case[data-reveal].is-in .case__spark-area { opacity: 1; }
/* CTA por caso: cada proyecto es un punto de venta */
.case__cta {
  display: inline-block; margin-top: 20px; font-size: .82rem; letter-spacing: .02em;
  color: var(--cobalt-soft); position: relative; transition: color .3s;
}
.case__cta::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px;
  background: var(--cobalt-soft); transition: right .4s var(--ease);
}
.case__cta:hover { color: var(--chalk); }
.case__cta:hover::after { right: 0; background: var(--chalk); }

/* Browser chrome */
.browser {
  border-radius: 12px; overflow: hidden; background: var(--ink-1);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  will-change: transform;
}
.case__view:hover .browser { transform: translateY(-6px); box-shadow: 0 60px 120px -30px rgba(0,0,0,1); }
.browser__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #0e0e11; border-bottom: 1px solid var(--line); }
.browser__bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #2a2a30; }
.browser__url { margin-left: 14px; color: var(--fog); font-size: .74rem; background: #17171b; padding: 4px 14px; border-radius: 999px; }

/* Mini-site canvas */
.site { position: relative; aspect-ratio: 16 / 10; overflow: hidden; isolation: isolate; }
.site__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
/* Art direction: graded so the stock reads "commissioned", consistent per brand */
.site--brasa .site__bg { filter: contrast(1.09) saturate(1.06) brightness(.82); transform: scale(1.06); }
.site--forja .site__bg { filter: grayscale(.42) contrast(1.18) brightness(.68); transform: scale(1.06); }
.site__split-img img { filter: contrast(1.04) saturate(.94) brightness(1.02); }
/* Colour-grade tint (duotone-ish) */
.site::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  mix-blend-mode: color; opacity: .32;
}
.site--brasa::before { background: linear-gradient(175deg, #4a2408, #1c100a 70%); }
.site--forja::before { background: linear-gradient(175deg, #14213f, #05070e 70%); }
.site--vida::before { display: none; }
/* Grain per image = film / commissioned feel */
.site::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .10; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site--vida::after { opacity: .05; }
.site__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.12) 40%, rgba(0,0,0,.72)); }
.site__scrim--forja { background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.16) 35%, rgba(0,0,0,.86)); }
.site__nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 4.5% 5%; }
.site__logo { color: #fff; font-weight: 700; font-size: clamp(.8rem, 2vw, 1.15rem); letter-spacing: .18em; }
.site__logo--serif { font-family: Georgia, 'Times New Roman', serif; letter-spacing: .3em; font-weight: 400; }
.site__logo--forja { font-family: var(--f-disp); font-weight: 800; letter-spacing: .12em; }
.site__menu { display: flex; gap: clamp(8px, 1.6vw, 20px); }
.site__menu a { color: rgba(255,255,255,.82); font-size: clamp(.56rem, 1.15vw, .78rem); letter-spacing: .02em; }
.site__hero { position: relative; z-index: 2; padding: 0 5% 6%; display: flex; flex-direction: column; gap: clamp(8px,1.6vw,16px); position: absolute; bottom: 0; left: 0; right: 0; }
.site__hero--center { align-items: center; text-align: center; padding-bottom: 8%; }
.site__eyebrow { color: rgba(255,255,255,.72); font-size: clamp(.52rem, 1.1vw, .72rem); letter-spacing: .28em; text-transform: uppercase; }
.site__eyebrow--forja { color: var(--cobalt-soft); }
.site__h1 { color: #fff; font-family: var(--f-disp); font-weight: 700; font-size: clamp(1.4rem, 4.6vw, 2.9rem); line-height: .98; letter-spacing: -.02em; }
.site__h1--serif { font-family: Georgia, serif; font-weight: 400; letter-spacing: 0; }
.site__h1--forja { text-transform: uppercase; font-weight: 800; letter-spacing: -.01em; font-size: clamp(1.7rem, 5.4vw, 3.4rem); }
.site__btn { align-self: flex-start; font-size: clamp(.58rem, 1.2vw, .8rem); font-weight: 600; padding: clamp(7px,1.3vw,11px) clamp(14px,2.4vw,22px); border-radius: 999px; }
.site__hero--center .site__btn { align-self: center; }
.site__btn--warm { background: #C4522A; color: #fff; }
.site__btn--forja { background: #3666F5; color: #fff; border-radius: 3px; text-transform: uppercase; letter-spacing: .06em; }
.site__btn--teal { background: #0C7C7C; color: #fff; }

/* Chips glass flotantes: producto vivo dentro de cada preview */
.site__chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: clamp(.5rem, 1.05vw, .68rem); letter-spacing: .02em;
  color: rgba(255,255,255,.94);
  background: rgba(16,16,20,.5); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: clamp(4px,.8vw,7px) clamp(8px,1.4vw,12px); border-radius: 999px;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12);
}
.site__chip--tr { top: 16%; right: 5%; }
.site__chip--vida { bottom: 6%; left: -8%; background: rgba(255,255,255,.92); color: #15332F; border-color: rgba(21,51,47,.12); box-shadow: 0 10px 26px -8px rgba(21,51,47,.28); }
.site__chip-star { color: #F5B841; }
.site__chip-dim { opacity: .62; }
.site__chip-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.site__chip-dot--teal { background: #0E8C8C; box-shadow: 0 0 0 3px rgba(14,140,140,.18); }
.site__chip-dot--green { background: #2ecc71; box-shadow: 0 0 0 3px rgba(46,204,113,.2); }

/* Reflejo de vidrio sobre el marco: fidelidad de pantalla real */
.browser { position: relative; }
.browser::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,.055) 0%, transparent 28%, transparent 55%, rgba(255,255,255,.025) 72%, transparent 88%);
}

/* Dental — light site */
.site--vida { background: var(--paper); display: flex; flex-direction: column; }
.site__nav--light { padding: 3.5% 4.5%; }
.site__logo--vida { color: #15332F; font-weight: 700; letter-spacing: -.01em; text-transform: none; font-size: clamp(.85rem,2vw,1.2rem); }
.site__logo--vida span { color: #0A6E6E; font-weight: 500; }
.site__menu--light a { color: #3A4B48; }
.site__menu--light .pill { background: #0C7C7C; color: #fff; padding: 5px 13px; border-radius: 999px; }
.site__split { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 4%; padding: 0 4.5% 4%; align-items: center; }
.site__split-text { display: flex; flex-direction: column; gap: clamp(7px,1.4vw,14px); }
.site__eyebrow--dark { color: #0A6E6E; }
.site__h1--dark { color: #15332F; }
.site__p { color: #3A4B48; font-size: clamp(.6rem,1.2vw,.82rem); max-width: 30ch; }
.site__split-img { height: 100%; border-radius: 10px; overflow: hidden; }
.site__split-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Manifesto ---------- */
.manifesto { padding: 130px 0; position: relative; z-index: 2; }
.manifesto__text {
  font-family: var(--f-disp); font-weight: 500;
  font-size: clamp(1.7rem, 4.2vw, 3.4rem); line-height: 1.14; letter-spacing: -.03em;
  max-width: 20ch; color: var(--chalk);
}
.manifesto__text em { color: var(--cobalt-soft); font-style: italic; }
.manifesto__text .hl { color: var(--chalk); position: relative; white-space: nowrap; }
.manifesto__text .hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: .04em; height: .12em; background: var(--cobalt); border-radius: 2px; }
.manifesto__text .strike { position: relative; color: var(--fog-2); }
.manifesto__text .strike::after { content: ''; position: absolute; left: -2%; right: -2%; top: 52%; height: 3px; background: var(--cobalt); transform: rotate(-3deg); }

/* ---------- Método ---------- */
.method { padding: 40px 0 130px; position: relative; z-index: 2; }
.method__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.method__aside { position: sticky; top: 110px; }
.method__title { font-family: var(--f-disp); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -.035em; margin: 22px 0 18px; }
.method__note { color: var(--fog); font-size: 1.05rem; margin-bottom: 28px; }
.method__cta { margin-top: 4px; }

.steps { list-style: none; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 28px; padding: 34px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__i { color: var(--cobalt-soft); font-size: .95rem; padding-top: 6px; }
.step h3 { font-family: var(--f-disp); font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 8px; }
.step p { color: var(--fog); font-size: 1rem; max-width: 48ch; }

/* ---------- Opiniones (marquee) ---------- */
.reviews { padding: 118px 0; border-top: 1px solid var(--line); position: relative; z-index: 2; overflow: hidden; }
.reviews__head { margin-bottom: 54px; }
.reviews__marquee {
  position: relative; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.reviews__track { display: flex; gap: 20px; width: max-content; animation: revscroll 56s linear infinite; }
.reviews__marquee:hover .reviews__track { animation-play-state: paused; }
@keyframes revscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rev {
  flex: 0 0 auto; width: 380px; max-width: 82vw;
  background: var(--ink-1); border: 1px solid var(--line);
  border-radius: 16px; padding: 30px 30px 26px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.rev:hover { border-color: var(--line-2); transform: translateY(-4px); }
.rev__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rev__stars { color: #F5B841; letter-spacing: 3px; font-size: 1rem; }
/* Verde de resultados: cada opinión lleva su venta medible */
.rev__gain {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: .72rem; letter-spacing: .02em; color: #4ADE80;
  background: rgba(46,204,113,.08); border: 1px solid rgba(46,204,113,.28);
  padding: 5px 11px; border-radius: 999px;
}
.rev__q { font-family: var(--f-disp); font-weight: 500; font-size: 1.16rem; line-height: 1.4; letter-spacing: -.015em; color: var(--chalk); flex: 1; }
.rev__q::before { content: '\201C'; }
.rev__q::after { content: '\201D'; }
.rev__by { display: flex; align-items: center; gap: 13px; padding-top: 4px; }
.rev__ava { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-family: var(--f-disp); font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--a), var(--b)); }
.rev__meta { display: flex; flex-direction: column; line-height: 1.3; }
.rev__meta strong { font-weight: 600; font-size: .96rem; }
.rev__meta .mono { color: var(--fog-2); font-size: .78rem; margin-top: 2px; }

/* ---------- Garantía / riesgo cero ---------- */
.promise { padding: 112px 0; border-top: 1px solid var(--line); position: relative; z-index: 2; }
.promise__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.promise__title { font-family: var(--f-disp); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.02; letter-spacing: -.035em; margin: 22px 0 18px; }
.promise__title .i { font-style: italic; color: var(--cobalt-soft); }
.promise__note { color: var(--fog); font-size: 1.08rem; max-width: 40ch; }
.promise__list { display: flex; flex-direction: column; gap: 14px; }
.promise__item {
  display: flex; align-items: center; gap: 16px;
  background: var(--ink-1); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 24px;
  font-size: 1.06rem; color: var(--fog);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.promise__item:hover { border-color: var(--line-2); transform: translateX(4px); }
.promise__item strong { color: var(--chalk); font-weight: 600; }
.promise__check {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: var(--cobalt-soft);
  background: rgba(59,109,255,.14); border: 1px solid rgba(59,109,255,.32);
}

/* ---------- Close ---------- */
.close { padding: 116px 0 132px; text-align: center; position: relative; z-index: 2; }
.close__inner { display: flex; flex-direction: column; align-items: center; }
.close__inner .head__label { margin-bottom: 30px; }
.close__title { font-family: var(--f-disp); font-weight: 700; font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1; letter-spacing: -.04em; margin-bottom: 44px; }
.close__title .i { font-style: italic; color: var(--cobalt-soft); }
.close__meta { margin-top: 26px; color: var(--fog-2); font-size: .8rem; letter-spacing: .04em; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 74px 0 36px; position: relative; z-index: 2; }
.foot__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.foot__brand .brand { margin-bottom: 18px; }
.foot__tag { color: var(--fog); font-size: .95rem; max-width: 34ch; }
.foot__status { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; color: var(--fog); font-size: .78rem; letter-spacing: .03em; }
.foot__status-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 0 rgba(46,204,113,.5); animation: dot 2.6s infinite; }
.foot__col { display: flex; flex-direction: column; gap: 13px; }
.foot__col-title { color: var(--fog-2); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.foot__col a { color: var(--fog); font-size: .94rem; width: fit-content; transition: color .25s; position: relative; }
.foot__col a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--chalk); transition: right .35s var(--ease); }
.foot__col a:hover { color: var(--chalk); }
.foot__col a:hover::after { right: 0; }
.foot__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--fog-2); font-size: .76rem; padding-top: 26px; border-top: 1px solid var(--line); }

/* ---------- Página legal ---------- */
.legal { max-width: 820px; padding-top: 150px; padding-bottom: 90px; position: relative; z-index: 2; }
.legal__title { font-family: var(--f-disp); font-weight: 700; font-size: clamp(2.2rem, 5.4vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; margin: 20px 0 14px; }
.legal__updated { color: var(--fog-2); font-size: .78rem; letter-spacing: .04em; }
.legal__index { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.legal__index a {
  font-family: var(--f-mono); font-size: .78rem; color: var(--fog);
  border: 1px solid var(--line-2); padding: 8px 14px; border-radius: 999px;
  transition: color .3s, border-color .3s, background .3s;
}
.legal__index a:hover { color: var(--ink); background: var(--chalk); border-color: var(--chalk); }
.legal__section { padding: 46px 0 8px; scroll-margin-top: 96px; }
.legal__section h2 { font-family: var(--f-disp); font-weight: 700; font-size: 1.65rem; letter-spacing: -.02em; margin-bottom: 18px; }
.legal__section p { color: var(--fog); font-size: .99rem; max-width: 68ch; margin-bottom: 14px; }
.legal__section strong { color: var(--chalk); font-weight: 600; }
.legal__section p a { color: var(--cobalt-soft); }
.legal__section ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.legal__section li { color: var(--fog); font-size: .99rem; max-width: 68ch; padding-left: 24px; position: relative; }
.legal__section li::before { content: '↳'; position: absolute; left: 0; color: var(--cobalt-soft); }
.legal__back { display: inline-block; margin-top: 54px; color: var(--cobalt-soft); font-size: .84rem; transition: color .3s; }
.legal__back:hover { color: var(--chalk); }

/* ---------- WhatsApp pill ---------- */
.wa-pill {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px 12px 15px; border-radius: 999px;
  background: var(--chalk); color: var(--ink);
  font-family: var(--f-mono); font-size: .84rem; font-weight: 500;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.7);
  transition: transform .4s var(--ease), background .3s;
}
.wa-pill svg { color: #1FA855; }
.wa-pill:hover { transform: translateY(-3px); background: #fff; }

/* ---------- Editorial rails ---------- */
.rails { position: fixed; inset: 0; z-index: 1; pointer-events: none; display: none; }
.rails span { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--hair); }
.rails span:nth-child(1) { left: max(32px, calc(50% - var(--maxw)/2 + 32px)); }
.rails span:nth-child(2) { right: max(32px, calc(50% - var(--maxw)/2 + 32px)); }
@media (min-width: 1120px) { .rails { display: block; } }

/* ---------- Section elevation (expensive, not busy) ---------- */
.manifesto, .quote { position: relative; }
.manifesto { background:
    radial-gradient(60% 90% at 18% 40%, rgba(59,109,255,.06), transparent 70%),
    var(--raise);
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.quote { background:
    radial-gradient(50% 80% at 12% 60%, rgba(224,103,58,.05), transparent 72%),
    transparent;
}
.method { background: linear-gradient(180deg, transparent, rgba(255,255,255,.014) 50%, transparent); }
/* Cierre: lámpara cobalto — la luz de marca ilumina el momento de conversión */
.close { overflow: hidden; }
.close::before {
  content: ''; position: absolute; top: clamp(42px, 7vw, 64px); left: 50%; transform: translateX(-50%);
  width: min(400px, 64%); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cobalt-soft), transparent);
  box-shadow: 0 0 16px 2px rgba(59,109,255,.5), 0 0 56px 10px rgba(59,109,255,.22);
}
.close::after {
  content: ''; position: absolute; top: clamp(44px, 7vw, 66px); left: 50%; transform: translateX(-50%);
  width: min(760px, 100%); height: 360px; pointer-events: none;
  background: radial-gradient(55% 100% at 50% 0%, rgba(59,109,255,.14), transparent 72%);
  filter: blur(4px);
}
.close__inner { position: relative; z-index: 1; }
/* faint hairline top on major sections for rhythm */
.work { border-top: 1px solid var(--hair); }

/* ---------- Handcrafted cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 60; pointer-events: none;
  width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt);
  transform: translate(-50%,-50%); opacity: 0;
  transition: width .35s var(--ease), height .35s var(--ease), background .35s var(--ease), opacity .3s;
  mix-blend-mode: normal;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-hot {
  width: 82px; height: 82px; background: rgba(59,109,255,.16);
  border: 1px solid rgba(131,166,255,.6); backdrop-filter: blur(2px);
}
.cursor__label {
  font-family: var(--f-mono); font-size: .68rem; color: var(--chalk);
  opacity: 0; transform: scale(.7); transition: opacity .3s, transform .35s var(--ease); white-space: nowrap;
}
.cursor.is-hot .cursor__label { opacity: 1; transform: scale(1); }
@media (hover: none) { .cursor { display: none; } }
body.has-cursor, body.has-cursor a, body.has-cursor .case__view { cursor: none; }

/* ---------- Link underline wipe ---------- */
.foot__links a, .quote__by a { position: relative; }
.foot__links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px;
  background: currentColor; transition: right .4s var(--ease);
}
.foot__links a:hover::after { right: 0; }

/* ---------- Button line fill sweep ---------- */
.btn--line { position: relative; overflow: hidden; z-index: 0; }
.btn--line::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.06);
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn--line:hover::before { transform: translateY(0); }

/* ---------- Reveal / motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
/* headings breathe in with a soft focus pull */
.head__title, .close__title, .manifesto__text, .quote__text, .case__name, .method__title {
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
}
[data-reveal].head__title, [data-reveal].manifesto__text, [data-reveal].quote__text { filter: blur(8px); }
[data-reveal].head__title.is-in, [data-reveal].manifesto__text.is-in, [data-reveal].quote__text.is-in { filter: blur(0); }
/* the browser preview wipes up rather than plain fade */
.case[data-reveal] .browser { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.case[data-reveal].is-in .browser { clip-path: inset(0 0 0 0); }

/* Hero line reveal (page-load) */
.hero [data-line] { opacity: 0; }
.hero.is-ready [data-line] { opacity: 1; }
.hero.is-ready .line > span,
.hero.is-ready .tag,
.hero.is-ready .hero__lead,
.hero.is-ready .hero__cta,
.hero.is-ready .hero__meta { animation: rise 1s var(--ease) both; }
.hero.is-ready .tag:nth-child(1){ animation-delay: .05s; }
.hero.is-ready .tag:nth-child(2){ animation-delay: .12s; }
.hero.is-ready .line:nth-child(1) > span { animation-delay: .18s; }
.hero.is-ready .line:nth-child(2) > span { animation-delay: .28s; }
.hero.is-ready .line:nth-child(3) > span { animation-delay: .38s; }
.hero.is-ready .hero__lead { animation-delay: .52s; }
.hero.is-ready .hero__cta { animation-delay: .60s; }
.hero.is-ready .hero__meta { animation-delay: .68s; }
.hero.is-ready [data-line] { opacity: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(115%); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav__links, .wa-link { display: none; }
  .burger { display: flex; }
  .hero { padding: 140px 0 72px; }
  .hero__foot { grid-template-columns: 1fr; gap: 30px; align-items: start; }
  .case__grid, .case--rev .case__grid { grid-template-columns: 1fr; gap: 32px; }
  .case--rev .case__view { order: 0; }
  .case__info { order: 2; }
  .method__grid { grid-template-columns: 1fr; gap: 40px; }
  .method__aside { position: static; }
  .promise__inner { grid-template-columns: 1fr; gap: 34px; }

  /* fuera el cursor artesanal en táctil/tablet (evita el punto suelto) */
  .cursor { display: none !important; }
  body.has-cursor, body.has-cursor a, body.has-cursor .case__view { cursor: auto; }

  /* Mobile menu — designed full-screen overlay, not a shrunk dropdown */
  .nav__drawer {
    position: fixed; inset: 0; top: 0; height: 100dvh; z-index: 45;
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    padding: 0 32px; background: var(--ink);
    clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease);
    border: none;
  }
  .nav.is-open .nav__drawer { display: flex; clip-path: inset(0 0 0 0); }
  .nav__drawer a {
    font-family: var(--f-disp); font-weight: 600; font-size: clamp(2.2rem, 11vw, 3.4rem);
    letter-spacing: -.03em; padding: 10px 0; border-bottom: none; position: relative;
  }
  .nav__drawer a::before {
    font-family: var(--f-mono); font-weight: 400; font-size: .8rem; color: var(--cobalt-soft);
    position: absolute; top: 18px; left: -2px; opacity: .8;
  }
  .nav__drawer a:nth-child(1)::before { content: '01'; }
  .nav__drawer a:nth-child(2)::before { content: '02'; }
  .nav__drawer a:nth-child(3)::before { content: '03'; }
  .nav__drawer a { padding-left: 34px; }
  .nav__drawer .drawer__cta { font-size: 1rem; font-family: var(--f-mono); color: var(--cobalt-soft); margin-top: 30px; padding-left: 0; }
  .nav__drawer .drawer__cta::before { content: none; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 20px; }
  .hero__top { gap: 8px; }
  .tag { font-size: .68rem; }
  .hero__cta .btn { flex: 1; justify-content: center; }
  .manifesto, .method, .quote, .close { padding-top: 88px; padding-bottom: 88px; }
  .step { grid-template-columns: auto 1fr; column-gap: 18px; }
  .foot__bottom { flex-direction: column; }
  /* En móvil el botón de WhatsApp debe seguir siendo RECONOCIBLE: antes se ocultaba
     el texto y quedaba un icono verde suelto que pasaba desapercibido. Se mantiene
     la etiqueta con tipografía y padding compactos (no choca con el chat, va a la izq.). */
  .wa-pill { padding: 11px 15px 11px 13px; font-size: .78rem; gap: 7px; }
  .wa-pill svg { width: 17px; height: 17px; }

  /* Previews a sangre: decisión propia de móvil, no una versión comprimida */
  .case { padding: 30px 0; }
  .case__view { margin-inline: -20px; }
  .browser { border-radius: 0; border-left: none; border-right: none; }
  .case__info { padding-top: 4px; }
  .case__name { margin-top: 8px; }
  /* índice como filete superior */
  .case__idx { display: block; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
  .rails { display: none; }
}

/* ---------- Footer responsive ---------- */
@media (max-width: 780px) {
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .foot__brand { grid-column: 1 / -1; }
}

/* ---------- Móvil: menos cosas, menos scroll (solo móvil) ---------- */
@media (max-width: 600px) {
  /* espaciados más ceñidos para que no se haga eterna */
  .hero { padding: 116px 0 52px; }
  .hero__foot { margin-top: 30px; padding-top: 26px; }
  .hero__lead { margin-bottom: 0; }
  .hero__cta { flex-direction: column; width: 100%; margin-top: 24px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__meta { margin-top: 22px; }
  .work { padding: 40px 0 20px; }
  .head { margin-bottom: 40px; }
  .reviews { padding: 72px 0; }
  .reviews__head { margin-bottom: 34px; }
  .method { padding: 64px 0 !important; }
  .promise { padding: 64px 0 !important; }
  .close { padding: 78px 0 96px !important; }
  .foot { padding: 52px 0 30px; }

  /* el manifiesto es un momento editorial secundario: fuera en móvil */
  .manifesto { display: none; }

  /* método: menos aire muerto, más profesional en móvil */
  .method__grid { gap: 26px; }
  .method__note { margin-bottom: 22px; }
  .step { padding: 22px 0; column-gap: 20px; }
  .step h3 { font-size: 1.32rem; }
  .step p { font-size: .96rem; }

  /* garantía apilada y compacta */
  .promise__title { margin: 16px 0 14px; }
  .promise__item { padding: 16px 18px; gap: 13px; font-size: .98rem; }
  .promise__check { width: 28px; height: 28px; }

  /* cierre: título a medida del móvil, sin cortes raros */
  .close__title { font-size: clamp(2rem, 8.2vw, 2.7rem); line-height: 1.05; margin-bottom: 34px; }

  /* resultado del proyecto: compacto (la sparkline apretaría la fila a 375px; la cifra ya lo cuenta) */
  .case__result { gap: 14px; margin-top: 20px; padding-top: 18px; }
  .case__spark { display: none; }
  /* chips dentro del marco en pantallas pequeñas: nada cortado */
  .site__chip--vida { left: 4%; bottom: 4%; }

  /* tarjetas de opinión un poco más pequeñas */
  .rev { width: 300px; padding: 24px 22px 22px; }
  .rev__q { font-size: 1.05rem; }

  /* footer apilado */
  .foot__grid { grid-template-columns: 1fr; gap: 30px; }
  .foot__brand { grid-column: auto; }
}

/* ---------- Gradiente en tipografía display (librería, toque premium) ---------- */
.grad-text {
  background: linear-gradient(102deg, var(--cobalt-soft) 0%, var(--cobalt) 46%, #8E7BFF 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- Neón verde: tus ventas subiendo (se dibuja al entrar en vista) ---------- */
.growth { position: relative; max-width: 340px; margin: 0 auto 42px; }
.growth__svg { display: block; width: 100%; height: auto; }
.growth__line {
  stroke: #4ADE80; stroke-width: 2.5; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(74,222,128,.85)) drop-shadow(0 0 20px rgba(74,222,128,.35));
  stroke-dasharray: 700; stroke-dashoffset: 700;
}
.growth__area { opacity: 0; transition: opacity .9s var(--ease) 1s; }
.growth__dot { fill: #4ADE80; filter: drop-shadow(0 0 9px rgba(74,222,128,.95)); opacity: 0; transition: opacity .4s 1.5s; }
.growth.is-drawn .growth__line { animation: growdraw 1.7s cubic-bezier(.6,.05,.3,1) forwards; }
.growth.is-drawn .growth__area { opacity: 1; }
.growth.is-drawn .growth__dot { opacity: 1; }
@keyframes growdraw { to { stroke-dashoffset: 0; } }
.growth__badge {
  position: absolute; top: -8px; right: -2px;
  color: #4ADE80; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  text-shadow: 0 0 14px rgba(74,222,128,.75);
  opacity: 0; transition: opacity .5s 1.6s;
}
.growth.is-drawn .growth__badge { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .growth__line { stroke-dashoffset: 0; animation: none !important; }
  .growth__area, .growth__dot, .growth__badge { opacity: 1 !important; transition: none !important; }
}

/* ---------- Cursor-spotlight glow en reseñas (librería #3, patrón Linear) ---------- */
.rev { position: relative; overflow: hidden; isolation: isolate; }
.rev::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, -200px) var(--my, -200px), rgba(59,109,255,.14), transparent 62%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.rev:hover::before { opacity: 1; }
.rev:hover { border-color: rgba(59,109,255,.38); }
@media (hover: none) { .rev::before { display: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reviews__marquee { overflow-x: auto; }
  .reviews__track { animation: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal], .hero [data-line] { opacity: 1 !important; transform: none !important; }
  .tag__dot { animation: none !important; }
  .rev::before { display: none; }
}

/* ============================================================
   EVOLUCIÓN — selector de idioma, entrada del hero, modo ligero
   (añadido; nada de lo anterior se sustituye)
   ============================================================ */

/* ---------- Selector ES / EN ---------- */
.lang {
  display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0;
  border: 1px solid var(--line-2); border-radius: 2px; padding: 2px;
}
.lang__btn {
  font-family: var(--f-mono); font-size: .74rem; line-height: 1; letter-spacing: .04em;
  color: var(--fog); padding: 7px 9px; border-radius: 1px;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.lang__btn:hover { color: var(--chalk); }
.lang__btn.is-on { color: var(--ink); background: var(--chalk); }
.lang__btn:focus-visible { outline: 2px solid var(--cobalt-soft); outline-offset: 2px; }

/* ---------- HeroLoadReveal: titular por líneas + hairline que se traza ---------- */
.hero__foot { position: relative; border-top-color: transparent; }
.hero__foot::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--line); transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease) .55s;
}
.hero.is-ready .hero__foot::before { transform: scaleX(1); }
/* las líneas del titular entran desde su propia máscara, con foco que se resuelve */
.hero.is-ready .line > span { animation: riseline 1.15s var(--ease) both; }
@keyframes riseline {
  from { opacity: 0; transform: translate3d(0, 112%, 0) skewY(2.4deg); filter: blur(9px); }
  55%  { filter: blur(0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) skewY(0); filter: blur(0); }
}
/* will-change se pone y se retira desde JS; aquí solo el estado en reposo */
.hero.is-settled .line > span,
.hero.is-settled .hero__lead,
.hero.is-settled .hero__cta,
.hero.is-settled .hero__meta { will-change: auto; }

/* ---------- CTA magnético: el transform lo gobierna el muelle, no el hover ---------- */
.btn--magnetic { transition: background .3s, color .3s, border-color .3s, box-shadow .3s; }
.btn--magnetic:hover { transform: none; }

/* ---------- WhatsApp: a la izquierda para no chocar con el chat ---------- */
.wa-pill { right: auto; left: 22px; }
@media (max-width: 600px) { .wa-pill { left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- Nav: hueco para el selector en pantallas estrechas ---------- */
@media (max-width: 940px) {
  /* el selector toma el hueco libre y el burger se pega a él, no al borde suelto */
  .lang { margin-left: auto; }
  .burger { margin-left: 0; }
  /* con el menú abierto, la fila superior sigue por encima del telón:
     el idioma y el botón de cerrar nunca quedan tapados */
  .nav__row { position: relative; z-index: 46; }
  /* el telón deja libre la altura de la barra: nada se solapa con la marca */
  /* centrado con márgenes automáticos: en pantallas bajas desborda hacia abajo
     y se puede scrollear, nunca recorta por arriba (bug clásico de flex+center) */
  .nav.is-open .nav__drawer {
    padding-top: 90px; padding-bottom: 40px;
    justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain;
  }
  .nav.is-open .nav__drawer > a:first-child { margin-top: auto; }
  .nav.is-open .nav__drawer > .drawer__cta { margin-bottom: auto; }
}
/* el FAB del chat no compite con el menú a pantalla completa ni con la píldora */
.nav.is-open ~ .cbw-fab,
body:has(.nav.is-open) .cbw-fab { opacity: 0; pointer-events: none; }
body:has(.nav.is-open) .wa-pill { opacity: 0; pointer-events: none; }
@media (max-width: 600px) {
  .nav__row { gap: 14px; }
  .lang__btn { padding: 7px 8px; font-size: .72rem; }
}

/* ---------- Modo ligero: gama baja, ahorro de datos, poca memoria ----------
   Fuera todo lo que cuesta pintar (blur, grano, sombras largas). El sitio
   sigue siendo el mismo, solo deja de pagar por efectos que no se notan. */
html[data-lite] .grain { display: none; }
html[data-lite] .site::after { display: none; }
html[data-lite] .cursor { display: none !important; }
html[data-lite] .nav.is-scrolled { background: rgba(11,11,12,.96); backdrop-filter: none; -webkit-backdrop-filter: none; }
html[data-lite] .nav__drawer { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
html[data-lite] .site__chip { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(16,16,20,.84); }
html[data-lite] .site__chip--vida { background: rgba(255,255,255,.96); }
html[data-lite] .cursor.is-hot { backdrop-filter: none; }
html[data-lite] .browser { box-shadow: 0 22px 46px -26px rgba(0,0,0,.9); }
html[data-lite] .close::after { display: none; }
html[data-lite] .btn--beacon::after { filter: none; opacity: .32; }
html[data-lite] .growth__line { filter: drop-shadow(0 0 5px rgba(74,222,128,.7)); }
html[data-lite] .growth__dot { filter: none; }
html[data-lite] [data-reveal].head__title,
html[data-lite] [data-reveal].manifesto__text,
html[data-lite] [data-reveal].quote__text { filter: none; }
html[data-lite] .rev::before { display: none; }

/* ---------- Reduced motion: estado final también en lo nuevo ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__foot::before { transform: none !important; transition: none !important; }
  .hero .line > span { animation: none !important; filter: none !important; }
  .case[data-reveal] .browser { clip-path: none !important; }
  .case__spark-line { stroke-dashoffset: 0 !important; }
  .case__spark-area { opacity: 1 !important; }
  [data-reveal].head__title, [data-reveal].manifesto__text, [data-reveal].quote__text { filter: none !important; }
  .lang__btn, .wa-pill, .rev, .promise__item, .browser { transition: none !important; }
}
