/* ==========================================================================
   AKIMIA ESTUDIO - Landing corporativa
   Concepto: "Del plano a la obra". Tema claro, acento naranja del logo,
   lenguaje de dibujo técnico (boceto -> construido) y corte diagonal del logo.
   Arquitectura CSS: mobile-first. Breakpoints: 640 / 900 / 1100 / 1400.
   ========================================================================== */

/* ---------- 1. FUENTES (locales, sin dependencias externas) ---------- */
@font-face { font-family: "Sora";      src: url("fonts/sora.woff2")      format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist";     src: url("fonts/geist.woff2")     format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Michroma";  src: url("fonts/michroma.woff2")  format("woff2"); font-weight: 400;     font-style: normal; font-display: swap; }

/* ---------- 2. TOKENS ---------- */
:root {
  /* Marca (muestreada del logo) */
  --orange:      #FE6D1D;   /* naranja del logo: fondos y botones (texto encima: tinta) */
  --orange-600:  #F0560A;   /* texto grande sobre claro (3.1:1) */
  --orange-700:  #C44205;   /* texto pequeño sobre claro (4.7:1) */
  --orange-100:  #FFE9DC;

  /* Neutros: acero y tinta del logo (fríos, sin crema ni beige) */
  --ink:      #101216;
  --ink-2:    #171A20;
  --ink-3:    #20242C;
  --steel-700:#4B515B;
  --steel-600:#5E6571;
  --steel-500:#767D89;
  --steel-400:#9AA0AA;
  --steel-300:#B7BCC5;
  --steel-200:#D8DBE0;
  --steel-100:#E7E9ED;
  --paper-2:  #EBEDF0;
  --paper:    #F4F5F6;
  --surface:  #FBFBFC;

  --line:      rgba(16, 18, 22, .12);
  --line-dark: rgba(255, 255, 255, .14);

  /* Tipografía */
  --f-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body:    "Geist", "Segoe UI", system-ui, sans-serif;
  --f-label:   "Michroma", "Sora", system-ui, sans-serif;

  /* Layout */
  --header-h: 68px;
  --gutter:   clamp(20px, 5vw, 56px);
  --max:      1280px;
  --cut:      14px;           /* corte diagonal (eco de la "A" del logo) */

  /* Movimiento */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io:  cubic-bezier(.65, 0, .35, 1);

  /* Escala de capas (solo contextos sistémicos) */
  --z-sticky: 20;
  --z-header: 50;
  --z-float:  60;
  --z-modal:  80;
  --z-loader: 100;
}

/* ---------- 3. RESET Y BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); color-scheme: light; }
body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--steel-700);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange-600); outline-offset: 3px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: var(--z-loader); background: var(--ink); color: #fff; padding: 12px 18px; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- 4. TIPOGRAFÍA ---------- */
h1, h2, h3 { font-family: var(--f-display); color: var(--ink); font-weight: 650; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(2rem, 6.4vw, 3.7rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); letter-spacing: -.02em; line-height: 1.15; }
p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-label); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--orange-700);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); }

.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.ico--lg { width: 30px; height: 30px; }
.ico--xl { width: 44px; height: 44px; }

