/* ==========================================================================
   luistolentino.tech — landing
   Tokens derivados del análisis de mercado (paleta enfocada a clínicas y servicios profesionales)
   ========================================================================== */

/* ---------- Fuentes autoalojadas (Google Fonts, licencia SIL OFL 1.1), subconjunto latin ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-100-900.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrument-sans-400-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-400-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0C1422;        /* fondo de alto impacto */
  --navy: #1B263B;       /* color real del logo */
  --steel: #415A77;      /* secundario heredado */
  --paper: #ECEFF3;      /* fondo claro frío */
  --paper-2: #DCE2E9;    /* variación de superficie clara */
  --copper: #D4813F;     /* pista de circuito: solo camino de conversión */
  --copper-hi: #E89A5A;
  --copper-ink: #8C4A12; /* cobre para texto chico sobre fondos claros (contraste ≥ 4.5:1) */
  --led: #4FD69C;        /* estado "funciona" */
  --alarm: #FF6B57;      /* estado roto (solo playground) */

  --on-dark: #E6EAF0;
  --on-dark-dim: #93A2B6;
  --on-light: #0C1422;
  --on-light-dim: #4A5B70;

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-mega: clamp(3rem, 9.2vw, 10.5rem);
  --fs-xl: clamp(2.5rem, 6.4vw, 6.8rem);
  --fs-l: clamp(1.9rem, 3.8vw, 3.6rem);
  --fs-m: clamp(1.15rem, 1.55vw, 1.45rem);
  --fs-body: 1.0625rem;
  --fs-mono: 0.75rem;

  --gutter: clamp(16px, 5vw, 88px);
  --radius: 14px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }

[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--copper); color: var(--ink); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.mono {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section-kicker { color: var(--steel); margin-bottom: clamp(28px, 4vw, 56px); }
.section-kicker--dark { color: var(--on-dark-dim); }

.led {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--led); box-shadow: 0 0 0 3px rgba(79, 214, 156, .18), 0 0 12px var(--led);
  flex: none;
}

/* ---------- Botones ---------- */
.btn {
  --arrow: 0;
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: .02em;
  text-decoration: none;
  border-radius: 999px;
  padding: 1em 1.6em;
  border: 1.5px solid transparent;
  transition: background-color .25s var(--ease-out), color .25s, border-color .25s, transform .2s var(--ease-out);
  cursor: pointer;
}
.btn span { display: inline-block; transition: transform .25s var(--ease-out); }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--copper { background: var(--copper); color: var(--ink); }
.btn--copper:hover { background: var(--copper-hi); }
.btn--copper:focus-visible { outline-color: var(--on-dark); }
.btn--ghost { border-color: currentColor; }
.btn--ghost:hover { background: var(--copper); border-color: var(--copper); color: var(--ink); }
.btn--sm { padding: .55em 1.1em; font-size: .875rem; }
.btn--lg { font-size: clamp(1.05rem, 1.4vw, 1.25rem); padding: 1.05em 1.8em; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  color: var(--on-dark);
  transition: color .3s, background-color .3s, padding .3s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding-block: 12px;
}
.site-header.is-light { color: var(--on-light); }
.site-header.is-light.is-scrolled { background: color-mix(in srgb, var(--paper) 82%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo { width: 40px; height: auto; filter: brightness(0) invert(1); transition: filter .3s; }
.site-header.is-light .brand__logo { filter: none; }
.brand__name { font-family: var(--f-mono); font-size: .85rem; letter-spacing: .02em; }
.brand__name span { color: var(--copper); }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: .9375rem; }
.site-nav > a:not(.btn) { text-decoration: none; opacity: .8; transition: opacity .2s; }
.site-nav > a:not(.btn):hover { opacity: 1; }
@media (max-width: 640px) {
  .site-nav > a:not(.btn) { display: none; }
  .brand__name { display: none; }
}

/* ---------- Riel de progreso ---------- */
.rail { display: none; }
@media (min-width: 1180px) {
  .rail {
    display: block; position: fixed; z-index: 40;
    left: 26px; top: 50%; transform: translateY(-50%);
    height: 56vh; width: 2px; pointer-events: none;
  }
  .rail__track { position: absolute; inset: 0; background: color-mix(in srgb, var(--steel) 45%, transparent); border-radius: 2px; }
  .rail__fill {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    background: var(--copper); transform-origin: top; transform: scaleY(var(--p, 0));
  }
  .rail__fill::after {
    content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px;
    transform: translateX(-50%) scaleY(calc(1 / max(var(--p, 0), .001)));
    border-radius: 50%; border: 2px solid var(--copper); background: var(--ink);
  }
}

/* ==========================================================================
   1 · HERO
   ========================================================================== */
.s-hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) clamp(32px, 5vw, 64px);
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(65, 90, 119, .35), transparent 60%),
    var(--ink);
  overflow: hidden;
}
.hero-trace {
  position: absolute; z-index: -1; right: 0; top: 0; height: 100%; width: min(55vw, 760px);
  opacity: .9;
}
.trace { fill: none; stroke: var(--copper); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.trace--dim { stroke: var(--steel); }
.pad { fill: var(--ink); stroke: var(--copper); stroke-width: 3; }
.pad--dim { stroke: var(--steel); }

.hero__inner { width: 100%; max-width: 1440px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-dark-dim); margin-bottom: clamp(20px, 3vw, 36px);
}
.hero__title {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 7.6vw, 9rem);
  font-weight: 820;
  font-variation-settings: "wdth" 72;
  line-height: .88;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.hero__title .line { display: block; }
