/* 123 Business v2: todo nace en gris y se pinta al pasar por la pantalla. --p (0 a 1) lo pone assets/js/site.js. */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Outfit";
  src: url("/assets/fonts/outfit-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --black: #0a0a0a;
  --white: #fff;
  --floor: #ededed;
  --gray: #a3a3a3;
  --muted: #5a5a5a;
  --line: #e4e4e4;
  --cyan: #00b4d8;
  --blue: #2f6bff;
  --violet: #9b5cff;
  --magenta: #ff2e88;
  --orange: #ff8a00;
  --yellow: #ffd60a;
  --green: #21c55d;
  --red: #ff3b30;
  --rainbow: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet), var(--magenta), var(--orange), var(--yellow), var(--green), var(--cyan));
  /* Color del visitante: lo fija el selector de la portada o el del formulario. */
  --visitor: var(--magenta);
  --visitor-text: #fff;
  --pad: clamp(20px, 5vw, 48px);
  --section: clamp(88px, 12vw, 160px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font: 400 1.125rem/1.6 "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 5.4vw, 4.5rem); margin-bottom: .5em; }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.15; letter-spacing: -.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong, b { font-weight: 650; }
::selection { background: var(--yellow); color: var(--black); }

.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: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--black); color: #fff; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Lienzo de tinta: fijo detrás de todo. Las secciones claras son transparentes para que se vea. */
#ink { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .footer { position: relative; z-index: 1; }

.wrap { width: min(1180px, 100% - 2 * var(--pad)); margin-inline: auto; }
.narrow { width: min(860px, 100% - 2 * var(--pad)); }
.center { text-align: center; }
.big { font-size: clamp(1.25rem, 2.1vw, 1.65rem); line-height: 1.4; letter-spacing: -.01em; }
.fine { font-size: .9rem; color: var(--muted); }

/* overflow-x: clip evita que algo girado o escalado (el sello antes de estamparse) ensanche la página en celular; no rompe sticky. */
section { position: relative; padding-block: var(--section); }
main > section { overflow-x: clip; }
.s-dark { background: var(--black); color: #f2f2f2; }
.s-floor { background: var(--floor); }

/* ---------- Pintura con el scroll ----------
   Sin JS o con movimiento reducido, --p vale 1 y todo se ve en color. Con JS, cada [data-paint] nace en 0. */
[data-paint] { --p: 1; }
.paint [data-paint] { --p: 0; }

/* Marcador: una palabra del titular se subraya como con resaltador. */
.hl {
  --hl-c: color-mix(in srgb, var(--hl, var(--magenta)) 62%, transparent);
  background: linear-gradient(var(--hl-c), var(--hl-c)) no-repeat 0 88% / calc(var(--p) * 100%) 36%;
  padding-inline: .04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.has-visitor .hl { --hl: var(--visitor) !important; }

/* Trazo: los íconos se dibujan y toman su color. */
.ico { width: 26px; height: 26px; flex: 0 0 auto; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico * { stroke: color-mix(in srgb, var(--c, var(--black)) calc(var(--p, 1) * 100%), var(--gray)); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 1)); }

/* ---------- Botones (el hover de la v1) ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 56px;
  padding: 16px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .3s, background-color .4s, color .4s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55); }
.btn:active { transform: translateY(0); }
.btn--small { min-height: 42px; padding: 9px 18px; font-size: .95rem; white-space: nowrap; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--black); box-shadow: inset 0 0 0 1.5px #cfcfcf; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--black); }
/* Destello arcoíris detrás del botón principal. */
.btn--glow::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background: var(--rainbow);
  background-size: 200% 100%;
  filter: blur(12px);
  opacity: 0;
  transition: opacity .4s;
  animation: shimmer 5s linear infinite;
}
.btn--glow:hover::before, .btn--glow:focus-visible::before { opacity: .85; }
@keyframes shimmer { to { background-position: 200% 0; } }
.has-visitor .btn { background: var(--visitor); color: var(--visitor-text); }
.has-visitor .btn--ghost { background: transparent; color: var(--black); }
.s-dark .btn { background: #fff; color: var(--black); }

/* ---------- Barra superior: el logo es la barra de progreso de la página ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--black);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  transition: background-color .35s, color .35s, border-color .35s;
}
.topbar.on-dark { color: #fff; background: rgba(10, 10, 10, .72); border-color: rgba(255, 255, 255, .08); }
.topbar.on-dark .btn { background: #fff; color: var(--black); }
.topbar__in { display: flex; align-items: center; gap: 24px; height: 68px; width: min(1280px, 100% - 2 * var(--pad)); margin-inline: auto; }
.brand { display: block; margin-right: auto; }
.brand__logo { height: 38px; width: auto; }
.brand__bar, .brand__word { fill: currentColor; transition: fill .35s; }
.brand__fill { fill: url(#brand-ink); }
.has-visitor .brand__fill { fill: var(--visitor); transition: fill .8s; }
.topnav { display: none; gap: 26px; font-size: .98rem; }
.topnav a { text-decoration: none; opacity: .78; transition: opacity .2s; }
.topnav a:hover { opacity: 1; }
@media (min-width: 960px) { .topnav { display: flex; } }
@media (max-width: 480px) { .topbar__in { gap: 12px; } .brand__logo { height: 30px; } .topbar .btn--small { padding: 8px 14px; font-size: .88rem; } }
@media (max-width: 359px) { .brand__logo { height: 26px; } }

/* ---------- 1. Portada ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 108px; padding-bottom: 56px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-weight: 600; font-size: 1rem; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 { position: relative; z-index: 0; font-size: clamp(2.8rem, 6.6vw, 5.8rem); font-weight: 700; line-height: .96; letter-spacing: -.045em; max-width: 12ch; }
.nums { white-space: nowrap; }
.nums .d { position: relative; display: inline-block; }
/* Al primer scroll cae la tinta detrás de cada número. */
.nums .d::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 56%;
  width: 1.05em;
  height: 1.05em;
  border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%;
  background: var(--c);
  opacity: .9;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 1.1s var(--ease);
}
.inked .nums .d::before { transform: translate(-50%, -50%) scale(1); }
.inked .nums .d:nth-child(2)::before { transition-delay: .25s; }
.inked .nums .d:nth-child(3)::before { transition-delay: .5s; }
.lede { max-width: 30ch; margin-top: 26px; font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; line-height: 1.3; letter-spacing: -.015em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 26px 0 0; }
.cta-note { margin: 0; color: var(--muted); font-size: .98rem; }