/* Palabras divididas por JS: revelado con máscara */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.wi { display: inline-block; }
.js [data-split] .wi { transform: translateY(115%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
.js [data-split].is-in .wi { transform: none; }

/* Revelado genérico */
.js [data-reveal] { opacity: 0; translate: 0 30px; transition: opacity .9s var(--ease-out), translate 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ---------- 5. BOTONES (corte diagonal = firma de marca) ---------- */
.btn {
  --fill: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 52px; padding: 0 1.55rem;
  font-family: var(--f-body); font-weight: 600; font-size: .98rem; line-height: 1; letter-spacing: .005em; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: color .35s var(--ease-out), transform .45s var(--ease-out), translate .5s var(--ease-out);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill); transform: translateY(102%);
  transition: transform .55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:active { transform: scale(.975); }
.btn .ico { transition: transform .45s var(--ease-out); }
.btn:hover .ico { transform: translate(3px, -3px); }

.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover, .btn--primary:focus-visible { color: #fff; }
.btn--ink     { background: var(--ink); color: #fff; --fill: var(--orange); }
.btn--ink:hover, .btn--ink:focus-visible { color: var(--ink); }
.btn--soft    { background: var(--steel-100); color: var(--ink); }
.btn--soft:hover, .btn--soft:focus-visible { color: #fff; }
.btn--sm { min-height: 44px; padding: 0 1.15rem; font-size: .9rem; }
.btn--lg { min-height: 58px; padding: 0 1.8rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* Variante sobre fondos oscuros */
.on-dark .btn--primary::before, .contact .btn--primary::before { background: var(--surface); }
.on-dark .btn--primary:hover, .contact .btn--primary:hover { color: var(--ink); }

/* Enlace con flecha */
.link { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: var(--ink); position: relative; padding-bottom: 4px; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform-origin: left; transition: transform .5s var(--ease-out); }
.link:hover::after { transform: scaleX(.35); }
.link .ico { transition: transform .45s var(--ease-out); }
.link:hover .ico { transform: translate(3px, -3px); }

/* Sin JavaScript no hay loader ni marquee animado por script */
.no-js .loader { display: none; }
.js .marquee__track { animation: none; }

/* ---------- 6. LOADER ---------- */
.loader { position: fixed; inset: 0; z-index: var(--z-loader); display: grid; place-items: center; overflow: hidden; }
.loader__half {
  position: absolute; left: 0; right: 0; height: 50.2%; background: var(--paper);
  background-image:
    linear-gradient(rgba(16,18,22,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,18,22,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  transition: transform 1.05s var(--ease-io) .3s;
}
.loader__half--top { top: 0; }
.loader__half--bottom { bottom: 0; background-position: 0 -1px; }
.loader__seam { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--orange); transform: scaleX(0); opacity: 0; }
.loader__core { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; padding: 24px; transition: opacity .35s ease, transform .6s var(--ease-io); }

.loader__ring { position: relative; width: 104px; height: 104px; display: grid; place-items: center; }
.loader__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); animation: ring-spin 1.6s linear infinite; }
.loader__ring circle { fill: none; stroke-width: 3; }
.loader__track { stroke: var(--steel-200); }
.loader__arc { stroke: var(--orange); stroke-linecap: butt; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; }
.loader__ring img { width: 46px; height: 46px; animation: mark-pulse 1.8s var(--ease-io) infinite; }

.loader__logo { position: relative; width: min(64vw, 300px); aspect-ratio: 900 / 448; }
.loader__logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader__logo-base { filter: grayscale(1) contrast(.9); opacity: .22; }
.loader__logo-fill { clip-path: inset(0 calc(100% - var(--p, 0) * 100%) 0 0); }

.loader__meta { display: flex; align-items: baseline; gap: 6px; font-family: var(--f-label); color: var(--ink); font-size: .78rem; letter-spacing: .12em; }
.loader__pct { min-width: 2.2ch; text-align: right; font-size: 1.1rem; }
.loader__txt { margin-left: 14px; color: var(--steel-500); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; }

.loader.is-done .loader__core { opacity: 0; transform: scale(.96); }
.loader.is-done .loader__seam { animation: seam 1.1s var(--ease-io) forwards; }
.loader.is-done .loader__half--top { transform: translateY(-101%); }
.loader.is-done .loader__half--bottom { transform: translateY(101%); }

@keyframes ring-spin { to { transform: rotate(270deg); } }
@keyframes mark-pulse { 50% { transform: scale(.9); opacity: .75; } }
@keyframes seam { 0% { transform: scaleX(0); opacity: 1; } 35% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* ---------- 7. BARRA DE PROGRESO ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: calc(var(--z-header) + 1); pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }

/* ---------- 8. HEADER ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: var(--z-header); transition: transform .6s var(--ease-out), background-color .4s, box-shadow .4s; }
.header__bar {
  max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header.is-stuck { background: rgba(251, 251, 252, .82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-101%); }
.header__brand img { height: 40px; width: auto; }
.header__nav { display: none; }
.header__actions { display: flex; align-items: center; gap: 12px; }
.header__actions .btn { display: none; }

.burger { position: relative; width: 46px; height: 46px; background: var(--ink); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* Menú móvil a pantalla completa */
.menu {
  position: fixed; inset: 0; z-index: calc(var(--z-header) - 1); background: var(--paper);
  background-image: linear-gradient(rgba(16,18,22,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(16,18,22,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 28px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io);
}
.menu.is-open { clip-path: inset(0); }
.menu__nav { display: grid; gap: 2px; }
.menu__nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.7rem, 8vw, 2.6rem); letter-spacing: -.03em; color: var(--ink);
  opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out);
}
.menu.is-open .menu__nav a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * 70ms); }
.menu__nav .ico { width: .8em; height: .8em; color: var(--orange-600); }
.menu__foot { display: grid; gap: 16px; }
.menu__foot p { font-family: var(--f-label); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--steel-500); text-align: center; }

@media (min-width: 1100px) {
  .header__nav { display: flex; gap: 6px; }
  .header__nav a { position: relative; padding: 10px 14px; font-weight: 500; font-size: .94rem; color: var(--ink); }
  .header__nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
  .header__nav a:hover::after, .header__nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
  .header__actions .btn { display: inline-flex; }
  .burger, .menu { display: none; }
  .header__brand img { height: 44px; }
}


/* ---------- 9. HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh; overflow: clip;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 16px) 0 44px;
  background: radial-gradient(55% 45% at 88% 18%, rgba(254, 109, 29, .11), transparent 70%), var(--paper);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(16,18,22,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(16,18,22,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(75% 70% at 70% 45%, #000, transparent 78%);
          mask-image: radial-gradient(75% 70% at 70% 45%, #000, transparent 78%);
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: 34px; align-items: center; }

.hero__copy { display: grid; justify-items: start; gap: 20px; }
.hero__title { font-size: clamp(3.1rem, 14.4vw, 7rem); font-weight: 700; letter-spacing: -.045em; line-height: .96; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero__title .line > span { display: block; }
.hero__title em { font-style: normal; color: var(--orange-600); position: relative; }
@media (max-width: 479px) { .hero .eyebrow { font-size: .56rem; letter-spacing: .13em; gap: 8px; } .hero .eyebrow::before { width: 18px; } }
.hero__lead { max-width: 46ch; font-size: clamp(1.02rem, 2.3vw, 1.2rem); color: var(--steel-700); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* Entrada orquestada: se activa cuando el loader termina */
.js .hero [data-hero] { opacity: 0; transform: translate3d(0, 26px, 0); }
.js .hero .line > span { transform: translate3d(0, 115%, 0); }
.is-ready .hero [data-hero] { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: calc(var(--n, 0) * 130ms + 150ms); }
.is-ready .hero .line > span { transform: none; transition: transform 1.3s var(--ease-out); transition-delay: calc(var(--n, 1) * 140ms + 120ms); }

/* Escena 3D de la imagen principal */
.hero__visual { perspective: 1200px; }
.hero__stage { width: min(100%, 440px); margin-inline: auto; animation: floaty 9s var(--ease-io) infinite; }
.hero__float { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.hero__float::before { content: ""; position: absolute; inset: auto 6% -22px 6%; height: 44px; background: rgba(16,18,22,.34); filter: blur(28px); transform: translateZ(-60px); }
.hero__card {
  position: relative; width: 100%; aspect-ratio: 5 / 6; overflow: hidden; background: var(--steel-200);
  clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 56px, 100% 100%, 0 100%);
}
.hero__img {
  position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; object-position: 50% 42%;
  translate: var(--ix, 0px) var(--iy, 0px); animation: kenburns 20s var(--ease-io) infinite alternate;
}
.hero__scan { position: absolute; inset: 0; transform: translateX(-102%); animation: scan 7.5s var(--ease-io) 1.8s infinite; pointer-events: none; }
.hero__scan::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 2px; background: var(--orange); box-shadow: 0 0 26px 6px rgba(254, 109, 29, .5); }
.hero__scan::before { content: ""; position: absolute; top: 0; bottom: 0; right: 2px; width: 46%; background: linear-gradient(to left, rgba(254, 109, 29, .26), transparent); }

.hero__seal {
  position: absolute; left: -14px; bottom: 8%; width: 108px; height: 108px; display: grid; place-items: center;
  background: var(--surface); transform: translateZ(80px);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.hero__seal svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: spin 26s linear infinite; }
.hero__seal text { font-family: var(--f-label); font-size: 12.5px; fill: var(--ink); letter-spacing: .02em; }
.hero__seal img { width: 38px; height: 38px; }

@keyframes floaty { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -12px, 0); } }
@keyframes kenburns { from { scale: 1.02; } to { scale: 1.1; } }
@keyframes scan { 0% { transform: translateX(-102%); } 55% { transform: translateX(0); } 100% { transform: translateX(0); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 640px) {
  .hero__seal { width: 126px; height: 126px; left: -34px; }
  .hero__seal text { font-size: 12px; }
  .hero__seal img { width: 44px; height: 44px; }
}
@media (min-width: 1000px) {
  .hero { padding-bottom: 56px; }
  .hero__grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 40px; }
  .hero__title { font-size: clamp(5rem, 8.6vw, 7.6rem); }
  .hero__stage { width: min(100%, calc(74vh * .84)); width: min(100%, calc(74dvh * .84)); margin-inline: auto 0; }
  .hero__seal { left: -52px; width: 140px; height: 140px; bottom: 11%; }
  .hero__seal img { width: 50px; height: 50px; }
}