.hero__pretty {
  font-style: normal;
  font-weight: 200;
  font-variation-settings: "wdth" 125;
  letter-spacing: .02em;
  color: var(--copper);
  white-space: nowrap;
}
.hero__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
  margin-top: clamp(28px, 4vw, 56px);
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid color-mix(in srgb, var(--steel) 55%, transparent);
}
.hero__sub { font-size: var(--fs-m); max-width: 34ch; color: var(--on-dark); line-height: 1.4; }
.micro {
  margin-top: clamp(24px, 4vw, 48px);
  font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .18em; color: var(--on-dark-dim);
}
.micro i { font-style: normal; color: var(--copper); padding-inline: .5em; }
@media (max-width: 640px) {
  .hero__pretty { white-space: normal; }
  .hero-trace { opacity: .35; width: 100%; }
}

/* ==========================================================================
   2 · PRIMER MOMENTO WOW — scroll
   ========================================================================== */
.s-shift {
  position: relative;
  background: var(--ink);
  border-top: 1px solid color-mix(in srgb, var(--steel) 30%, transparent);
}
.shift__stage {
  position: relative;
  height: 100svh; min-height: 560px;
  overflow: hidden;
  display: grid; place-items: center;
  padding-inline: var(--gutter);
}
.shift__label {
  position: absolute; top: clamp(84px, 12vh, 120px); left: var(--gutter);
  color: var(--on-dark-dim);
}
.shift__pretty, .shift__works {
  grid-area: 1 / 1;
  text-align: center;
  text-transform: uppercase;
  line-height: .9;
  white-space: nowrap;
}
.shift__pretty {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 11vw, 12rem);
  font-weight: 200;
  font-variation-settings: "wdth" 125;
  letter-spacing: .04em;
  color: var(--on-dark);
}
.shift__pretty .ch { display: inline-block; will-change: transform, opacity, filter; }
.shift__works {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 10.5vw, 11.5rem);
  font-weight: 880;
  font-variation-settings: "wdth" 66;
  letter-spacing: -.01em;
  color: var(--on-dark);
}
.shift__works .ch { display: inline-block; will-change: transform, opacity; }
.shift__works .ch--accent { color: var(--copper); }
@media (max-width: 640px) {
  .shift__works { white-space: normal; max-width: 7ch; }
  .shift__pretty { font-size: 14vw; }
}

