/* ==========================================================================
   Marcos Darman — site.css
   Light theme inspirado en Nakula (Anton + Geist, acento naranja canopy).
   Orden: tokens · base · utilidades · componentes · secciones home · motion
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #f2f0eb;
  --bg-2: #e8e5de;
  --surface: #ffffff;
  --ink: #0e0e0e;
  --ink-2: #2b2b2b;
  --muted: #77746d;
  --faint: #b9b5ac;
  --line: rgba(14, 14, 14, .12);
  --accent: #74acdf;          /* celeste argentino: fondos, barras, detalles */
  --accent-ink: #1b5a96;      /* azul profundo: texto, links, estados activos */
  --accent-soft: rgba(116, 172, 223, .16);
  --sun: #f6b40e;             /* sol de mayo, uso mínimo */
  --ok: #19b35a;

  --f-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --f-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 2.2vw, 32px);
  --maxw: 1440px;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Tipografía ---------- */
.label { font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.4; color: var(--ink-2); }
.display { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; line-height: .9; letter-spacing: -.005em; }
.display.xl { font-size: clamp(52px, 8.4vw, 132px); }
.display.xxl { font-size: clamp(60px, 11.5vw, 184px); }
.display.center { text-align: center; }
.display sup.count, .display .label { font-family: var(--f-body); font-size: 12px; font-weight: 500; letter-spacing: .02em; vertical-align: top; position: relative; top: .6em; margin-left: .6em; color: var(--ink-2); }
.display > .label { display: block; margin: 0 0 1.2em; top: 0; }
.num { font-family: var(--f-body); color: var(--muted); font-weight: 500; }
.text-link { display: inline-flex; gap: .4em; font-weight: 600; color: var(--accent-ink); border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: gap .3s var(--ease); }
.text-link:hover { gap: .8em; }