/* ---------- 10. MARQUEE (único de la página) ---------- */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 20px 0; position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; animation: marq 42s linear infinite; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: 38px; padding-right: 38px; flex: none; }
.marquee__group span { font-family: var(--f-display); font-weight: 650; font-size: clamp(1.7rem, 4.6vw, 3.1rem); letter-spacing: -.025em; text-transform: uppercase; line-height: 1.1; white-space: nowrap; }
.marquee__group .o { color: transparent; -webkit-text-stroke: 1.3px rgba(255, 255, 255, .72); }
.marquee__group i { width: 20px; height: 20px; background: var(--orange); clip-path: polygon(0 100%, 100% 0, 100% 100%); flex: none; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- 11. MANIFIESTO ---------- */
.manifesto { background: var(--surface); padding: clamp(84px, 14vw, 180px) 0 clamp(72px, 10vw, 140px); position: relative; }
.manifesto__text {
  font-family: var(--f-display); font-weight: 600; color: var(--ink);
  font-size: clamp(1.7rem, 5vw, 3.7rem); line-height: 1.16; letter-spacing: -.028em; max-width: 24ch;
}
.manifesto .w { color: var(--steel-200); transition: color .4s ease; padding-bottom: .1em; margin-bottom: -.1em; }
.manifesto .w .wi { transform: none; }
.manifesto .w.on { color: var(--ink); }
.manifesto .w.on.acc { color: var(--orange-600); }

.stats { display: grid; margin-top: clamp(56px, 9vw, 120px); }
.stat { padding: 26px 0 30px; border-top: 1px solid var(--ink); display: grid; gap: 14px; align-content: start; }
.stat__n { font-family: var(--f-display); font-weight: 700; color: var(--ink); font-size: clamp(4.2rem, 13vw, 8rem); line-height: .9; letter-spacing: -.06em; display: block; position: relative; width: fit-content; }
.stat__n::after { content: ""; position: absolute; left: calc(100% + 10px); top: 12%; width: 22px; height: 22px; background: var(--orange); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.stat p { max-width: 30ch; font-size: 1.02rem; color: var(--steel-700); }
@media (min-width: 800px) {
  .manifesto__text { max-width: 26ch; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* ---------- 12. REVEAL: la imagen se abre y pasa de boceto a obra ---------- */
.reveal { position: relative; height: 380vh; background: var(--paper-2); }
.reveal__pin { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; background: var(--paper-2); }
.reveal__intro { position: absolute; inset: 0 0 auto 0; z-index: 1; padding: calc(var(--header-h) + 3vh) var(--gutter) 0; text-align: center; will-change: transform, opacity; }
.reveal__intro h2 { max-width: 15ch; margin-inline: auto; font-size: clamp(1.95rem, 5.6vw, 4.3rem); }
.reveal__frame {
  position: absolute; inset: 0; z-index: 2; overflow: hidden; background: var(--steel-200);
  clip-path: inset(36vh 9vw 14vh 9vw);
  will-change: clip-path;
}
.reveal__layer { position: absolute; inset: 0; will-change: clip-path; }
@media (max-width: 699px) { .reveal__layer img { object-position: 40% 55%; } }
.reveal__layer img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; scale: var(--s, 1.28); will-change: scale; }
.reveal__layer--color { clip-path: inset(0 100% 0 0); }
.reveal__scan { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--orange); box-shadow: 0 0 34px 10px rgba(254, 109, 29, .5); opacity: 0; will-change: transform, opacity; }
.reveal__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,18,22,.9) 0%, rgba(16,18,22,.55) 34%, rgba(16,18,22,0) 70%); opacity: 0; }
.reveal__copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; color: #fff; opacity: 0; pointer-events: none;
  padding: 0 var(--gutter) calc(6vh + env(safe-area-inset-bottom));
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
}
.reveal__copy a { pointer-events: auto; }
.reveal__kicker { font-family: var(--f-display); font-weight: 650; font-size: clamp(1.9rem, 5.2vw, 3.9rem); line-height: 1.04; letter-spacing: -.035em; max-width: 17ch; color: #fff; margin-bottom: 14px; }
.reveal__text { color: rgba(255,255,255,.84); max-width: 50ch; margin-bottom: 26px; }
.reveal .btn--primary::before { background: var(--surface); }
.reveal .btn--primary:hover { color: var(--ink); }


/* ---------- 13. SERVICIOS: stack sticky con profundidad ---------- */
.services { background: var(--paper); padding: clamp(84px, 12vw, 160px) 0 clamp(72px, 10vw, 140px); position: relative; }
.services__head { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vw, 76px); }
.services__head h2 { max-width: 16ch; }
.services__head p { max-width: 52ch; font-size: 1.1rem; }