.flow {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(70px, 14vh, 150px);
  display: flex; justify-content: space-between;
  max-width: 1100px; margin-inline: auto;
}
.flow__node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; width: 22px; }
.flow__name { white-space: nowrap; translate: calc(-50% + 11px) 0; }
.flow__node:first-child .flow__name { translate: 0 0; }
.flow__node:last-of-type .flow__name { translate: calc(-100% + 22px) 0; }
.flow__pad {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--steel);
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.flow__node.is-on .flow__pad { border-color: var(--copper); background: var(--copper); box-shadow: 0 0 0 6px rgba(212, 129, 63, .18), 0 0 24px rgba(212, 129, 63, .6); }
.flow__node:last-of-type.is-on .flow__pad { border-color: var(--led); background: var(--led); box-shadow: 0 0 0 6px rgba(79, 214, 156, .2), 0 0 28px var(--led); }
.flow__name {
  font-family: var(--f-mono); font-size: clamp(.62rem, 1.1vw, .85rem); letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark-dim); transition: color .3s;
}
.flow__node.is-on .flow__name { color: var(--on-dark); }
.flow__line { position: absolute; left: 11px; right: 11px; top: 1px; width: calc(100% - 22px); height: 20px; z-index: 0; }
.flow__base, .flow__lit { stroke-width: 3; }
.flow__base { stroke: var(--steel); stroke-dasharray: 2 7; stroke-linecap: round; }
.flow__lit { stroke: var(--copper); stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.flow__pulse {
  position: absolute; z-index: 2; top: 3px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--copper-hi); box-shadow: 0 0 18px 4px rgba(232, 154, 90, .7);
  opacity: 0; translate: 3px 0;
}
.shift__note {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 5vh, 52px);
  text-align: center; color: var(--on-dark-dim); font-size: .95rem;
}

/* Estado inicial controlado por JS (si no hay JS o hay reduced-motion, se ve el estado final) */
.js-motion .flow, .js-motion .shift__note { opacity: 0; }

/* ==========================================================================
   3 · CAMBIO DE RITMO
   ========================================================================== */
.s-pause {
  background: var(--paper); color: var(--on-light);
  padding-block: clamp(120px, 20vh, 220px) clamp(80px, 12vh, 140px);
}
.pause__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: end; }
.pause__title {
  grid-column: 1 / span 10;
  font-family: var(--f-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.pause__text {
  grid-column: 7 / span 6;
  font-size: var(--fs-m);
  line-height: 1.45;
  color: var(--on-light-dim);
  padding-left: 24px;
  border-left: 3px solid var(--copper);
}
@media (max-width: 860px) {
  .pause__title, .pause__text { grid-column: 1 / -1; }
}

/* ==========================================================================
   4 · TRES PILARES
   ========================================================================== */
.s-pillars { background: var(--paper); color: var(--on-light); padding-block: 0 clamp(100px, 16vh, 180px); }
.pillars { border-top: 1px solid rgba(12, 20, 34, .16); }
.pillar {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 8px 48px; align-items: center;
  padding-block: clamp(28px, 4.5vw, 56px);
  border-bottom: 1px solid rgba(12, 20, 34, .16);
}
.pillar::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0;
  background: var(--copper); transition: width .7s var(--ease-out);
}
.pillar:hover::before { width: 100%; }
.pillar__word {
  grid-row: span 2;
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 7.4vw, 7.6rem);
  font-weight: 760;
  font-variation-settings: "wdth" 62;
  line-height: .9;
  text-transform: uppercase;
  transition: font-variation-settings .6s var(--ease-out), color .3s;
}
.pillar:hover .pillar__word { font-variation-settings: "wdth" 112; }
.pillar__text { font-size: var(--fs-m); line-height: 1.4; max-width: 30ch; }
.pillar__q { color: var(--copper-ink); }
@media (max-width: 760px) {
  .pillar { grid-template-columns: 1fr; }
  .pillar__word { grid-row: auto; }
}
@media (hover: none) { .pillar:hover .pillar__word { font-variation-settings: "wdth" 62; } }