/* ---------- Botones (texto que rueda al hover, como Nakula) ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid transparent; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn-sm { --h: 40px; padding: 0 18px; font-size: 12px; }
.btn-lg { --h: 60px; padding: 0 32px; font-size: 16px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent-ink); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--ink); color: #fff; }
.btn-outline-accent { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn-outline-accent:hover { background: var(--accent-ink); color: #fff; }
.btn-roll { position: relative; display: inline-block; overflow: hidden; line-height: 1.3; }
.btn-roll::after {
  content: attr(data-text); position: absolute; left: 0; top: 100%; width: 100%;
}
.btn-roll, .btn-roll::after { transition: transform .45s var(--ease); }
.btn:hover .btn-roll { transform: translateY(-100%); }
.btn:hover .btn-roll::after { transform: translateY(0); }
.btn:active { transform: scale(.97); }

/* ---------- Progreso de scroll ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 120; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter);
  transition: background-color .4s var(--ease), backdrop-filter .4s var(--ease);
}
.site-header.is-scrolled { background: rgba(242, 240, 235, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { font-family: var(--f-display); font-size: 26px; white-space: nowrap; padding-block: 11px; line-height: 1; letter-spacing: .01em; margin-right: auto; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.brand sup { font-family: var(--f-body); font-size: 9px; font-weight: 600; margin-left: 2px; vertical-align: top; position: relative; top: 2px; }
.page-home .site-header:not(.show-brand) .brand { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.header-meta { display: flex; gap: 28px; margin-right: 12px; }
.header-meta p { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; font-size: 12px; line-height: 1.35; }
.header-meta b { font-weight: 600; font-size: 13px; }
.header-meta span:not(.dot) { grid-column: 2; color: var(--muted); text-transform: uppercase; font-size: 11px; }
.header-meta .clock { grid-template-columns: 1fr; }
.header-meta .clock span { grid-column: 1; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); align-self: center; box-shadow: 0 0 0 0 rgba(25,179,90,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(25,179,90,0); } 100% { box-shadow: 0 0 0 0 rgba(25,179,90,0); } }
.burger { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-content: center; gap: 5px; position: relative; z-index: 110; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.menu-open .burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Menú overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gutter);
  padding: calc(var(--header-h) + 24px) var(--gutter) var(--gutter);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-in-out);
}
.menu[hidden] { display: grid; visibility: hidden; }
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-nav { display: flex; flex-direction: column; justify-content: flex-end; }
.menu-nav a {
  font-family: var(--f-display); text-transform: uppercase; font-size: clamp(44px, 7.4vw, 108px); line-height: .98;
  display: flex; align-items: flex-start; gap: 14px; overflow: hidden;
  transform: translateY(40px); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease), color .3s;
}
.menu-nav a small { font-family: var(--f-body); font-size: 12px; color: var(--muted); padding-top: 1.1em; }
.menu-nav a:hover, .menu-nav a[aria-current] { color: var(--accent-ink); }
.menu-open .menu-nav a { transform: none; opacity: 1; }
.menu-open .menu-nav a:nth-child(2) { transition-delay: .04s; } .menu-open .menu-nav a:nth-child(3) { transition-delay: .08s; }
.menu-open .menu-nav a:nth-child(4) { transition-delay: .12s; } .menu-open .menu-nav a:nth-child(5) { transition-delay: .16s; }
.menu-open .menu-nav a:nth-child(6) { transition-delay: .2s; } .menu-open .menu-nav a:nth-child(7) { transition-delay: .24s; }
.menu-side { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 32px; }
.menu-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; font-size: 18px; }
.menu-links a:hover { color: var(--accent-ink); }
body.menu-open { overflow: hidden; }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 300; background: var(--accent); display: grid; place-items: center; transition: transform .9s var(--ease-in-out); }
.preloader span { font-family: var(--f-display); font-size: clamp(48px, 9vw, 140px); white-space: nowrap; color: rgba(14,14,14,.16); animation: preload-in 1s var(--ease) both; }
@keyframes preload-in { from { opacity: 0; letter-spacing: .2em; } to { opacity: 1; letter-spacing: 0; } }
.preloader.is-done { transform: translateY(-100%); }
html:not(.js) .preloader, .preloader.skip-it { display: none; }

/* ==========================================================================
   HOME
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100svh; min-height: 680px; max-height: 1000px; padding: calc(var(--header-h) - 18px) var(--gutter) 24px;
  display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr auto auto; column-gap: var(--gutter);
  max-width: var(--maxw); margin-inline: auto;
}
.hero-word {
  grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 1;
  font-family: var(--f-display); font-size: clamp(56px, 14.3vw, 228px); line-height: .84; letter-spacing: -.01em;
  white-space: nowrap; will-change: transform;
}
.hero-word span { display: inline-block; }
.hero-word sup { font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; vertical-align: top; position: relative; top: 1.6em; margin-left: 10px; color: var(--ink-2); display: inline-block; }
.hero-title {
  grid-column: 9 / 13; grid-row: 2; align-self: start; margin-top: clamp(28px, 3vw, 48px);
  text-align: right; font-weight: 500; font-size: clamp(30px, 3.4vw, 54px); line-height: 1.02; letter-spacing: -.035em;
  position: relative; z-index: 2;
}
.hero-title > span:not(.sr-only) { display: block; color: var(--faint); }
.hero-title > span.ink { color: var(--ink); }
.hero-media {
  grid-column: 5 / 10; grid-row: 2 / 4; align-self: stretch; justify-self: center;
  width: min(100%, 520px); min-height: 0; margin-top: clamp(18px, 2vw, 32px); margin-bottom: 8px; position: relative; z-index: 0;
  clip-path: polygon(38% 0, 100% 0, 62% 100%, 0 100%);
  animation: hero-clip 1.4s var(--ease-in-out) both; animation-delay: var(--intro-delay, .2s);
}
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(242,240,235,.35)); pointer-events: none; }
@keyframes hero-clip { from { clip-path: polygon(50% 0, 50% 0, 50% 100%, 50% 100%); } to { clip-path: polygon(38% 0, 100% 0, 62% 100%, 0 100%); } }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: hero-zoom 2.4s var(--ease) both; animation-delay: var(--intro-delay, .2s); }
@keyframes hero-zoom { to { transform: scale(1); } }
.hero-copy { grid-column: 1 / 5; grid-row: 3; align-self: end; position: relative; z-index: 2; display: grid; gap: 14px; padding-bottom: 24px; }
.hero-sub { font-size: clamp(19px, 1.85vw, 27px); font-weight: 500; line-height: 1.18; letter-spacing: -.02em; }
.hero-bar { grid-column: 1 / -1; grid-row: 4; display: flex; align-items: center; gap: 32px; padding-top: 18px; border-top: 1px solid var(--line); position: relative; z-index: 2; }
.logos { display: flex; align-items: center; gap: 20px; min-width: 0; flex: 1; }
.logos .label { white-space: nowrap; }
.hero-ctas { display: flex; gap: 10px; flex-shrink: 0; }

.js .hero-media, .js .hero-video { animation-play-state: paused; }
.intro-done .hero-media, .intro-done .hero-video { animation-play-state: running; }

/* palabras con color que se revela (hero, carga) */
[data-words] .w { display: inline-block; transition: color .9s var(--ease), opacity .9s var(--ease), transform .9s var(--ease); }
.js .hero [data-words] .w { opacity: 0; transform: translateY(.35em); }
.intro-done .hero [data-words] .w { opacity: 1; transform: none; }
.hero-sub .w.dim { color: var(--faint); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track li { flex-shrink: 0; }
.marquee-track img { height: 28px; width: auto; max-width: 130px; object-fit: contain; filter: grayscale(1) contrast(1.15); opacity: .6; transition: filter .3s, opacity .3s; }
.marquee-track a:hover img { filter: none; opacity: 1; }
.logo-text { font-family: var(--f-display); text-transform: uppercase; font-size: 24px; letter-spacing: .02em; color: var(--ink); opacity: .55; }
.logo-text:hover { opacity: 1; color: var(--accent-ink); }
.marquee-track img.sq { height: 38px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); padding-block: clamp(110px, 16vw, 230px) clamp(80px, 10vw, 150px); }
.side-label { grid-column: 1 / 3; padding-top: .9em; }
.statement { grid-column: 3 / 12; font-size: clamp(28px, 3.7vw, 58px); line-height: 1.08; font-weight: 500; letter-spacing: -.035em; }
.why-cols { grid-column: 3 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: clamp(56px, 7vw, 100px); }
.why-cols li { border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 10px; }
.why-cols h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.why-cols p { color: var(--ink-2); }