.stack { display: grid; gap: 22px; }
.svc { position: relative; filter: drop-shadow(0 -12px 26px rgba(16, 18, 22, .09)); }
.svc__inner {
  display: grid; background: var(--surface); transform-origin: 50% 0; will-change: transform;
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%);
}
.svc--tone .svc__inner { background: var(--paper-2); }
.svc--dark .svc__inner { background: var(--ink-2); color: rgba(255, 255, 255, .76); }
.svc--dark h3, .svc--dark .svc__lead { color: #fff; }
.svc__inner { position: relative; }
.svc__inner::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: var(--veil, 0); pointer-events: none; z-index: 3; }

.svc__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--steel-200); }
.svc__media img { position: absolute; left: 0; top: -7%; width: 100%; height: 114%; object-fit: cover; translate: 0 var(--py, 0px); }
.svc__body { position: relative; padding: 28px 24px 34px; display: grid; gap: 14px; align-content: center; }
.svc__ico { color: var(--orange-600); }
.svc__num {
  position: absolute; right: 22px; top: 18px; font-family: var(--f-display); font-weight: 700; font-size: 4.2rem; line-height: 1; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.2px var(--steel-300); pointer-events: none;
}
.svc--dark .svc__num { -webkit-text-stroke-color: rgba(255, 255, 255, .22); }
.svc__lead { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; line-height: 1.28; letter-spacing: -.02em; color: var(--ink); }
.ticks { display: grid; gap: 2px; margin-top: 4px; position: relative; z-index: 1; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: .97rem; }
.ticks .ico { color: var(--orange-600); margin-top: .3em; }
.svc--dark .ticks .ico { color: var(--orange); }

.services__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; margin-top: clamp(44px, 7vw, 96px); padding-top: 30px; border-top: 1px solid var(--line); }
.services__cta p { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.4rem, 3.2vw, 2.2rem); letter-spacing: -.025em; color: var(--ink); line-height: 1.1; }