/* ==========================================================================
   5 · PLAYGROUND
   ========================================================================== */
.s-play { background: var(--ink); padding-block: clamp(100px, 16vh, 180px); }
.play__title {
  font-family: var(--f-display);
  font-size: var(--fs-xl);
  font-weight: 820;
  font-variation-settings: "wdth" 70;
  line-height: .9;
  text-transform: uppercase;
  max-width: 14ch;
}
.play__title span { display: block; color: var(--copper); }
.play__hint { margin-top: 24px; max-width: 52ch; color: var(--on-dark-dim); }

.play {
  margin-top: clamp(32px, 5vw, 56px);
  border: 1px solid color-mix(in srgb, var(--steel) 70%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
}
.play__bar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--steel) 55%, transparent);
  background: #142033;
}
.play__dots { display: inline-flex; gap: 6px; }
.play__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--steel); }
.play__url { color: var(--on-dark-dim); text-transform: none; letter-spacing: .04em; }
.play__status { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; color: var(--led); text-align: right; }
.play__status.is-broken { color: var(--alarm); }
.play__status.is-broken .led { background: var(--alarm); box-shadow: 0 0 0 3px rgba(255, 107, 87, .2), 0 0 12px var(--alarm); }
@media (max-width: 560px) { .play__url { display: none; } }