/* Selector de color de la portada: solo con JS (sin JS, el del formulario basta). */
.pick { display: none; margin-top: 34px; }
.js .pick { display: block; }
.pick__q { margin-bottom: 12px; font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; }
.pick__row { display: flex; flex-wrap: wrap; gap: 10px; }
.pick .swatch { width: 38px; height: 38px; padding: 0; border: 0; }
.pick .swatch[aria-pressed="true"], .pick .swatch.is-on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--black); transform: scale(1.08); }
.pick .swatch--other input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.pick__hint { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }

/* "Tu sistema": un sitio, un chat, el CRM y las ventas. Gris hasta que el visitante elige su color o hace scroll. */
.demo {
  --demo-c: var(--cyan);
  --brand: color-mix(in srgb, var(--demo-c) calc(var(--p) * 100%), #a8a8a8);
  --brand-text: #fff;
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1.04;
  margin-inline: auto;
  font-size: clamp(.72rem, 1.6vw, .86rem);
}
/* Con JS y movimiento, "tu sistema" nace gris aunque site.js todavía no corra (es lo único pintable a la vista al cargar). */
@media (prefers-reduced-motion: no-preference) { .js .demo { --p: 0; } }
.has-visitor .demo { --demo-c: var(--visitor); --brand-text: var(--visitor-text); --p: 1 !important; }
.demo.is-trying { --p: 1 !important; }
.demo * { transition: background-color .7s var(--ease), color .7s var(--ease), border-color .7s var(--ease); }
.demo p { margin: 0; }
.demo__phone { position: absolute; left: 24%; top: 0; width: 50%; height: 96%; padding: 9px; border-radius: 36px; background: var(--black); box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .55); animation: bob 7s ease-in-out infinite; }
.demo__screen { display: flex; flex-direction: column; gap: 7px; height: 100%; padding: 16px 13px; border-radius: 28px; background: #fff; overflow: hidden; }
.demo__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.demo__logo { width: 36px; height: 12px; border-radius: 6px; background: var(--brand); }
.demo__menu { width: 15px; height: 10px; border-block: 2px solid #222; }
.demo__title { font-size: 1.5em; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.demo__line { height: 7px; border-radius: 4px; background: #e8e8e8; }
.demo__line--s { width: 64%; }
.demo__btn { align-self: flex-start; margin: 5px 0 3px; padding: .55em 1em; border-radius: 999px; background: var(--brand); color: var(--brand-text); font-weight: 600; font-size: .9em; }
.demo__photo { position: relative; flex: 1; border-radius: 14px; background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 30%, #fff), color-mix(in srgb, var(--brand) 82%, #000)); overflow: hidden; }
.demo__photo i { position: absolute; left: 14%; right: 14%; bottom: -22%; height: 70%; border-radius: 50% 50% 0 0; background: color-mix(in srgb, var(--brand) 55%, #fff); opacity: .55; }
.demo__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.demo__tiles i { height: 30px; border-radius: 8px; background: #f0f0f0; }
.demo__tiles i:first-child { background: color-mix(in srgb, var(--brand) 25%, #fff); }
.demo__card { position: absolute; padding: 12px 13px; border-radius: 18px; background: #fff; box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .38), 0 0 0 1px rgba(0, 0, 0, .05); }
.demo__chat { left: 0; top: 44%; width: 47%; animation: bob 8s ease-in-out -2s infinite; }
.demo__in, .demo__out { padding: .6em .8em; border-radius: 12px; line-height: 1.3; }
.demo__in { margin-right: 12%; background: #f1f1f1; border-top-left-radius: 4px; }
.demo__out { margin: 6px 0 0 12%; background: color-mix(in srgb, var(--brand) 20%, #fff); border-top-right-radius: 4px; }
.demo time { display: block; margin-top: 2px; font-size: .78em; color: #7a7a7a; text-align: right; }
.demo__crm { right: 0; top: 9%; width: 40%; animation: bob 9s ease-in-out -4s infinite; }
.demo__label { margin-bottom: 4px !important; font-size: .8em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #777; }
.demo__name { font-size: 1.15em; font-weight: 700; }
.demo__from { margin-bottom: 8px !important; color: #666; }
.demo__pill { display: inline-block; padding: .35em .8em; border-radius: 999px; background: var(--brand); color: var(--brand-text); font-weight: 600; font-size: .85em; }
.demo__chart { right: 3%; bottom: 3%; width: 38%; animation: bob 7.5s ease-in-out -1s infinite; }
.demo__bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; }
.demo__bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--brand) 45%, #fff); }
.demo__bars i:last-child { background: var(--brand); }
@keyframes bob { 50% { translate: 0 -10px; } }
@media (max-width: 999px) { .demo { width: min(100%, 440px); } }

/* ---------- 2. El problema: el chat de las 11 de la noche ---------- */
.problem { --sys: var(--green); --sys-text: #04210f; }
.has-visitor .problem { --sys: var(--visitor); --sys-text: var(--visitor-text); }
.problem__grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .problem__grid { grid-template-columns: .85fr 1.15fr; gap: 72px; } }
.problem h2 { color: #fff; }
.problem .big { color: #c9c9c9; max-width: 30ch; }
.clock__phones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phone { margin: 0; min-height: 390px; padding: 14px 11px 16px; border: 1px solid #262626; border-radius: 28px; background: #141414; }
.phone figcaption { margin: 2px 6px 12px; font-size: .95rem; font-weight: 650; color: #8d8d8d; }
.phone--sistema { border-color: color-mix(in srgb, var(--sys) 45%, #262626); }
.phone--sistema figcaption { color: #fff; }
.chat { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; font-size: clamp(.8rem, 1.4vw, .92rem); line-height: 1.3; }
.chat li { max-width: 92%; padding: 8px 10px; border-radius: 14px; transition: opacity .35s, transform .35s; }
.chat time { display: block; margin-top: 3px; font-size: .78em; opacity: .7; text-align: right; }
.chat__in { align-self: flex-start; background: #2a2a2a; color: #e8e8e8; border-top-left-radius: 4px; }
.chat__out { align-self: flex-end; background: #3b3b3b; color: #fff; border-top-right-radius: 4px; }
.phone--sistema .chat__out { background: var(--sys); color: var(--sys-text); }
.chat__gap { align-self: center !important; padding: 2px 10px !important; color: #7a7a7a; font-size: .85em; }
.chat__event { align-self: center !important; background: color-mix(in srgb, var(--sys) 18%, transparent); color: #fff; font-weight: 600; font-size: .85em; text-align: center; }
.chat li.is-later { opacity: 0; transform: translateY(8px); }
.clock__ctl { display: none; }
.js .clock__ctl { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 18px; margin-top: 20px; }
.clock__time { grid-row: span 2; min-width: 3.1em; font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #fff; }
.clock__hint { font-size: .9rem; color: #9a9a9a; }
.clock input[type="range"] { width: 100%; height: 28px; margin: 0; accent-color: var(--sys); cursor: grab; }

/* ---------- 3. El sistema: las piezas se conectan ---------- */
.system { --t: 1; padding-block: var(--section); }
.system__head { display: grid; justify-items: center; text-align: center; margin-bottom: clamp(28px, 5vw, 56px); }
.system__head > * { grid-area: 1 / 1; }
.system__before { margin: 0; font-size: clamp(1.7rem, 4vw, 3.2rem); font-weight: 650; line-height: 1.08; letter-spacing: -.03em; color: #9b9b9b; text-wrap: balance; opacity: calc(1 - var(--t) * 2.2); }
.system__after { margin: 0; opacity: calc(var(--t) * 2.2 - 1); }
.system__foot { margin: clamp(28px, 4vw, 48px) auto 0; text-align: center; font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 600; color: var(--muted); opacity: calc(var(--t) * 3 - 2); }
.system__stage { position: relative; width: min(1180px, 100% - 2 * var(--pad)); margin-inline: auto; }
.nodes { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px; margin: 0; padding: 0; }
.node { --k: 1; position: relative; display: flex; align-items: center; gap: 12px; width: max-content; max-width: 250px; padding: 12px 18px 12px 12px; border: 1.5px solid color-mix(in srgb, var(--c) calc(var(--k) * 100%), #d4d4d4); border-radius: 18px; background: #fff; box-shadow: 0 0 0 calc(var(--k) * 5px) color-mix(in srgb, var(--c) 18%, transparent), 0 20px 40px -28px rgba(0, 0, 0, .35); }
.node__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: color-mix(in srgb, var(--c) calc(var(--k) * 14%), #f3f3f3); }
/* El ícono de cada pieza siempre se ve; solo cambia de gris a su color cuando el cable la conecta. */
.node__ico .ico { width: 26px; height: 26px; }
.node__ico .ico * { stroke: color-mix(in srgb, var(--c) calc(var(--k) * 100%), #9a9a9a); stroke-dashoffset: 0; }
.node__text { display: grid; line-height: 1.2; }
.node__text b { font-size: 1.05rem; }
.node__text span { font-size: .92rem; color: color-mix(in srgb, var(--black) calc(50% + var(--k) * 50%), #fff); }
.wires { display: none; }
/* Con movimiento: la sección se fija y las piezas viajan (site.js pone --x, --y, --r, --k y --t). */
.motion .system { height: 300vh; padding: 0; }
.motion .system__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 68px; overflow: hidden; }
.motion .system__stage { height: min(54vh, 470px); }
.motion .nodes { position: absolute; inset: 0; display: block; }
.motion .node { position: absolute; left: 0; top: 0; transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)); will-change: transform; }
.motion .wires { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wires path { fill: none; stroke: var(--black); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--w, 0)); }
.has-visitor .wires path { stroke: var(--visitor); }
.wires circle { fill: var(--magenta); stroke: #fff; stroke-width: 3; opacity: calc(var(--lead-o, 0) * var(--lead-f, 1)); filter: drop-shadow(0 0 6px rgba(0, 0, 0, .25)); }
.has-visitor .wires circle { fill: var(--visitor); }
@media (max-width: 759px) {
  .nodes { flex-direction: column; align-items: center; }
  .motion .system__stage { height: min(62vh, 520px); }
  .node { padding: 9px 14px 9px 9px; max-width: 280px; }
  .node__ico { width: 40px; height: 40px; }
}

/* ---------- 4. Resultados ---------- */
.proof { overflow-x: clip; }
.cases { list-style: none; display: grid; gap: 18px; margin: 0; padding: 0; }
@media (min-width: 860px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
.case { position: relative; padding: 0 26px 26px; border-radius: var(--radius); background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 24px 48px -32px rgba(0, 0, 0, .35); overflow: hidden; }
.case__visual { display: grid; place-items: center; height: 180px; margin: 0 -26px 22px; background: #f5f5f5; overflow: hidden; }
.case__visual img { width: 100%; height: 100%; object-fit: cover; object-position: top left; filter: grayscale(calc(1 - var(--p))); }
.case__figure { margin: 0 0 2px; font-size: clamp(3.2rem, 6.4vw, 5.6rem); font-weight: 700; line-height: 1; letter-spacing: -.05em; white-space: nowrap; }
.fillnum { position: relative; display: inline-block; color: #d6d6d6; font-variant-numeric: tabular-nums; }
.fillnum::after { content: attr(data-text); position: absolute; left: 0; top: 0; color: var(--c); clip-path: inset(calc((1 - var(--p)) * 100%) 0 0 0); }
.case__unit { margin-bottom: 16px; font-size: 1.15rem; font-weight: 600; }
.case__brand { font-size: 1.15rem; }
.case__place { margin-bottom: 8px; font-size: .95rem; color: var(--muted); }
.case__detail { margin: 0; font-size: 1rem; color: #3d3d3d; }
/* Agenda que se llena (Andrews y SmileRight). */
.agenda { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; width: min(78%, 300px); }
.agenda i { aspect-ratio: 1.6; border-radius: 5px; background: color-mix(in srgb, var(--c) calc(clamp(0, var(--p) * 13 - var(--k), 1) * 100%), #e2e2e2); }
/* El plano que se vuelve casa (Ciudad Maderas): primero el trazo, después el color. */
.plano { width: min(80%, 300px); height: auto; overflow: visible; }
.plano path { fill: transparent; stroke: #8d8d8d; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - min(1, var(--p) * 1.7)); }
.plano path:not(.plano__ground) { --f: clamp(0, var(--p) * 3 - 1.9, 1); stroke: color-mix(in srgb, #3a3a3a calc(var(--f) * 100%), #8d8d8d); }
.plano__body { fill: color-mix(in srgb, color-mix(in srgb, var(--c) 30%, #fff) calc(var(--f) * 100%), transparent) !important; }
.plano__roof { fill: color-mix(in srgb, #b4532a calc(var(--f) * 100%), transparent) !important; }
.plano__door { fill: color-mix(in srgb, #7a4a2a calc(var(--f) * 100%), transparent) !important; }
.plano__win { fill: color-mix(in srgb, var(--yellow) calc(var(--f) * 100%), transparent) !important; }
.plano__tree { fill: color-mix(in srgb, var(--green) calc(var(--f) * 100%), transparent) !important; }

/* Galería en isométrico: en escritorio avanza de lado con el scroll; en celular se desliza con el dedo. */
.gallery { position: relative; margin-top: clamp(72px, 10vw, 128px); }
.gallery__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.gallery__head h3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.gallery__head p { margin: 0; color: var(--muted); }
.gallery__hint::after { content: " →"; }
.gallery__track { position: relative; list-style: none; display: flex; align-items: center; margin: 0; padding: 36px var(--pad) 72px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.slab { --p: 1; position: relative; flex: 0 0 auto; width: var(--box); height: var(--vh); scroll-snap-align: center; }
.slab--wide { --sw: clamp(230px, 27vw, 400px); --ar: 16 / 10; --box: calc(var(--sw) * 1.08); --vh: calc(var(--sw) * .74); }
.slab--tall { --sw: clamp(140px, 14vw, 210px); --ar: 3 / 4; --box: calc(var(--sw) * 1.5); --vh: calc(var(--sw) * 1.24); }
.slab figure { position: absolute; inset: 0; margin: 0; }
.slab__float { position: absolute; inset: 0; display: grid; place-items: center; animation: float 7s ease-in-out infinite; animation-delay: calc(var(--i) * -.9s); }
.slab__float::before { content: ""; position: absolute; left: 18%; right: 18%; top: 52%; height: 34%; border-radius: 50%; background: rgba(0, 0, 0, .22); filter: blur(22px); }
.slab__3d { position: relative; width: var(--sw); aspect-ratio: var(--ar); transform: rotateX(52deg) rotateZ(-38deg); transform-style: preserve-3d; }
.slab__3d img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 4px; filter: grayscale(calc(1 - var(--p))) contrast(calc(1.08 - var(--p) * .08)); }
/* Grosor de la "hoja": caras inferior y derecha. */
.slab__3d::before, .slab__3d::after { content: ""; position: absolute; }
.slab__3d::before { left: 0; right: 0; bottom: 0; height: 12px; transform-origin: bottom; transform: rotateX(90deg); background: #1b1b1b; }
.slab__3d::after { top: 0; bottom: 0; right: 0; width: 12px; transform-origin: right; transform: rotateY(-90deg); background: #333; }
.slab figcaption { position: absolute; left: 0; right: 0; top: calc(100% + 10px); display: flex; flex-direction: column; align-items: center; font-size: .92rem; line-height: 1.25; text-align: center; }
.slab figcaption b { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; }
.slab figcaption b::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--c) calc(var(--p) * 100%), #b9b9b9); }
.slab figcaption span { color: var(--muted); font-size: .88rem; }
@keyframes float { 50% { translate: 0 -12px; } }
.motion .gallery--pinned { height: var(--gh, auto); }
.motion .gallery--pinned .gallery__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 68px; overflow: hidden; }
.motion .gallery--pinned .gallery__track { overflow: visible; scroll-snap-type: none; transform: translateX(var(--gx, 0)); will-change: transform; }
.motion .gallery--pinned .gallery__hint { display: none; }

.proof__foot { display: grid; gap: 36px; align-items: center; margin-top: clamp(24px, 4vw, 48px); }
@media (min-width: 900px) { .proof__foot { grid-template-columns: auto 1fr; gap: 72px; } }
.speed { --c: var(--green); display: grid; grid-template-columns: 150px 1fr; column-gap: 20px; align-items: center; max-width: 520px; }
.speed__gauge { grid-row: span 2; width: 150px; height: auto; overflow: visible; }
.speed__gauge path { fill: none; stroke-width: 14; stroke-linecap: round; }
.speed__track { stroke: #dcdcdc; }
.speed__fill { stroke: color-mix(in srgb, var(--c) calc(var(--p) * 100%), #9f9f9f); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p) * .97); }
.speed__n { margin: 0; }
.speed__n b { display: block; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.04em; }
.speed__n span { font-weight: 600; }
.speed .fine { margin: 6px 0 0; }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 0; color: var(--muted); }
.also span { font-size: 1.3rem; font-weight: 650; letter-spacing: -.02em; color: var(--black); }

/* ---------- 5. Quién está detrás ---------- */
.who__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .who__grid { grid-template-columns: 260px 1fr; gap: 56px; } }
.who__people { display: flex; align-items: center; gap: 16px; margin: 0; }
@media (min-width: 900px) { .who__people { flex-direction: column; align-items: flex-start; } }
.who__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; filter: grayscale(calc(1 - var(--p))); }
.who__people figcaption { font-size: 1rem; line-height: 1.4; color: var(--muted); }
.who__people figcaption b { color: var(--black); }
.who h2 { max-width: 18ch; font-size: clamp(2rem, 4.6vw, 3.8rem); margin-bottom: .35em; }
.who .big { margin: 0; color: var(--muted); }
.logos__t { margin: clamp(48px, 7vw, 80px) 0 16px; font-size: .95rem; font-weight: 600; color: var(--muted); }
.logos { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; }
@media (min-width: 760px) { .logos { grid-template-columns: repeat(6, 1fr); gap: 14px; } }
.logos li { overflow: hidden; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.logos img { width: 100%; height: auto; filter: grayscale(calc(1 - var(--p))); opacity: calc(.5 + var(--p) * .5); }

/* ---------- 6. Qué incluye: las barras del logo, los bonos y la comparación ---------- */
.offer h2 .nums span { color: color-mix(in srgb, var(--c) calc(var(--p, 1) * 100%), var(--gray)); }
.phases { display: grid; gap: 18px; margin-top: clamp(16px, 3vw, 32px); }
@media (min-width: 980px) { .phases { grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; } }
.phase { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .94); box-shadow: 0 24px 48px -36px rgba(0, 0, 0, .4); }
/* Cada fase lleva su barra del logo: crece del 1 al 3 y se llena de abajo hacia arriba. */
.phase__bar { position: relative; align-self: start; height: calc(84px + var(--n) * 52px); border-radius: 16px; background: #ececec; overflow: hidden; }
.phase__bar::before { content: ""; position: absolute; inset: 0; background: var(--c); transform: scaleY(var(--p)); transform-origin: bottom; }
.phase__bar span { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: #fff; }
.phase h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.phase__note { margin: 4px 0 14px; color: var(--muted); }
.phase ul { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.phase li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.02rem; line-height: 1.3; }
.phase li .ico { width: 24px; height: 24px; margin-top: -1px; }
@media (min-width: 980px) {
  .phase { grid-template-columns: 1fr; padding: 24px 24px 26px; }
  .phase__bar { width: 64px; }
}

.bonus__t { margin: clamp(56px, 8vw, 96px) 0 20px; font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.bonus-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0; padding: 0; }
/* La tarjeta se voltea con --p; el li no gira, así su posición en la página no cambia mientras se pinta. */
.bonus { --c: var(--magenta); position: relative; min-height: 236px; perspective: 1100px; }
.bonus__card { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(calc((1 - var(--p)) * 180deg)); }
.bonus__face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 20px; border-radius: var(--radius); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.bonus__front { border: 2px dashed var(--black); background: rgba(255, 255, 255, .95); }
.bonus__front h4 { font-size: 1.2rem; line-height: 1.2; letter-spacing: -.01em; }
.bonus__front .ico { width: 30px; height: 30px; }
.bonus .tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--black); color: #fff; font-size: .82rem; font-weight: 600; }
.bonus__v { margin: auto 0 0; font-weight: 600; color: var(--muted); }
.bonus__back { justify-content: center; align-items: center; transform: rotateY(180deg); background: #111; color: #fff; font-weight: 650; }
.bonus__back .ico { --c: #fff; width: 44px; height: 44px; }
.bonus--hot .bonus__front { border-style: solid; background: var(--black); color: #fff; }
.bonus--hot .bonus__front .ico { --c: var(--magenta); }
.bonus--hot .tag { background: var(--magenta); }
.has-visitor .bonus--hot .tag { background: var(--visitor); color: var(--visitor-text); }
.bonus--hot .bonus__v { color: #cfcfcf; }
@media (max-width: 559px) {
  .bonus-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bonus { min-height: 214px; }
  .bonus--hot { grid-column: 1 / -1; min-height: 180px; }
  .bonus__face { padding: 16px 14px; gap: 8px; }
  .bonus__front h4 { font-size: 1.05rem; }
}

.compare { margin-top: clamp(64px, 9vw, 112px); }
.compare__t { margin-bottom: 20px; font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.compare__list { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; }
@media (min-width: 860px) { .compare__list { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.compare__list li { display: grid; align-content: start; gap: 4px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .94); }
.compare__list span { color: var(--muted); }
.compare__list b { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -.02em; }
.compare__list small { font-size: 1rem; color: var(--muted); }
.compare__list .compare__us { border: 2px solid var(--black); background: var(--black); color: #fff; }
.compare__us span, .compare__us small { color: #cfcfcf !important; }
.has-visitor .compare__us { border-color: var(--visitor); box-shadow: 0 0 0 6px color-mix(in srgb, var(--visitor) 22%, transparent); }

/* ---------- 7. Garantía y cupo ---------- */
.guarantee__grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .guarantee__grid { grid-template-columns: 300px 1fr; gap: 80px; } .seal { position: sticky; top: 120px; } }
.seal { width: min(280px, 70vw); margin-inline: auto; }
.seal svg { width: 100%; height: auto; overflow: visible; }
.seal__edge { fill: none; stroke: var(--magenta); stroke-width: 3; stroke-dasharray: 2 5; }
.seal__in { fill: var(--magenta); }
.seal__ring { fill: var(--magenta); font-size: 13.5px; font-weight: 700; letter-spacing: .12em; }
.seal__big { fill: #fff; font-size: 36px; font-weight: 700; letter-spacing: -.03em; }
.seal__small { fill: #fff; font-size: 11.5px; font-weight: 500; }
.has-visitor .seal__edge { stroke: var(--visitor); }
.has-visitor .seal__in, .has-visitor .seal__ring { fill: var(--visitor); }
.has-visitor .seal__big, .has-visitor .seal__small { fill: var(--visitor-text); }
.motion .seal { opacity: 0; transform: scale(1.5) rotate(-24deg); transition: opacity .4s, transform .65s cubic-bezier(.3, 1.6, .5, 1); }
.motion .seal.is-in { opacity: 1; transform: rotate(-8deg); }
.guarantee h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); }
.guarantee .big { max-width: 34ch; }
.measures { list-style: none; display: grid; gap: 12px; margin: 26px 0 14px; padding: 0; }
.measures li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .92); font-size: 1.1rem; line-height: 1.3; }
.measures .ico { width: 30px; height: 30px; }
.terms { margin: 22px 0; border-block: 1px solid var(--line); }
.terms summary { padding: 16px 0; font-weight: 600; cursor: pointer; }
.terms ul { margin: 0 0 18px; padding-left: 1.2em; color: #333; font-size: 1rem; }
.terms li { margin-bottom: 10px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.chips li { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px var(--line); font-size: 1rem; }
.chips .ico { width: 22px; height: 22px; }
.slots { display: grid; gap: 16px; margin-top: clamp(56px, 8vw, 96px); }
@media (min-width: 860px) { .slots { grid-template-columns: 1fr 1fr; gap: 20px; } }
.slot { display: grid; gap: 6px; align-content: start; margin: 0; padding: 26px; border-radius: var(--radius); background: var(--black); color: #bdbdbd; }
.slot__k { font-size: .95rem; font-weight: 600; letter-spacing: .02em; }
.slot time { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 650; line-height: 1.1; letter-spacing: -.02em; }
.slot__v { font-size: 1rem; }
.slot--founders { border: 2px solid var(--black); background: rgba(255, 255, 255, .94); color: var(--black); }
.slot--founders .slot__k { color: var(--muted); }
.seats { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 16px; height: 16px; border: 2px solid var(--black); border-radius: 50%; }
.dots i.taken { background: var(--black); }

/* ---------- 8. Diagnóstico: el formulario en 1, 2, 3 ---------- */
.cta h2, .cta .narrow > .big { text-align: center; }
.cta .narrow > .big { max-width: 36ch; margin-inline: auto; }
.form { position: relative; display: grid; gap: 18px; margin-top: 36px; padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: 0 40px 80px -48px rgba(0, 0, 0, .45); }
.form__bars { display: none; }
.form.is-stepped .form__bars { list-style: none; display: flex; align-items: flex-end; gap: 6px; height: 32px; margin: 0; padding: 0; }
.form__bars li { position: relative; width: 16px; border-radius: 5px; background: #e6e6e6; overflow: hidden; }
.form__bars li:nth-child(1) { height: 42%; }
.form__bars li:nth-child(2) { height: 70%; }
.form__bars li:nth-child(3) { height: 100%; }
.form__bars li::before { content: ""; position: absolute; inset: 0; background: var(--c); transform: scaleY(var(--f, 0)); transform-origin: bottom; transition: transform .6s var(--ease); }
.has-visitor .form__bars li::before { background: var(--visitor); }
.fstep { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.form.is-stepped .fstep:not(.is-current) { display: none; }
.form.is-stepped .fstep.is-current { animation: step-in .45s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } }
.fstep__t { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; padding: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 650; letter-spacing: -.02em; }
.fstep__t:focus { outline: none; }
.fstep__t span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--black); color: #fff; font-size: 1.1rem; }
.has-visitor .fstep__t span { background: var(--visitor); color: var(--visitor-text); }
.fstep__nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 6px; }
.fstep__nav:has(> :nth-child(2)) { justify-content: space-between; }
.form:not(.is-stepped) .fstep__nav [type="button"] { display: none; }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: 1rem; }
.form .opt-l { font-weight: 400; color: var(--muted); }
.form .lbl { display: block; }
.form input:not([type="radio"], [type="checkbox"], [type="color"]), .form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid #cfcfcf;
  border-radius: 14px;
  background: #fff;
  color: var(--black);
  font: inherit;
  font-weight: 400;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 4px color-mix(in srgb, var(--visitor) 25%, transparent); }
.grid2 { display: grid; gap: 18px; }
@media (min-width: 680px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.swatches { min-width: 0; margin: 0; padding: 0; border: 0; }
.swatches legend { margin-bottom: 12px; padding: 0; font-size: 1.1rem; font-weight: 600; }
.swatches__row { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { position: relative; display: block !important; width: 46px; height: 46px; border-radius: 50%; background: var(--s); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: transform .2s var(--ease), box-shadow .2s; }
.swatch:hover { transform: scale(1.1); }
.swatch input[type="radio"] { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.swatch:has(input:checked) { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--black); transform: scale(1.08); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 4px; }
.swatch--other { background: conic-gradient(var(--red), var(--yellow), var(--green), var(--cyan), var(--blue), var(--violet), var(--magenta), var(--red)); }
.swatch--other input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; pointer-events: none; }
.swatches__hint { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }
/* Opciones que se tocan en lugar de listas desplegables. */
.opts { min-width: 0; margin: 0; padding: 0; border: 0; }
.opts legend { margin-bottom: 10px; padding: 0; font-size: 1rem; font-weight: 600; }
.opts__row { display: flex; flex-wrap: wrap; gap: 8px; }
.form .opt { position: relative; display: inline-flex; font-weight: 500; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span { padding: 10px 15px; border: 1.5px solid #cfcfcf; border-radius: 999px; font-size: .97rem; line-height: 1.25; transition: background-color .2s, border-color .2s, color .2s; }
.opt:hover span { border-color: var(--black); }
.opt input:checked + span { border-color: var(--black); background: var(--black); color: #fff; }
.has-visitor .opt input:checked + span { border-color: var(--visitor); background: var(--visitor); color: var(--visitor-text); }
.opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.consent { display: flex !important; align-items: flex-start; gap: 12px !important; font-weight: 400 !important; font-size: .95rem !important; line-height: 1.45; }
.consent input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--black); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .fine { margin: 0; }
.form button[disabled] { opacity: .6; cursor: progress; }

.faq__t { margin: clamp(64px, 9vw, 112px) 0 12px; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 44px 20px 0; cursor: pointer; list-style: none; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { max-width: 64ch; margin: 0 0 22px; color: #333; }
.closing { margin-top: clamp(64px, 9vw, 112px); text-align: center; }
.closing__t { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 650; line-height: 1.2; letter-spacing: -.025em; }

/* ---------- Pie ---------- */
.footer { padding: 72px 0 40px; background: var(--black); color: #cfcfcf; }
.footer__grid { display: grid; gap: 40px; }
.footer__logo { display: inline-block; color: #fff; }
.footer__logo .logo-h { height: 44px; width: auto; }
.footer p { max-width: 44ch; margin-top: 18px; }
.footer nav { display: grid; gap: 10px; align-content: start; }
.footer nav a { text-decoration: none; color: #e8e8e8; }
.footer nav a:hover { text-decoration: underline; }
.footer .footer__legal { max-width: none; margin-top: 48px; padding-top: 24px; border-top: 1px solid #262626; font-size: .9rem; color: #8a8a8a; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1fr auto; } }

/* ---------- Páginas simples: gracias, aviso de privacidad y 404 ---------- */
.page { padding-top: calc(68px + clamp(56px, 8vw, 104px)); min-height: 80svh; }
.page h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 700; letter-spacing: -.04em; margin-bottom: .4em; }
.page h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 1.6em 0 .5em; }
.page .lede { max-width: none; margin: 0 0 1.2em; }
.legal { font-size: 1.05rem; }
.legal li { margin-bottom: .5em; }
.steps-list { padding-left: 1.2em; font-size: 1.15rem; }
.steps-list li { margin-bottom: 10px; }

/* Movimiento reducido: sin animaciones ni secciones fijas; todo se ve en color (site.js no pinta). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