@media (min-width: 900px) {
  .stack { display: block; perspective: 1800px; }
  .svc { position: sticky; top: calc(var(--header-h) + 14px + var(--i) * 18px); margin-bottom: 11vh; }
  .svc:last-child { margin-bottom: 0; }
  .svc__inner { grid-template-columns: 1.05fr .95fr; min-height: min(560px, calc(100vh - var(--header-h) - 110px)); min-height: min(560px, calc(100dvh - var(--header-h) - 110px)); }
  .svc__media { aspect-ratio: auto; height: 100%; }
  .svc__body { padding: 46px 48px 52px 44px; }
  .svc__lead { font-size: 1.35rem; }
  .svc__num { font-size: 7.5rem; right: 30px; top: auto; bottom: 18px; }
}

/* ---------- 14. PROCESO: maqueta 3D pinned ---------- */
.process { position: relative; height: 600vh; background: var(--paper); }
.process__pin {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
  background:
    linear-gradient(rgba(16,18,22,.045) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(16,18,22,.045) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--paper);
}
.process__layout { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 8px; padding-top: calc(var(--header-h) + 6px); padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.process__side { display: contents; }
.process__side h2 { order: 1; font-size: clamp(1.45rem, 6.2vw, 2.1rem); line-height: 1.06; }
.process__stage { order: 2; position: relative; min-height: 0; }
.process__stage canvas { width: 100%; height: 100%; }
.process__meter { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--steel-200); }
.process__meter span { display: block; height: 100%; background: var(--orange); transform: scaleX(var(--pp, 0)); transform-origin: left; }
.steps { order: 3; position: relative; min-height: 96px; }
.step { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: baseline; padding: 4px 0; }
.step__n { font-family: var(--f-label); font-size: .7rem; letter-spacing: .14em; color: var(--orange-700); grid-row: span 2; }
.step h3 { font-size: 1.3rem; }
.step p { font-size: .95rem; line-height: 1.5; grid-column: 2; }
.js .step { display: none; }
.js .step.is-active { display: grid; animation: step-in .7s var(--ease-out) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(14px); } }
.process__cta { order: 4; min-height: 52px; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.process__cta.is-on { opacity: 1; transform: none; pointer-events: auto; }

@media (min-width: 1000px) {
  .process__layout { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); grid-template-rows: 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding-top: calc(var(--header-h) + 10px); padding-bottom: 20px; }
  .process__side { display: flex; flex-direction: column; gap: 26px; justify-content: center; }
  .process__side h2 { font-size: clamp(2.2rem, 3.8vw, 3.2rem); max-width: 14ch; }
  .process__stage { height: min(76vh, 740px); height: min(76dvh, 740px); }
  .steps { position: relative; display: grid; padding-left: 30px; min-height: 0; }
  .steps::before, .steps::after { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; }
  .steps::before { background: var(--steel-200); }
  .steps::after { background: var(--orange); transform: scaleY(var(--pp, 0)); transform-origin: top; }
  .js .step { display: grid; animation: none; padding: 11px 0; }
  .step h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); color: var(--steel-300); transition: color .5s ease; }
  .step.is-active h3 { color: var(--ink); }
  .step__n { color: var(--steel-300); transition: color .5s ease; }
  .step.is-active .step__n { color: var(--orange-700); }
  .js .step p { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s var(--ease-out), opacity .5s ease; }
  .js .step.is-active p { max-height: 6em; opacity: 1; }
  .process__cta { min-height: 0; }
}

/* ---------- 15. PROYECTOS: galería horizontal ---------- */
.work { position: relative; background: var(--surface); }
.work__pin { position: relative; padding: clamp(72px, 10vw, 120px) 0 clamp(40px, 6vw, 80px); }
.work__track { display: flex; gap: 16px; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter) 24px; scrollbar-width: none; overscroll-behavior-x: contain; }
.work__track::-webkit-scrollbar { display: none; }
.work__intro { flex: none; width: min(80vw, 400px); scroll-snap-align: start; display: grid; gap: 16px; align-content: start; padding-right: 12px; }
.work__intro h2 { font-size: clamp(1.9rem, 7vw, 3rem); }
.work__intro p:last-child { font-size: 1.02rem; }

.pcard { flex: none; width: min(78vw, 340px); scroll-snap-align: center; display: grid; gap: 14px; align-content: start; }
.pcard__media {
  position: relative; display: block; width: 100%; overflow: hidden; background: var(--steel-200); cursor: zoom-in;
  aspect-ratio: 4 / 5; clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
}
.pcard--wide .pcard__media { aspect-ratio: 4 / 3; }
.pcard__media img { position: absolute; left: -8%; top: 0; width: 116%; max-width: none; height: 100%; object-fit: cover; translate: var(--tx, 0px) 0; scale: 1.02; transition: scale 1.3s var(--ease-out); }
.pcard__media:hover img { scale: 1.09; }
.pcard__zoom { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--orange); color: var(--ink); opacity: 0; transform: scale(.6); transition: opacity .4s ease, transform .5s var(--ease-out); }
.pcard__media:hover .pcard__zoom, .pcard__media:focus-visible .pcard__zoom { opacity: 1; transform: none; }
@media (hover: none) { .pcard__zoom { opacity: 1; transform: none; } }
.pcard__body p { font-size: .96rem; margin: 6px 0 12px; max-width: 34ch; }

.work__bar { display: none; }