.play__stage {
  position: relative;
  height: clamp(440px, 62vh, 620px);
  background: #F6F4F1;
  color: #23303F;
  overflow: hidden;
  padding: 24px clamp(16px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto auto auto 1fr;
  column-gap: clamp(16px, 4vw, 48px);
  align-content: start;
  user-select: none;
}
.pg { box-sizing: border-box; }
.play__stage.is-live .pg { position: absolute; grid-area: auto; left: 0; top: 0; margin: 0; justify-self: auto; align-self: auto; will-change: transform; cursor: grab; touch-action: none; }
.play__stage.is-live .pg.is-dragging { cursor: grabbing; }
.pg--nav {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 10px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06);
  font-size: .85rem; margin-bottom: 28px;
}
.pg-logo { font-weight: 700; }
.pg-links { color: #6A7684; }
.pg--title {
  grid-column: 1; grid-row: 3;
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  font-weight: 700;
  font-variation-settings: "wdth" var(--wd, 92);
  line-height: 1.02;
  letter-spacing: -.01em;
  transform-origin: left center;
}
.pg--title .pg-title-text { display: block; outline: none; transform: skewX(var(--sk, 0deg)); transition: transform .15s; }
.pg--title .pg-title-text[contenteditable="true"] { background: rgba(212,129,63,.12); border-radius: 6px; box-shadow: 0 0 0 2px var(--copper); cursor: text; }
.pg--sub { grid-column: 1; grid-row: 4; margin-top: 14px; color: #55606D; max-width: 36ch; font-size: .98rem; }
.pg--cta {
  grid-column: 1; grid-row: 5; justify-self: start;
  margin-top: 22px;
  display: inline-block; padding: 14px 22px; border-radius: 999px;
  background: #1B7A50; color: #fff; text-decoration: none; font-weight: 650; font-size: .95rem;
  white-space: nowrap;
}
.pg--media {
  grid-column: 2; grid-row: 2 / span 4;
  min-height: 210px; border-radius: 16px;
  background:
    radial-gradient(60% 60% at 70% 30%, #F2C9A5, transparent 70%),
    linear-gradient(160deg, #C9D8E6, #9DB4CB);
  position: relative; overflow: hidden;
}
.pg--media span { position: absolute; inset: auto 18px 18px 18px; height: 10px; border-radius: 6px; background: rgba(255,255,255,.7); }
.pg--chip {
  grid-row: 6; align-self: start; justify-self: start;
  margin-top: 28px;
  display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid #C9D0D8; background: #fff; font-size: .85rem;
}
.pg--chip:nth-of-type(1) { grid-column: 1; }
.pg--chip:nth-of-type(2) { grid-column: 1; margin-left: 120px; }
.pg--chip:nth-of-type(3) { grid-column: 2; }
.pg--badge {
  grid-column: 2; grid-row: 6; justify-self: end; align-self: start; margin-top: 28px;
  padding: 8px 14px; border-radius: 10px; background: #23303F; color: #F6F4F1; font-size: .8rem;
}
@media (max-width: 720px) {
  .play__stage { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto auto auto; height: 560px; }
  .pg--media { grid-column: 1; grid-row: 6; min-height: 110px; margin-top: 18px; }
  .pg--chip, .pg--badge { display: none; }
  .play__stage.is-live .pg--chip, .play__stage.is-live .pg--badge { display: inline-block; }
}

.play__tools {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid color-mix(in srgb, var(--steel) 55%, transparent);
  background: #142033;
}
.tool {
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--steel); background: transparent; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.tool:hover { border-color: var(--on-dark-dim); }
.tool[aria-pressed="true"] { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.tool--reset { margin-left: auto; border-color: var(--copper); color: var(--copper); }
.tool--reset:hover { background: var(--copper); color: var(--ink); }
@media (max-width: 560px) { .tool--reset { margin-left: 0; } }

.play__close {
  margin-top: clamp(40px, 6vw, 72px);
  font-family: var(--f-display);
  font-size: var(--fs-l);
  font-weight: 300;
  font-variation-settings: "wdth" 100;
  line-height: 1.12;
  max-width: 26ch;
}
.play__close strong { font-weight: 760; font-variation-settings: "wdth" 80; }

/* ==========================================================================
   6 · CASOS
   ========================================================================== */
.s-cases { background: var(--paper); color: var(--on-light); }
.cases__intro { padding-block: clamp(100px, 16vh, 180px) clamp(48px, 7vh, 80px); }
.cases__lede { font-size: var(--fs-m); max-width: 40ch; line-height: 1.45; }

.case {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(96px, 12vh, 120px) var(--gutter) clamp(48px, 8vh, 80px);
  border-radius: 28px 28px 0 0;
}
.case--navy { background: var(--navy); color: var(--on-dark); }
.case--light { background: var(--paper-2); color: var(--on-light); }
.case--ink { background: var(--ink); color: var(--on-dark); border-top: 1px solid color-mix(in srgb, var(--steel) 45%, transparent); }
@media (min-width: 960px) and (min-height: 720px) {
  .case { position: sticky; top: 0; }
}
.case__inner {
  width: 100%; max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px);
}
.case__head { grid-column: 1 / span 7; }
.case__tag { color: var(--copper); }
.case__title {
  margin-top: 14px;
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 4.6vw, 4.8rem);
  font-weight: 800;
  font-variation-settings: "wdth" 76;
  line-height: .95;
  text-transform: uppercase;
}
.case__state { margin-top: 16px; opacity: .7; }
.case__facts {
  grid-column: 1 / span 7;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px;
}
.case__facts dt {
  font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .12em; text-transform: uppercase;
  padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid color-mix(in srgb, currentColor 45%, transparent);
}
.case__facts dd { font-size: .98rem; line-height: 1.5; }
.case__facts div:last-child dt { color: var(--copper); opacity: 1; border-color: var(--copper); }
.case__visual { grid-column: 8 / -1; grid-row: 1 / span 2; align-self: center; }
.case__stack { grid-column: 1 / -1; opacity: .65; padding-top: 20px; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
@media (max-width: 960px) {
  .case { border-radius: 20px 20px 0 0; }
  .case__head, .case__facts, .case__visual { grid-column: 1 / -1; }
  .case__visual { grid-row: auto; }
}
@media (max-width: 600px) { .case__facts { grid-template-columns: 1fr; } }

.audit-log {
  font-size: clamp(.72rem, 1vw, .86rem); letter-spacing: .02em; text-transform: none;
  line-height: 2; white-space: pre; overflow-x: auto;
  padding: 24px 26px; border-radius: var(--radius);
  background: var(--ink); color: var(--on-dark); border: 1px solid color-mix(in srgb, var(--steel) 60%, transparent);
}
.c-dim { color: var(--on-dark-dim); }
.c-bad { color: var(--alarm); }
.c-warn { color: var(--copper-hi); }
.c-ok { color: var(--led); }

.schema { padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid rgba(12,20,34,.14); }
.schema__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.schema__mod {
  display: grid; place-items: center; text-align: center; min-height: 64px; padding: 8px;
  border-radius: 10px; background: #fff; border: 1.5px solid var(--navy); font-weight: 600; font-size: .85rem; line-height: 1.2;
}
.schema__mod:last-child { border-color: var(--copper); }
.schema__lines { width: 100%; height: 48px; }
.schema__lines path { fill: none; stroke: var(--copper); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.schema__db {
  padding: 18px; border-radius: 10px; background: var(--navy); color: var(--on-dark); text-align: center;
  text-transform: none; letter-spacing: .02em; line-height: 1.8;
}
.schema__db span { color: var(--on-dark-dim); }

.pipe { display: grid; gap: 10px; text-transform: none; letter-spacing: .02em; font-size: .9rem; }
.pipe li {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--steel) 70%, transparent); background: var(--navy);
}
.pipe li + li::before {
  content: ""; position: absolute; left: 30px; top: -11px; width: 2px; height: 10px; background: var(--copper);
}
.pipe span { color: var(--copper); }
.pipe em { margin-left: auto; font-style: normal; color: var(--on-dark-dim); font-size: .8em; }
.pipe__out { border-color: var(--led) !important; }
.pipe__out span { color: var(--led); }

/* ==========================================================================
   7 · ANTI-AGENCIA
   ========================================================================== */
.s-anti { background: var(--paper); color: var(--on-light); padding-block: clamp(110px, 18vh, 200px); }
.anti__title { text-transform: uppercase; line-height: .9; }
.anti__pretty {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 7vw, 7.6rem);
  font-weight: 150;
  font-style: italic;
  font-variation-settings: "wdth" 125;
  letter-spacing: .06em;
  color: var(--steel);
  position: relative; width: fit-content;
}
.anti__pretty::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: .07em; background: var(--copper);
  transform: scaleX(var(--strike, 1)); transform-origin: left;
}
.anti__hard {
  display: block;
  font-family: var(--f-display);
  font-size: var(--fs-mega);
  font-weight: 900;
  font-variation-settings: "wdth" 64;
  letter-spacing: -.01em;
}
.anti__body {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px 32px;
}
.anti__lede { grid-column: 1 / span 4; color: var(--on-light-dim); font-size: var(--fs-m); }
.checks { grid-column: 5 / -1; border-top: 1px solid rgba(12,20,34,.18); }
.anti__score { grid-column: 5 / -1; margin-top: 20px; color: var(--on-light-dim); text-transform: none; letter-spacing: .02em; font-size: .9rem; }
.anti__score a { color: var(--on-light); font-weight: 600; }
.check {
  width: 100%; display: flex; align-items: center; gap: 20px; text-align: left;
  padding: 22px 0; border: 0; border-bottom: 1px solid rgba(12,20,34,.18); background: none; cursor: pointer;
  font-family: var(--f-display); font-size: clamp(1.25rem, 2.4vw, 2rem); font-weight: 560; font-variation-settings: "wdth" 90;
  transition: color .2s;
}
.check:hover { color: var(--navy); }
.check__box {
  flex: none; width: 28px; height: 28px; border-radius: 7px; border: 2px solid var(--on-light);
  display: grid; place-items: center; transition: background-color .2s, border-color .2s;
}
.check[aria-pressed="true"] .check__box { background: var(--navy); border-color: var(--navy); }
.check[aria-pressed="true"] .check__box::after {
  content: ""; width: 12px; height: 7px; border-left: 2.5px solid var(--led); border-bottom: 2.5px solid var(--led);
  transform: translateY(-2px) rotate(-45deg);
}
@media (max-width: 860px) {
  .anti__lede, .checks, .anti__score { grid-column: 1 / -1; }
}

/* ==========================================================================
   8 · PROCESO
   ========================================================================== */
.s-process { background: var(--navy); padding-block: clamp(100px, 16vh, 180px); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps::before {
  content: ""; position: absolute; left: 11px; right: 11px; top: 10px; height: 3px;
  background: linear-gradient(90deg, var(--copper) var(--fill, 0%), color-mix(in srgb, var(--steel) 70%, transparent) var(--fill, 0%));
}
.step { position: relative; padding-top: 48px; }
.step__pad {
  position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); border: 3px solid var(--copper);
}
.step__n { display: block; color: var(--copper); }
.step__name {
  margin: 10px 0 12px;
  font-family: var(--f-display); font-size: clamp(1.7rem, 2.8vw, 2.9rem); font-weight: 800; font-variation-settings: "wdth" 72;
  text-transform: uppercase; line-height: 1;
}
.step p { color: var(--on-dark-dim); max-width: 24ch; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; padding-left: 44px; }
  .steps::before { left: 10px; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto;
    background: linear-gradient(180deg, var(--copper) var(--fill, 0%), color-mix(in srgb, var(--steel) 70%, transparent) var(--fill, 0%)); }
  .step { padding: 0 0 40px; }
  .step__pad { left: -44px; top: 4px; }
}