/* palabras que se encienden con el scroll */
[data-scrub] .w { color: var(--faint); transition: color .25s linear; }
[data-scrub] .w.on { color: var(--ink); }

/* ---------- Numbers ---------- */
.numbers { padding-block: clamp(60px, 8vw, 120px); background: radial-gradient(70% 60% at 85% 0%, rgba(116,172,223,.18), transparent 70%); }
.numbers-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--gutter); align-items: end; }
.numbers-head .lead { max-width: 440px; justify-self: end; }
.numbers-head .lead a { color: var(--accent-ink); border-bottom: 1px solid currentColor; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); }
.stats li { padding: 28px 24px 8px 0; display: grid; gap: 14px; align-content: start; }
.stats li + li { border-left: 1px solid var(--line); padding-left: 24px; }
.stats b { font-family: var(--f-body); font-weight: 400; font-size: clamp(48px, 6.2vw, 96px); line-height: 1; letter-spacing: -.05em; }
.stats b i { font-style: normal; color: var(--accent-ink); }
.stats li > span { font-size: 14px; color: var(--ink-2); max-width: 220px; }
.numbers .text-link { margin-top: 32px; }

/* ---------- Levels (sticky, como "Latest work") ---------- */
.levels { padding-block: clamp(90px, 12vw, 180px) clamp(60px, 8vw, 120px); }
.levels-grid { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gutter); margin-top: clamp(48px, 6vw, 90px); }
.levels-sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.levels-num { font-family: var(--f-display); font-size: clamp(90px, 11vw, 170px); line-height: .85; color: var(--faint); }
.levels-num span { display: inline-block; transition: transform .5s var(--ease), opacity .5s; }
.levels-num span.swap { transform: translateY(-30%); opacity: 0; }
.levels-index { display: grid; gap: 4px; font-size: 15px; }
.levels-index li { color: var(--faint); transition: color .3s, transform .3s var(--ease); cursor: default; }
.levels-index li.is-active { color: var(--ink); font-weight: 600; transform: translateX(8px); }
.levels-index li.is-active::before { content: "— "; color: var(--accent-ink); }
.levels-note { font-size: 13px; color: var(--muted); max-width: 300px; }
.levels-cards { display: grid; gap: clamp(48px, 7vw, 110px); }
.level-card { display: grid; gap: 22px; }
.level-card figure { overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 16 / 10; background: var(--bg-2); }
.level-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.level-card:hover img { transform: scale(1.04); }
.level-card > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px var(--gutter); align-items: end; }
.level-card h3 { font-family: var(--f-display); text-transform: uppercase; font-weight: 400; font-size: clamp(44px, 5vw, 76px); line-height: .9; grid-row: span 2; }
.level-card .hook { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.level-card p:not(.hook) { color: var(--ink-2); }

/* ---------- Proof ---------- */
.proof { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(80px, 10vw, 150px); }
.proof-quote { display: grid; gap: 36px; }
.quote-mark { font-family: var(--f-display); font-size: 120px; line-height: .6; color: var(--accent-ink); height: 46px; }
.proof blockquote { font-size: clamp(30px, 3.6vw, 56px); line-height: 1.06; font-weight: 500; letter-spacing: -.035em; }
.proof-author { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.proof-author img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.proof-author p { display: grid; } .proof-author span { color: var(--muted); font-size: 14px; }
.proof-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 9 / 13; background: var(--bg-2); max-height: 76vh; justify-self: end; width: 100%; max-width: 460px; }
.proof-media video { width: 100%; height: 100%; object-fit: cover; }
.testimonials { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.testimonials li { background: var(--surface); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; }

/* ---------- Programs (filas acordeón) ---------- */
.programs { padding-block: clamp(80px, 10vw, 150px); }
.rows { margin-top: clamp(40px, 5vw, 80px); border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.row-media { display: flex; align-items: flex-start; gap: clamp(16px, 2vw, 32px); padding-block: clamp(18px, 2vw, 28px); cursor: pointer; }
.row-media .num { font-size: clamp(18px, 1.6vw, 24px); padding-top: .35em; min-width: 2.4em; }
.row-media figure { width: 96px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg-2); transition: width .7s var(--ease), border-radius .7s var(--ease); }
.row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.row:hover .row-media img { transform: scale(1.06); }
.row.is-open .row-media figure { width: min(100%, 440px); border-radius: var(--radius-lg); }
.row-head { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: clamp(22px, 2.6vw, 36px) 0; text-align: left; }
.row-head h3 { font-size: clamp(24px, 2.5vw, 38px); font-weight: 500; letter-spacing: -.03em; transition: color .3s, transform .5s var(--ease); }
.row:hover h3, .row.is-open h3 { color: var(--accent-ink); transform: translateX(10px); }
.plus { width: 22px; height: 22px; position: relative; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.plus::after { transform: rotate(90deg); }
.row.is-open .plus::after { transform: rotate(0); }
.row-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.row-body > div { overflow: hidden; display: grid; gap: 18px; justify-items: start; }
.row.is-open .row-body { grid-template-rows: 1fr; }
.row.is-open .row-body > div { padding-bottom: 36px; }
.row-body p { color: var(--ink-2); max-width: 560px; font-size: 17px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; background: var(--surface); }

/* ---------- Steps (scroll horizontal) ---------- */
.steps { position: relative; }
.steps-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; padding-inline: var(--gutter); }
.steps-row { display: flex; align-items: center; gap: clamp(24px, 4vw, 64px); will-change: transform; }
.steps-title { flex-shrink: 0; width: min(36vw, 520px); line-height: .88; }
.steps-track { display: flex; gap: 0; }
.steps-track li {
  flex-shrink: 0; width: clamp(290px, 26vw, 400px); height: min(74svh, 640px); min-height: 520px;
  display: flex; flex-direction: column; padding: 28px clamp(20px, 2vw, 32px); border-left: 1px solid var(--line);
}
.steps-track li:last-child { border-right: 1px solid var(--line); }
.step-n { font-size: 18px; font-weight: 500; text-transform: uppercase; color: var(--ink-2); display: block; }
.steps-track figure { margin-top: 18px; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.steps-track figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.steps-track li:hover figure img { transform: scale(1.05); }
.step-n i { color: var(--accent-ink); font-style: normal; }
.steps-track h3 { margin-top: auto; padding-top: 20px; font-size: clamp(26px, 2.4vw, 38px); font-weight: 500; line-height: 1.02; letter-spacing: -.035em; }
.steps-track p { margin-top: 18px; color: var(--ink-2); }

/* ---------- News ---------- */
.news { padding-block: clamp(80px, 10vw, 150px); }
.news-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.news-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: var(--gutter); margin-top: clamp(40px, 5vw, 70px); }
.news-card { display: flex; flex-direction: column; gap: 14px; }
.news-card figure { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; background: var(--bg-2); }
.news-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.news-card:hover img { transform: scale(1.05); }
.news-card .tag { position: absolute; left: 14px; top: 14px; background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.news-card time { font-size: 12px; font-weight: 500; text-transform: uppercase; color: var(--muted); }
.news-card h3 { font-size: 22px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; transition: color .3s; }
.news-card:hover h3 { color: var(--accent-ink); }
.news-card p { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card.is-feature figure { aspect-ratio: 4 / 3.6; }
.news-card.is-feature h3 { font-size: clamp(24px, 2.2vw, 32px); }
.follow { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 20px; }
.follow p { font-size: 18px; } .follow a { color: var(--accent-ink); font-weight: 600; }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ig-grid span { aspect-ratio: 1; border-radius: 10px; background: var(--bg-2); }

/* ---------- CTA final ---------- */
.cta-final { position: relative; overflow: hidden; padding-block: clamp(110px, 14vw, 210px) clamp(70px, 8vw, 110px); }
.cta-media { position: absolute; inset: 0; z-index: -1; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; opacity: .26; filter: grayscale(.3); }
.cta-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(242,240,235,.2) 40%, var(--bg) 100%); }
.cta-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gutter); align-items: end; }
.cta-side { display: grid; gap: 28px; justify-items: start; max-width: 420px; justify-self: end; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--gutter); padding-block: 48px; border-top: 1px solid var(--line); }
.footer-contact { display: grid; gap: 14px; align-content: start; }
.footer-contact p { display: grid; gap: 4px; }
.big-link { font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.03em; color: var(--accent-ink); }
.mid-link { font-size: 22px; font-weight: 500; }
.footer-col { display: grid; gap: 6px; align-content: start; font-size: 17px; }
.footer-col .label { margin-bottom: 8px; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-team { display: grid; gap: 14px; align-content: start; }
.aep-logo img { height: 56px; width: auto; filter: brightness(0); opacity: .8; }
.newsletter { display: grid; gap: 10px; font-size: 14px; }
.newsletter div { display: flex; gap: 8px; }
.newsletter input { flex: 1; min-width: 0; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 16px; font: inherit; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 18px 28px; font-size: 12px; color: var(--muted); }
.footer-legal a:hover { color: var(--ink); }
.footer-reveal { height: clamp(260px, 34vw, 480px); clip-path: inset(0); position: relative; }
.footer-reveal-inner { position: fixed; inset: auto 0 0 0; height: clamp(260px, 34vw, 480px); background: var(--accent); color: var(--ink); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 var(--gutter) clamp(12px, 2vw, 28px); }
.footer-word { font-family: var(--f-display); font-size: clamp(64px, 13.4vw, 220px); line-height: .8; letter-spacing: -.01em; white-space: nowrap; }
.footer-reveal-inner p { position: absolute; right: var(--gutter); top: clamp(24px, 3vw, 48px); font-size: clamp(22px, 3.2vw, 52px); font-weight: 500; letter-spacing: -.04em; line-height: 1; text-align: right; }

/* ==========================================================================
   Motion utilitario
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal="scale"] { transform: scale(.92); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-split] .wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; margin-bottom: -.04em; }
.js [data-split] .wi { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.js [data-split].in .wi { transform: none; }
.js .stats li:nth-child(2) { transition-delay: .08s; } .js .stats li:nth-child(3) { transition-delay: .16s; } .js .stats li:nth-child(4) { transition-delay: .24s; }
.js .why-cols li:nth-child(2) { transition-delay: .1s; } .js .why-cols li:nth-child(3) { transition-delay: .2s; }

/* ==========================================================================
   Modo revisión: [data-pending] oculto en producción, marcado con ?review
   ========================================================================== */
html:not(.review) [data-pending], html:not(.review) [data-pending-clone] { display: none !important; }
.review [data-pending] { outline: 2px dashed var(--accent-ink); outline-offset: 4px; position: relative; }
.review [data-pending]::after {
  content: "PENDIENTE: " attr(data-pending); position: absolute; left: 0; top: calc(100% + 6px); z-index: 50;
  background: var(--accent-ink); color: #fff; font: 600 11px/1.3 var(--f-body); text-transform: none; letter-spacing: 0;
  padding: 4px 8px; border-radius: 6px; width: max-content; max-width: 280px; white-space: normal; pointer-events: none;
}
.review-panel { position: fixed; right: 16px; bottom: 16px; z-index: 250; width: min(360px, calc(100vw - 32px)); max-height: 60vh; overflow: auto; background: var(--ink); color: #fff; border-radius: 16px; padding: 16px 18px; font-size: 13px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.review-panel[hidden] { display: none; }
.review-panel header { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 15px; }
.review-panel ol { list-style: decimal; padding-left: 18px; display: grid; gap: 6px; margin-bottom: 10px; }
.review-panel li { cursor: pointer; } .review-panel li:hover { color: var(--accent); }
.review-panel code { background: rgba(255,255,255,.12); padding: 1px 5px; border-radius: 4px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .header-meta .status { display: none; }
  .hero-title { grid-column: 8 / 13; }
  .why-cols { grid-column: 1 / -1; }
  .statement { grid-column: 1 / -1; }
  .side-label { grid-column: 1 / -1; margin-bottom: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .header-meta { display: none; }
  .header-cta { --h: 36px; padding: 0 14px; font-size: 11px; }
  .brand { font-size: 22px; }
  .site-header { gap: 10px; }
  .hero { display: flex; flex-direction: column; gap: 22px; height: auto; max-height: none; padding-top: calc(var(--header-h) + 6px); }
  .hero-word { font-size: 25vw; white-space: normal; line-height: .82; }
  .hero-media { order: 3; width: 100%; height: 50svh; margin: 0; clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); }
  @keyframes hero-clip { from { clip-path: polygon(50% 0, 50% 0, 50% 100%, 50% 100%); } to { clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); } }
  .hero-title { order: 2; margin: 0; text-align: left; font-size: 34px; }
  .hero-copy { order: 4; padding: 0; }
  .hero-bar { order: 5; flex-direction: column; align-items: stretch; gap: 20px; }
  .logos { flex-direction: column; align-items: flex-start; gap: 12px; }
  .marquee { width: 100%; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .why-cols { grid-template-columns: 1fr; }
  .numbers-head { grid-template-columns: 1fr; }
  .numbers-head .lead { justify-self: start; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .levels-grid { grid-template-columns: 1fr; }
  .levels-aside { display: none; }
  .level-card > div { grid-template-columns: 1fr; }
  .level-card h3 { grid-row: auto; }
  .proof { grid-template-columns: 1fr; }
  .proof-media { justify-self: stretch; max-width: none; aspect-ratio: 4 / 5; }
  .testimonials { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .row-media { padding-bottom: 0; }
  .row.is-open .row-media figure { width: 100%; }
  .steps-sticky { position: static; height: auto; flex-direction: column; align-items: flex-start; padding-block: 80px; overflow: visible; }
  .steps-title { width: auto; }
  .steps-row { flex-direction: column; align-items: flex-start; width: 100%; transform: none !important; }
  .steps-track { flex-direction: column; width: 100%; }
  .steps-track li { width: 100%; height: auto; border-left: 0; border-right: 0 !important; border-top: 1px solid var(--line); padding: 24px 0; }
  .steps-track li { min-height: 0; }
  .steps-track h3 { margin-top: 8px; }
  .news-grid { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-side { justify-self: start; }
  .menu { grid-template-columns: 1fr; align-content: end; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-reveal-inner { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .footer-reveal-inner p { position: static; text-align: left; order: -1; }
  .footer-word { font-size: 23vw; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-split] .wi, .js .hero [data-words] .w { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