@media (min-width: 900px) {
  /* Modo horizontal con scroll vertical: lo activa JS (clase .is-h) */
  .work.is-h .work__pin { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; display: flex; align-items: center; padding: calc(var(--header-h) + 12px) 0 64px; }
  .work.is-h .work__track { overflow: visible; scroll-snap-type: none; width: max-content; gap: clamp(28px, 4vw, 64px); align-items: center; padding: 0 var(--gutter); will-change: transform; }
  .work.is-h .work__intro { width: min(34vw, 440px); }
  .work.is-h .work__intro h2 { font-size: clamp(2.3rem, 3.8vw, 3.4rem); }
  .work.is-h .pcard--tall { width: min(27vw, calc(50vh * .8)); width: min(27vw, calc(50dvh * .8)); }
  .work.is-h .pcard--wide { width: min(38vw, calc(40vh * 1.33)); width: min(38vw, calc(40dvh * 1.33)); }
  .work.is-h .work__bar { display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 30px; height: 2px; background: var(--steel-200); }
  .work.is-h .work__bar span { display: block; height: 100%; background: var(--orange); transform: scaleX(var(--wp, 0)); transform-origin: left; }
}

/* ---------- 16. BANDA NARANJA ---------- */
.band { position: relative; overflow: hidden; background: var(--orange); color: var(--ink); padding: clamp(76px, 11vw, 150px) 0; isolation: isolate; }
.band__art { position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(115deg, rgba(16,18,22,.09) 0 1px, transparent 1px 28px); animation: hatch 16s linear infinite; }
.band__tri { position: absolute; right: -8%; bottom: -34%; width: min(78vw, 760px); aspect-ratio: 1; background: var(--orange-600); clip-path: polygon(0 100%, 100% 0, 100% 100%); opacity: .75; animation: tri-float 12s var(--ease-io) infinite alternate; }
@keyframes hatch { to { background-position: 280px 0; } }
@keyframes tri-float { to { transform: translate3d(-3%, -4%, 0); } }
.band__inner { position: relative; display: grid; gap: 34px; }
.band h2 { color: var(--ink); font-size: clamp(2.5rem, 9vw, 6.6rem); letter-spacing: -.048em; line-height: .98; max-width: 13ch; }
.band__side { display: grid; gap: 22px; justify-items: start; }
.band__side p { font-size: 1.15rem; color: var(--ink); max-width: 36ch; }
@media (min-width: 800px) { .band__side { grid-auto-flow: column; justify-content: start; align-items: center; gap: 34px; } }

/* ---------- 17. POR QUÉ AKIMIA: bento de 5 celdas ---------- */
.why { background: var(--paper); padding: clamp(84px, 12vw, 160px) 0; }
.why h2 { max-width: 19ch; margin-bottom: clamp(34px, 6vw, 70px); }
.bento { display: grid; gap: 14px; }
.bx {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 10px; align-content: end; min-height: 250px; padding: 28px;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease-out), opacity .9s var(--ease-out), translate 1.1s var(--ease-out);
}
.bx::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s ease; background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), var(--glow, rgba(254,109,29,.18)), transparent 62%); }
.bx:hover::after { opacity: 1; }
.bx > * { position: relative; z-index: 2; }
.bx h3 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); }
.bx p { max-width: 38ch; font-size: .98rem; }
.bx .ico--lg { margin-bottom: 8px; }

.bx--a { color: rgba(255,255,255,.84); min-height: 420px; background: var(--ink); }
.bx--a img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 112%; top: -6%; object-fit: cover; translate: 0 var(--py, 0px); }
.bx--a .bx__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(16,18,22,.92) 0%, rgba(16,18,22,.55) 45%, rgba(16,18,22,.06) 100%); }
.bx--a .bx__body { position: relative; z-index: 2; display: grid; gap: 10px; }
.bx--a h3 { color: #fff; max-width: 18ch; }
.bx--a .ico { color: var(--orange); }
.bx--b { background: var(--orange); color: var(--ink); --glow: rgba(255,255,255,.28); }
.bx--b h3, .bx--b .ico { color: var(--ink); }
.bx--c { background: var(--ink-2); color: rgba(255,255,255,.74);
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 34px 34px; }
.bx--c h3 { color: #fff; }
.bx--c .ico { color: var(--orange); }
.bx--d { background: var(--paper-2); background-image: repeating-linear-gradient(115deg, rgba(16,18,22,.05) 0 1px, transparent 1px 22px); }
.bx--d .ico, .bx--e .ico { color: var(--orange-600); }
.bx--e { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bx--a { grid-column: 1 / -1; min-height: 460px; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(250px, auto); gap: 16px; }
  .bx--a { grid-column: 1 / 8; grid-row: 1 / 3; min-height: 0; }
  .bx--b { grid-column: 8 / 13; }
  .bx--c { grid-column: 8 / 13; }
  .bx--d { grid-column: 1 / 6; }
  .bx--e { grid-column: 6 / 13; }
  .bx { padding: 34px; }
}


/* ---------- 18. PREGUNTAS FRECUENTES ---------- */
.faq { background: var(--surface); padding: clamp(84px, 12vw, 160px) 0; }
.faq__grid { display: grid; gap: 38px; }
.faq__aside { display: grid; gap: 28px; justify-items: start; align-content: start; }
.faq__aside h2 { max-width: 13ch; font-size: clamp(2rem, 5.8vw, 3.4rem); }
.faq__list { border-top: 1px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line); }
.qa h3 { font-size: inherit; line-height: 1.2; letter-spacing: 0; }
.qa button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; padding: 24px 0;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.08rem, 2.4vw, 1.4rem); letter-spacing: -.02em; line-height: 1.22; color: var(--ink);
}
.qa__i { flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: var(--steel-100); transition: background-color .3s; }
.qa__i .ico { transition: transform .6s var(--ease-out); }
.qa button:hover .qa__i { background: var(--orange-100); }
.qa.is-open .qa__i { background: var(--orange); }
.qa.is-open .qa__i .ico { transform: rotate(45deg); }
.qa__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .65s var(--ease-out); }
.qa__panel > div { min-height: 0; overflow: hidden; }
.qa__panel p { padding: 0 52px 28px 0; max-width: 62ch; }
.qa.is-open .qa__panel { grid-template-rows: 1fr; }
@media (min-width: 1000px) {
  .faq__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 120px); }
  .faq__aside { position: sticky; top: calc(var(--header-h) + 36px); }
}