/* ==========================================================================
   9 · OFERTA DE ENTRADA
   ========================================================================== */
.s-offer { background: var(--paper); color: var(--on-light); padding-block: clamp(100px, 16vh, 180px); }
.offer { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 32px; align-items: start; }
.offer__copy { grid-column: 1 / span 7; }
.offer__title {
  font-family: var(--f-display); font-size: var(--fs-l); font-weight: 800; font-variation-settings: "wdth" 80;
  line-height: 1; text-transform: uppercase; max-width: 18ch;
}
.offer__text { margin: 24px 0 36px; font-size: var(--fs-m); line-height: 1.45; max-width: 38ch; color: var(--on-light-dim); }
.offer__fine { margin-top: 18px; color: var(--on-light-dim); }
.offer__scope { grid-column: 9 / -1; border-top: 2px solid var(--on-light); }
.offer__scope li {
  display: grid; grid-template-columns: 32px 1fr; column-gap: 12px;
  padding: 18px 0; border-bottom: 1px solid rgba(12,20,34,.18); color: var(--on-light-dim); font-size: .95rem;
}
.offer__scope span { grid-row: span 2; color: var(--copper-ink); padding-top: 3px; }
.offer__scope strong { color: var(--on-light); font-family: var(--f-display); font-size: 1.2rem; font-weight: 700; }
.s-offer .btn--copper:focus-visible { outline-color: var(--on-light); }
@media (max-width: 960px) { .offer__copy, .offer__scope { grid-column: 1 / -1; } }