/* ---------- 19. CONTACTO (sección oscura de cierre) ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: rgba(255, 255, 255, .78); padding: clamp(84px, 12vw, 160px) 0; }
.contact::before { content: ""; position: absolute; z-index: -1; right: -22vw; top: -26vw; width: 70vw; aspect-ratio: 1; background: radial-gradient(circle, rgba(254, 109, 29, .26), transparent 64%); animation: glow 9s var(--ease-io) infinite alternate; }
.contact__grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 70% at 30% 30%, #000, transparent 80%);
          mask-image: radial-gradient(80% 70% at 30% 30%, #000, transparent 80%);
}
@keyframes glow { to { transform: translate3d(-6%, 8%, 0) scale(1.1); } }
.contact h2 { color: #fff; font-size: clamp(2.3rem, 7.2vw, 4.8rem); max-width: 13ch; letter-spacing: -.04em; }
.contact__layout { display: grid; gap: 46px; align-items: start; }
.contact__copy { display: grid; gap: 22px; align-content: start; }
.contact__copy > p { max-width: 44ch; font-size: 1.1rem; }
.contact__list { display: grid; gap: 18px; margin-top: 10px; }
.contact__list li { display: flex; align-items: center; gap: 16px; }
.contact__list .ico { width: 48px; height: 48px; padding: 13px; background: rgba(255,255,255,.07); color: var(--orange); }
.contact__list span { display: block; font-size: .82rem; color: var(--steel-400); }
.contact__list a, .contact__list strong { color: #fff; font-weight: 600; font-size: 1.08rem; }
.contact__list a:hover { color: var(--orange); }

.form {
  display: grid; gap: 18px; padding: clamp(24px, 4vw, 44px); background: var(--ink-2);
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%);
}
.field label { display: block; margin-bottom: 8px; font-size: .92rem; font-weight: 600; color: #fff; }
.field label span { font-weight: 400; color: var(--steel-400); }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 16px; background: var(--ink); color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 0;
  font-size: 1rem; line-height: 1.4; transition: border-color .3s, box-shadow .3s; appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--steel-400); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255,255,255,.4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(254, 109, 29, .3); }
.field select:invalid { color: var(--steel-400); }
.field select option { color: #101216; background: #fff; }
.select { position: relative; }
.select select { padding-right: 46px; cursor: pointer; }
.select .ico { position: absolute; right: 16px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--steel-300); }
.field.has-error input, .field.has-error select { border-color: #FF9B80; }
.field__err { margin-top: 7px; font-size: .88rem; color: #FFA58C; }
.field__err:empty { display: none; }
.form__note { text-align: center; font-size: .88rem; color: var(--steel-400); }
.form.is-sent .form__note { color: var(--orange); font-weight: 600; }

@media (min-width: 1000px) {
  .contact__layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(48px, 7vw, 110px); }
}

/* ---------- 20. FOOTER ---------- */
.footer { position: relative; background: var(--surface); padding-top: clamp(60px, 8vw, 100px); overflow: hidden; }
.footer__top { display: grid; gap: 38px; }
.footer__brand img { width: min(230px, 62vw); height: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 36ch; }
.footer__h { font-family: var(--f-label); font-weight: 400; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--steel-600); margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { color: var(--ink); font-weight: 500; transition: color .3s; }
.footer__col a:hover { color: var(--orange-700); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 46px; height: 46px; display: grid; place-items: center; background: var(--steel-100); color: var(--ink); transition: background-color .3s, color .3s; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%); }
.social a:hover { background: var(--ink); color: #fff; }
.footer__word {
  margin-top: clamp(34px, 6vw, 80px); text-align: center; white-space: nowrap; user-select: none; padding-bottom: .04em;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(4rem, 22vw, 22rem); letter-spacing: -.06em; line-height: .82;
  color: transparent;
  background: linear-gradient(to top, var(--ink) 0, var(--ink) calc(var(--fill, 0) * 100%), var(--steel-200) calc(var(--fill, 0) * 100%));
  -webkit-background-clip: text; background-clip: text;
}
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 22px 26px; border-top: 1px solid var(--line); font-size: .9rem; position: relative; background: var(--surface); }
.footer__bottom a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); margin-right: 78px; }
@media (min-width: 800px) { .footer__top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; } }

/* ---------- 21. BOTÓN FLOTANTE DE WHATSAPP ---------- */
.wa { position: fixed; z-index: var(--z-float); right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; }
.wa__btn { position: relative; isolation: isolate; width: 62px; height: 62px; display: grid; place-items: center; color: var(--ink); transition: transform .5s var(--ease-out); }
.wa__btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #25D366; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); transition: background-color .3s; }
.wa__btn:hover { transform: translateY(-3px) scale(1.04); }
.wa__btn:hover::before { background: #3BE07C; }
.wa__pulse { position: absolute; inset: 0; z-index: -2; background: #25D366; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); animation: pulse 2.6s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
.wa__tip {
  display: flex; align-items: center; gap: 10px; max-width: 230px; padding: 12px 8px 12px 16px; background: var(--ink); color: #fff; font-size: .9rem; font-weight: 500; line-height: 1.3;
  opacity: 0; transform: translateX(14px); pointer-events: none; transition: opacity .5s ease, transform .7s var(--ease-out);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.wa__tip button { width: 30px; height: 30px; flex: none; font-size: 1.2rem; line-height: 1; color: var(--steel-300); }
.wa__tip button:hover { color: #fff; }
.wa.is-tip .wa__tip { opacity: 1; transform: none; pointer-events: auto; }
.wa { transition: opacity .4s ease, transform .6s var(--ease-out); }
.wa.is-away, .is-locked .wa { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* ---------- 22. LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 18px; background: rgba(16, 18, 22, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; overflow-y: auto; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__fig { width: min(1120px, 100%); display: grid; gap: 16px; transform: translateY(24px) scale(.96); transition: transform .8s var(--ease-out); }
.lightbox.is-open .lightbox__fig { transform: none; }
.lightbox__fig img { width: 100%; max-height: 72vh; max-height: 72dvh; object-fit: contain; background: var(--ink-2); }
.lightbox figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: rgba(255,255,255,.76); }
.lightbox figcaption strong { display: block; color: #fff; font-family: var(--f-display); font-size: 1.3rem; letter-spacing: -.02em; }
.lightbox .btn--primary::before { background: var(--surface); }
.lightbox .btn--primary:hover { color: var(--ink); }
.lightbox__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 50px; height: 50px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; transition: background-color .3s, color .3s; }
.lightbox__close:hover { background: var(--orange); color: var(--ink); }
.lightbox__close .ico { width: 22px; height: 22px; }

/* ---------- 23. MOVIMIENTO REDUCIDO: todo queda estático y legible ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js .hero [data-hero] { opacity: 1; transform: none; translate: none; }
  .js .hero .line > span, .js [data-split] .wi { transform: none; }
  .marquee__track, .hero__stage, .hero__scan, .band__art, .band__tri { animation: none; }
  .hero__scan { opacity: 0; }
  .manifesto .w { color: var(--ink); }
  .manifesto .w.acc { color: var(--orange-600); }

  .stack { display: grid; perspective: none; }
  .svc { position: relative; top: auto; margin-bottom: 0; }

  .reveal { height: auto; }
  .reveal__pin { position: relative; height: auto; overflow: visible; display: grid; }
  .reveal__intro { position: static; padding-bottom: 28px; }
  .reveal__frame { position: relative; inset: auto; height: 70vh; clip-path: none; }
  .reveal__layer--color { clip-path: none; }
  .reveal__layer img { scale: 1; }
  .reveal__scan, .reveal__scrim { display: none; }
  .reveal__copy { position: relative; opacity: 1; pointer-events: auto; background: var(--ink); padding-block: 40px; }

  .process { height: auto; }
  .process__pin { position: relative; height: auto; overflow: visible; }
  .process__layout { height: auto; padding-block: 80px 60px; }
  .process__stage { height: 56vh; min-height: 320px; }
  .js .step, .js .step.is-active { display: grid; animation: none; }
  .js .step p, .js .step.is-active p { max-height: none; opacity: 1; }
  .process__cta { opacity: 1; transform: none; pointer-events: auto; margin-top: 18px; }
}

/* ---------- 24. RESPALDO SIN JAVASCRIPT: contenido estático y legible ---------- */
.no-js .reveal, .no-js .process { height: auto; }
.no-js .reveal__pin, .no-js .process__pin { position: relative; height: auto; overflow: visible; display: grid; }
.no-js .reveal__intro { position: static; padding-bottom: 28px; }
.no-js .reveal__frame { position: relative; inset: auto; height: 60vh; clip-path: none; }
.no-js .reveal__layer--color { clip-path: none; }
.no-js .reveal__scan, .no-js .reveal__scrim { display: none; }
.no-js .reveal__copy { position: relative; opacity: 1; pointer-events: auto; background: var(--ink); padding-block: 36px; }
.no-js .process__layout { height: auto; padding-block: 90px 50px; }
.no-js .process__stage { display: none; }
.no-js .process__cta { opacity: 1; transform: none; pointer-events: auto; }
.no-js .manifesto__text { color: var(--ink); }