/* ==========================================================================
   10 · CIERRE
   ========================================================================== */
.s-close { background: var(--ink); padding-top: clamp(110px, 18vh, 200px); }
.close__title {
  font-family: var(--f-display); font-size: var(--fs-xl); font-weight: 820; font-variation-settings: "wdth" 70;
  line-height: .92; text-transform: uppercase; max-width: 16ch;
}
.close__actions {
  margin-top: clamp(40px, 6vw, 72px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px;
}
.close__link { display: grid; gap: 4px; text-decoration: none; font-size: 1.05rem; overflow-wrap: anywhere; }
.close__link .mono { color: var(--on-dark-dim); }
.close__link:hover { color: var(--copper-hi); }
.site-footer {
  margin-top: clamp(90px, 14vh, 160px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
  padding-block: 28px 36px; border-top: 1px solid color-mix(in srgb, var(--steel) 45%, transparent);
  color: var(--on-dark-dim);
}
.site-footer .brand__logo { width: 36px; }
.site-footer a { margin-left: auto; text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 45;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.3);
  transition: transform .2s var(--ease-out), opacity .3s;
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float:hover { transform: scale(1.06); }
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: scale(.8); }

/* ---------- Reveal ---------- */
.js-motion .reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .js-motion .reveal { opacity: 1; transform: none; }
}

/* WOW 1 sin animación (reduced-motion o sin GSAP): estado final legible */
.shift__pretty .ch { font-variation-settings: "wdth" var(--w, 125); }
.s-shift.is-static .shift__stage { height: auto; min-height: 0; padding-block: 120px 160px; gap: 48px; }
.s-shift.is-static .shift__pretty { display: none; }
.s-shift.is-static .shift__label { position: static; justify-self: start; }
.s-shift.is-static .shift__works { grid-area: auto; }
.s-shift.is-static .flow { position: relative; left: auto; right: auto; bottom: auto; width: 100%; opacity: 1; }
.s-shift.is-static .flow__lit { stroke-dashoffset: 0; }
.s-shift.is-static .flow__pulse { display: none; }
.s-shift.is-static .shift__note { position: static; opacity: 1; }

/* ---------- Ajustes móviles ---------- */
@media (max-width: 640px) {
  .shift__pretty { font-size: 17vw; }
  .shift__works { font-size: 17vw; max-width: none; white-space: normal; }
  .shift__works .shift__works-text > span { display: block !important; }
  .flow__name { font-size: .6rem; letter-spacing: .06em; }
  .schema { padding: 16px; }
  .schema__row { grid-template-columns: 1fr 1fr; }
  .schema__lines { display: none; }
  .schema__db { margin-top: 8px; font-size: .68rem; overflow-wrap: anywhere; }
}

/* ---------- Casos con sitio publicado: marco de navegador ---------- */
.case__visual--shot { position: relative; display: grid; gap: 14px; }
.shot {
  display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden;
  background: #142033; border: 1px solid color-mix(in srgb, var(--steel) 70%, transparent);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.shot:hover { transform: translateY(-4px); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .7); }
.shot--light { background: #fff; border-color: rgba(12, 20, 34, .14); box-shadow: 0 40px 80px -45px rgba(12, 20, 34, .45); }
.shot__bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; color: var(--on-dark-dim);
}
.shot--light .shot__bar { color: var(--on-light-dim); border-bottom: 1px solid rgba(12, 20, 34, .08); }
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--steel); opacity: .7; }
.shot__bar span { margin-left: 8px; }
.shot img { width: 100%; height: auto; display: block; }
.audit-log--mini {
  position: absolute; left: -28px; bottom: 34px; z-index: 1;
  font-size: .72rem; line-height: 1.85; padding: 14px 18px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7);
}
.case__link { justify-self: end; color: var(--copper); text-decoration: none; }
.case--light .case__link,
.case--light .case__tag { color: var(--copper-ink); }
.case--light .case__facts div:last-child dt { color: var(--copper-ink); border-color: var(--copper-ink); }
.case__link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 960px) {
  .audit-log--mini { position: static; }
  .case__link { justify-self: start; }
}

.btn--wa svg { width: 22px; height: 22px; fill: currentColor; }
.btn--wa { color: var(--on-dark); }
.btn--wa:hover { background: #25D366; border-color: #25D366; color: var(--ink); }
