/* ==========================================================================
   Hansen Agency — estilos
   Sistema: tipografía del sistema, un solo acento, sombras suaves,
   solo transform / opacity (y filter con moderación) en movimiento.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-elev: #ffffff;
  --bg-sunken: #f6f7fb;
  --text: #1d1d1f;
  --text-2: #424245;
  --text-3: #636366;
  --hair: rgba(0, 0, 0, 0.08);
  --hair-strong: rgba(0, 0, 0, 0.14);

  --accent: #2a4fe0;          /* texto / links (6.4:1 sobre blanco) */
  --accent-fill: #2a4fe0;     /* botones con texto blanco */
  --accent-soft: rgba(42, 79, 224, 0.1);
  --accent-glow: 42, 79, 224;

  --wa: #14803f;              /* verde WhatsApp accesible (5:1 con blanco) */

  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-edge: rgba(255, 255, 255, 0.7);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.05), 0 30px 80px rgba(0, 0, 0, 0.12);

  --mesh-a: 42, 79, 224;
  --mesh-b: 56, 189, 248;
  --mesh-c: 96, 165, 250;
  --mesh-d: 125, 211, 252;
  --mesh-opacity: 0.7;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  /* Resortes como curvas CSS (generados con el modelo damping/response de Apple) */
  --spring-smooth: linear(0, 0.0528, 0.1674, 0.3008, 0.4308, 0.5468, 0.6452, 0.7259, 0.7905, 0.8412, 0.8806, 0.9107, 0.9336, 0.9509, 0.9638, 0.9734, 0.9805, 0.9858, 0.9896, 0.9925, 0.9945, 0.996, 0.9971, 0.9979, 0.9985, 0.9989, 0.9992, 0.9995, 0.9996, 0.9997, 1);
  --spring-bouncy: linear(0, 0.034, 0.1184, 0.2311, 0.3555, 0.4799, 0.5962, 0.6998, 0.7883, 0.8609, 0.9184, 0.962, 0.9937, 1.0152, 1.0287, 1.0358, 1.0383, 1.0376, 1.0347, 1.0305, 1.0258, 1.021, 1.0164, 1.0123, 1.0088, 1.0059, 1.0036, 1.0018, 1.0005, 0.9996, 0.999, 0.9987, 0.9985, 0.9985, 0.9986, 0.9988, 0.999, 0.9992, 0.9993, 0.9995, 1);

  --gutter: clamp(1rem, 5vw, 2.5rem);
  --maxw: 1120px;
  --radius: 22px;
  --radius-lg: 32px;
  --nav-h: 3.5rem;
}

@supports not (transition-timing-function: linear(0, 1)) {
  :root {
    --spring-smooth: cubic-bezier(0.23, 1, 0.32, 1);
    --spring-bouncy: cubic-bezier(0.34, 1.36, 0.64, 1);
  }
}

@media not all /* modo oscuro desactivado: la web va siempre en blanco */ {
  :root {
    --bg: #000000;
    --bg-elev: #161617;
    --bg-sunken: #0b0b0c;
    --text: #f5f5f7;
    --text-2: #c7c7cc;
    --text-3: #98989d;
    --hair: rgba(255, 255, 255, 0.1);
    --hair-strong: rgba(255, 255, 255, 0.18);

    --accent: #8aa2ff;
    --accent-fill: #3558f0;
    --accent-soft: rgba(110, 139, 255, 0.14);
    --accent-glow: 80, 110, 255;

    --glass: rgba(28, 28, 30, 0.6);
    --glass-strong: rgba(28, 28, 30, 0.8);
    --glass-edge: rgba(255, 255, 255, 0.12);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.5), 0 30px 80px rgba(0, 0, 0, 0.6);

    --mesh-opacity: 0.5;
    --mesh-d: 14, 116, 144;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--font);
  letter-spacing: -0.011em;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; font-size: 16px; }

a, button, [role="button"] { touch-action: manipulation; }
button, .btn, .chip, .step-btn { user-select: none; -webkit-user-select: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 100;
  padding: 0.75rem 1rem; border-radius: 12px;
  background: var(--text); color: var(--bg); font-weight: 600;
  transform: translateY(-200%);
  transition: transform 200ms var(--ease-out);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Marcador pendiente: [ASÍ] */
.placeholder {
  background: rgba(250, 204, 21, 0.28);
  box-shadow: 0 0 0 1px rgba(202, 138, 4, 0.5) inset;
  border-radius: 6px;
  padding: 0 0.25em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
  margin-bottom: 1rem;
}

.display {
  font-size: clamp(2.6rem, 8.4vw, 6.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(2.1rem, 5.6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.022em;
  font-weight: 650;
}

.lead {
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.017em;
  color: var(--text-2);
  text-wrap: pretty;
}

.muted { color: var(--text-3); }
.small { font-size: 0.875rem; letter-spacing: -0.003em; line-height: 1.45; }
.tight { letter-spacing: -0.02em; }
.grad-text {
  background: linear-gradient(100deg, var(--accent) 10%, #1e90ff 55%, #22a6e8 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@media not all /* modo oscuro desactivado: la web va siempre en blanco */ {
  .grad-text { background-image: linear-gradient(100deg, #9fb2ff 10%, #7dd3fc 55%, #7dd3fc 100%); }
}

/* ---------- Botones ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.magnetic { display: inline-flex; will-change: transform; }

.btn {
  --h: 3.5rem;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: var(--h);
  padding: 0 1.6rem;
  border-radius: 999px;
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.96); transition-duration: 100ms; }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }

.btn-primary {
  background: var(--accent-fill);
  color: #fff;
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 8px 24px rgba(var(--accent-glow), 0.32);
}
.btn-secondary {
  background: var(--glass-strong);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hair-strong), var(--shadow-sm);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
}
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(20, 128, 63, 0.3); }
.btn-lg { --h: 3.75rem; font-size: 1.125rem; padding: 0 2rem; }
.btn-sm { --h: 2.25rem; font-size: 0.875rem; padding: 0 1rem; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: color-mix(in srgb, var(--accent-fill) 88%, #000); }
  .btn-secondary:hover { background: var(--bg-elev); }
  .btn-wa:hover { background: #0f6e35; }
  .link-u:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* ---------- Navbar translúcida ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
}
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--hair);
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}
.nav.is-compact::before { opacity: 1; }
.nav-inner {
  position: relative;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transform: translateY(0.5rem);
  transition: transform 400ms var(--ease-out);
}
.nav.is-compact .nav-inner { transform: none; }
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 700; letter-spacing: -0.025em; font-size: 1.125rem;
  transform-origin: left center;
  transition: transform 400ms var(--ease-out);
}
.nav.is-compact .brand { transform: scale(0.94); }
.brand-logo { display: block; height: 1.75rem; width: auto; }
.brand-mark {
  width: 1.75rem; height: 1.75rem; border-radius: 0.55rem;
  background: linear-gradient(140deg, #4f6dff, #2a4fe0 55%, #1a2fa8);
  display: grid; place-items: center; color: #fff; font-size: 0.95rem; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 8px rgba(42,79,224,.35);
}
.nav-links { display: none; gap: 1.75rem; font-size: 0.9rem; color: var(--text-2); }
.nav-links a { padding: 0.5rem 0; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--text); } }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* ---------- Secciones ---------- */
section { position: relative; }
.section { padding-block: clamp(5.5rem, 13vw, 10rem); }
.section-head { max-width: 50rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 1.25rem; }
.alt { background: var(--bg-sunken); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: center;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 2rem);
  padding-bottom: 4rem;
  overflow: clip;
  isolation: isolate;
  text-align: center;
}
.mesh { position: absolute; inset: -10%; z-index: -2; pointer-events: none; opacity: var(--mesh-opacity); }
.blob {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  will-change: transform;
}
.blob-a { left: -25vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(var(--mesh-a), .9), rgba(var(--mesh-a), 0)); animation: driftA 26s ease-in-out infinite alternate; }
.blob-b { right: -30vmax; top: -15vmax; background: radial-gradient(closest-side, rgba(var(--mesh-b), .75), rgba(var(--mesh-b), 0)); animation: driftB 31s ease-in-out infinite alternate; }
.blob-c { left: 5vmax; bottom: -45vmax; background: radial-gradient(closest-side, rgba(var(--mesh-c), .6), rgba(var(--mesh-c), 0)); animation: driftC 23s ease-in-out infinite alternate; }
.blob-d { right: -15vmax; bottom: -40vmax; width: 55vmax; height: 55vmax; background: radial-gradient(closest-side, rgba(var(--mesh-d), .5), rgba(var(--mesh-d), 0)); animation: driftD 29s ease-in-out infinite alternate; }
@keyframes driftA { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.15); } }
@keyframes driftB { to { transform: translate3d(-16vmax, 12vmax, 0) scale(0.9); } }
@keyframes driftC { to { transform: translate3d(12vmax, -14vmax, 0) scale(1.1); } }
@keyframes driftD { to { transform: translate3d(-10vmax, -8vmax, 0) scale(1.2); } }

.hero-fade {
  position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(127,127,127,.18) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%);
}
.hero-light {
  position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none;
  width: 44rem; height: 44rem; margin: -22rem 0 0 -22rem; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.55), rgba(255,255,255,0));
  opacity: 0; transition: opacity 600ms ease;
  will-change: transform;
}
@media not all /* modo oscuro desactivado: la web va siempre en blanco */ {
  .hero-light { background: radial-gradient(closest-side, rgba(120,140,255,.22), rgba(120,140,255,0)); }
}
.hero.has-light .hero-light { opacity: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.9rem 0.45rem 0.55rem; margin-bottom: 1.75rem;
  border-radius: 999px; font-size: 0.875rem; font-weight: 500; color: var(--text-2);
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge), var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
}
.hero-badge .dot {
  position: relative;
  width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #22c55e;
}
.hero-badge .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e;
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(3.2); opacity: 0; } }

.hero h1 { max-width: 15ch; margin-inline: auto; }
.hero .lead { max-width: 38rem; margin: 1.6rem auto 2.4rem; }

/* Titular palabra por palabra: blur → nítido */
.w {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(0.35em) scale(0.98);
  animation: wordIn 900ms var(--ease-out) forwards;
  animation-delay: calc(80ms + var(--i) * 70ms);
}
@keyframes wordIn { to { opacity: 1; filter: blur(0); transform: none; } }

.fade-up {
  opacity: 0; transform: translateY(14px);
  animation: fadeUp 800ms var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-chips {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
}
.chip {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1rem; border-radius: 16px;
  font-size: 0.9rem; font-weight: 500; color: var(--text);
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge), var(--shadow-md);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
}
.chip .ico {
  width: 1.75rem; height: 1.75rem; border-radius: 0.5rem; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.chip .ico svg { width: 1rem; height: 1rem; }
@keyframes floatY { from { transform: translateY(-4px); } to { transform: translateY(6px); } }

.scroll-hint {
  position: absolute; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  width: 1.5rem; height: 2.4rem; margin-left: -0.75rem; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--hair-strong);
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 0.5rem; width: 3px; height: 0.5rem; margin-left: -1.5px;
  border-radius: 2px; background: var(--text-3);
  animation: hint 2.2s var(--ease-in-out) infinite;
}
@keyframes hint { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 70% { transform: translateY(0.75rem); opacity: 0; } 100% { opacity: 0; } }
@media (max-height: 700px) { .scroll-hint { display: none; } }

/* Los bucles decorativos arrancan cuando la página ya cargó */
html:not(.idle) .blob,
html:not(.idle) .marquee-track,
html:not(.idle) .breathe,
html:not(.idle) .seal,
html:not(.idle) .hero-badge .dot::after { animation-play-state: paused; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden;
  padding-block: 1.6rem;
  border-block: 1px solid var(--hair);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 2.25rem; padding-right: 2.25rem;
  font-size: clamp(1.4rem, 3.4vw, 2.25rem); font-weight: 650; letter-spacing: -0.03em; color: var(--text);
  white-space: nowrap;
}
.marquee-item::after { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent); opacity: .7; }
.marquee-item.dim { color: var(--text-3); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee-track { animation-play-state: paused; } }

/* ---------- Revelado de "materiales" (blur + escala + opacidad juntos) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.975);
  filter: blur(8px);
  transition:
    opacity 900ms var(--ease-out),
    transform 1100ms var(--spring-smooth),
    filter 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-in { opacity: 1; transform: none; filter: blur(0); }
.no-js .reveal { opacity: 1; transform: none; filter: none; }

/* ---------- Problema ---------- */
.cards { display: grid; gap: 1rem; }
@media (min-width: 820px) { .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.card {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transform-style: preserve-3d;
}
.card .h3 { margin: 1.25rem 0 0.6rem; }
.card p { color: var(--text-2); }
.card-ico {
  width: 3rem; height: 3rem; border-radius: 0.9rem; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.card-ico svg { width: 1.5rem; height: 1.5rem; }
.card-tag {
  position: absolute; right: 1.4rem; top: 1.4rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.tilt { will-change: transform; }
.glare {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(28rem circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.55), transparent 45%);
  opacity: 0; transition: opacity 400ms ease;
  mix-blend-mode: soft-light;
}
@media not all /* modo oscuro desactivado: la web va siempre en blanco */ {
  .glare { background: radial-gradient(28rem circle at var(--gx, 50%) var(--gy, 50%), rgba(140,160,255,.22), transparent 45%); mix-blend-mode: normal; }
}
.tilt.is-hover .glare { opacity: 1; }

.diag {
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--hair);
  display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 600; color: var(--text);
}
.diag .bar { flex: 1; height: 6px; border-radius: 99px; background: var(--hair); overflow: hidden; }
.diag .bar i {
  display: block; height: 100%; width: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #f97316, #ef4444);
  transform-origin: left; transform: scaleX(0.05);
  transition: transform 1400ms var(--spring-smooth) 300ms;
}
.reveal.is-in .diag .bar i { transform: scaleX(var(--v, .7)); }

/* ---------- El sistema (pinned) ---------- */
.sistema { background: var(--bg-sunken); }
.sistema-intro { padding-top: clamp(5.5rem, 13vw, 10rem); }
.sistema-track { position: relative; height: 520svh; }
.sistema-stage {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.sistema-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  justify-items: center;
  align-content: center;
  gap: 1.25rem;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
}
@media (min-width: 900px) {
  .sistema-grid {
    grid-template-columns: 1.05fr 0.95fr; grid-template-rows: auto;
    align-items: center; justify-items: stretch; gap: 4rem; padding-top: var(--nav-h);
  }
}

.steps { position: relative; width: 100%; max-width: 32rem; }
.steps-progress { display: flex; gap: 0.4rem; margin-bottom: 1.2rem; justify-content: center; }
.steps-progress span {
  flex: 1; max-width: 3.5rem; height: 4px; border-radius: 99px; background: var(--hair-strong); overflow: hidden;
}
.steps-progress span i {
  display: block; height: 100%; background: var(--accent); border-radius: inherit;
  transform-origin: left; transform: scaleX(var(--p, 0));
}
@media (min-width: 900px) { .steps-progress { justify-content: flex-start; } }

.step-list { display: grid; }
.step {
  grid-area: 1 / 1;
  text-align: center;
  opacity: 0; transform: translateY(12px); filter: blur(4px);
  transition: opacity 350ms var(--ease-out), transform 500ms var(--spring-smooth), filter 350ms var(--ease-out);
  pointer-events: none;
}
.step.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.step-num {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent-fill); color: #fff; font-size: 0.875rem; font-weight: 700; letter-spacing: 0;
  font-variant-numeric: tabular-nums; flex: none;
}
.step h3 { font-size: clamp(1.35rem, 4.6vw, 2.1rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; }
.step-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; letter-spacing: inherit; font-weight: inherit; }
.step p { margin-top: 0.6rem; color: var(--text-2); font-size: clamp(0.98rem, 2.6vw, 1.15rem); line-height: 1.5; }
.step-link { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--accent); font-weight: 600; white-space: nowrap; }
.step-link svg { width: 1rem; height: 1rem; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .step-link:hover svg { transform: translateX(3px); } }

@media (min-width: 900px) {
  .step-list { gap: 0.5rem; }
  .step {
    grid-area: auto; text-align: left;
    opacity: 0.35; transform: none; filter: none; pointer-events: auto;
    padding: 1rem 1.25rem; border-radius: 20px;
    transition: opacity 400ms var(--ease-out), background-color 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
  }
  .step.is-active { opacity: 1; background: var(--bg-elev); box-shadow: var(--shadow-md); }
  .step-btn { flex-direction: row; gap: 1rem; text-align: left; width: 100%; }
  .step h3 { font-size: 1.35rem; letter-spacing: -0.022em; }
  .step p { font-size: 1rem; margin: 0.5rem 0 0 3rem; display: none; }
  .step.is-active p { display: block; }
  .steps-progress { display: none; }
}
@media (hover: hover) and (pointer: fine) { .step:not(.is-active):hover { opacity: .65; } }

/* ---------- iPhone ---------- */
.phone-wrap {
  position: relative;
  width: calc(300px * var(--ps, 1));
  height: calc(620px * var(--ps, 1));
  flex: none;
}
@media (min-width: 900px) { .phone-wrap { justify-self: center; } }
.phone {
  position: absolute; left: 0; top: 0;
  width: 300px; height: 620px;
  transform: scale(var(--ps, 1));
  transform-origin: 0 0;
}
.phone-body {
  position: absolute; inset: 0;
  border-radius: 54px;
  background: #1c1c1e;
  padding: 11px;
  box-shadow:
    inset 0 0 0 1.5px #3a3a3c,
    inset 0 0 0 4px #0d0d0d,
    0 2px 4px rgba(0,0,0,.08),
    0 40px 80px -20px rgba(0,0,0,.35),
    0 20px 40px -20px rgba(var(--accent-glow), .35);
}
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 44px; overflow: hidden;
  background: #fff; color: #111;
  isolation: isolate;
}
.island {
  position: absolute; z-index: 30; left: 50%; top: 10px;
  width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #000;
}
.statusbar {
  position: absolute; z-index: 20; inset: 0 0 auto 0; height: 46px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 26px 0 30px; font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
}
.phone.sb-light .statusbar { color: #fff; }
.statusbar { transition: color 300ms ease; }
.statusbar .sb-r { display: flex; gap: 5px; align-items: center; }
.statusbar .sb-r i { display: block; background: currentColor; border-radius: 2px; }
.illus-tag {
  position: absolute; z-index: 40; left: 50%; bottom: 10px; transform: translateX(-50%);
  padding: 4px 10px; border-radius: 99px; font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
  color: #fff; background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  white-space: nowrap;
}
.phone-caption { text-align: center; margin-top: 0.75rem; }

.screen {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(0.96);
  filter: blur(6px);
  transition: opacity 380ms var(--ease-out), transform 600ms var(--spring-smooth), filter 380ms var(--ease-out);
  pointer-events: none;
}
.screen.is-active { opacity: 1; transform: none; filter: blur(0); }

/* Cada pantalla pinta su fondo detrás de la barra de estado */
.ig, .lp, .wa, .rv, .db { padding-top: 46px; }

/* (1) Instagram */
.ig { background: #fff; height: 100%; font-size: 12px; }
.ig-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px 8px; border-bottom: 1px solid #efefef; }
.ig-logo { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; font-style: italic; }
.ig-icons { display: flex; gap: 12px; }
.ig-icons i { width: 18px; height: 18px; border: 1.8px solid #111; border-radius: 6px; display: block; }
.ig-stories { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #efefef; }
.ig-stories i { width: 46px; height: 46px; border-radius: 50%; flex: none; background: linear-gradient(#eee, #ddd); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e1306c; }
.ig-post {
  transform: translateY(40px); opacity: 0;
  transition: transform 800ms var(--spring-bouncy) 150ms, opacity 400ms var(--ease-out) 150ms;
}
.screen.is-active .ig-post { transform: none; opacity: 1; }
.ig-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.ig-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; background: linear-gradient(140deg, #2a4fe0, #22a6e8); }
.ig-name { font-weight: 600; font-size: 12px; line-height: 1.2; }
.ig-sp { font-size: 10.5px; color: #737373; }
.ig-media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 10%, #e0e8ff 0%, #f7f9ff 45%, #fff 100%);
  display: grid; place-items: center;
}
.ig-media .tooth { width: 46%; transform: scale(.85) translateY(10px); opacity: 0; transition: transform 900ms var(--spring-bouncy) 450ms, opacity 500ms var(--ease-out) 450ms; }
.screen.is-active .ig-media .tooth { transform: none; opacity: 1; }
.ig-media .ad-copy { position: absolute; left: 14px; right: 14px; top: 14px; font-weight: 750; font-size: 19px; line-height: 1.08; letter-spacing: -0.03em; color: #0f1b4d; }
.ig-media .ad-sub { position: absolute; left: 14px; bottom: 12px; font-size: 11px; font-weight: 600; color: #2a4fe0; background: #fff; padding: 4px 9px; border-radius: 99px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.ig-cta { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; background: #2a4fe0; color: #fff; font-weight: 600; font-size: 12px; }
.ig-text { padding: 8px 12px; font-size: 11.5px; line-height: 1.4; color: #222; }

/* (2) Landing cargando */
.lp { height: 100%; background: #fff; display: flex; flex-direction: column; }
.lp-url { margin: 4px 12px 8px; padding: 7px 10px; border-radius: 10px; background: #f1f1f3; font-size: 11px; color: #555; display: flex; gap: 6px; align-items: center; }
.lp-load { height: 2px; background: #2a4fe0; transform-origin: left; transform: scaleX(0); }
.screen.is-active .lp-load { animation: load 1100ms var(--ease-out) forwards, loadFade 300ms ease 1100ms forwards; }
@keyframes load { to { transform: scaleX(1); } }
@keyframes loadFade { to { opacity: 0; } }
.lp-body { position: relative; flex: 1; padding: 16px 16px 0; }
.lp-sk, .lp-real { position: absolute; inset: 16px 16px 0; }
.lp-sk i { display: block; border-radius: 8px; background: linear-gradient(90deg, #eee 0%, #f6f6f6 50%, #eee 100%); margin-bottom: 10px; }
.lp-sk { transition: opacity 300ms ease 1000ms; }
.screen.is-active .lp-sk { opacity: 0; }
.lp-real > * { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease-out), transform 700ms var(--spring-smooth); }
.screen.is-active .lp-real > * { opacity: 1; transform: none; transition-delay: calc(1100ms + var(--i, 0) * 80ms); }
.lp-pill { display: inline-block; font-size: 10px; font-weight: 700; color: #2a4fe0; background: #eef2ff; padding: 4px 8px; border-radius: 99px; }
.lp-h { margin-top: 10px; font-size: 23px; line-height: 1.05; letter-spacing: -0.035em; font-weight: 750; color: #0b1020; }
.lp-p { margin-top: 8px; font-size: 11.5px; line-height: 1.45; color: #555; }
.lp-btn { margin-top: 12px; display: block; text-align: center; padding: 11px; border-radius: 12px; background: #2a4fe0; color: #fff; font-weight: 650; font-size: 12.5px; }
.lp-feat { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-feat span { font-size: 10.5px; font-weight: 600; color: #333; padding: 9px; border-radius: 10px; background: #f5f6fa; }

/* (3) WhatsApp */
.wa { height: 100%; display: flex; flex-direction: column; background: #efeae2; }
.wa-head { display: flex; align-items: center; gap: 9px; padding: 6px 12px 9px; background: #f6f6f6; border-bottom: 1px solid #e3e3e3; }
.wa-back { color: #0b84ff; font-size: 20px; line-height: 1; }
.wa-av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(140deg, #2a4fe0, #22a6e8); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; }
.wa-name { font-weight: 600; font-size: 13px; line-height: 1.15; }
.wa-st { font-size: 10.5px; color: #667; }
.wa-body {
  flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px;
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 14px 14px;
}
.wa-day { align-self: center; font-size: 10px; color: #555; background: #fff; padding: 3px 8px; border-radius: 8px; box-shadow: 0 1px 1px rgba(0,0,0,.06); margin-bottom: 4px; }
.bub {
  max-width: 82%; padding: 6px 9px 5px; border-radius: 12px; font-size: 12px; line-height: 1.35;
  box-shadow: 0 1px 1px rgba(0,0,0,.08);
  opacity: 0; transform: translateY(14px) scale(0.92);
  transition: opacity 260ms var(--ease-out), transform 700ms var(--spring-bouncy);
}
.bub.in { background: #fff; align-self: flex-start; border-top-left-radius: 4px; transform-origin: 0 100%; }
.bub.out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 4px; transform-origin: 100% 100%; }
.bub small { display: block; text-align: right; font-size: 9.5px; color: #667; margin-top: 2px; font-variant-numeric: tabular-nums; }
.bub.show { opacity: 1; transform: none; }
.typing {
  align-self: flex-end; display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 12px; background: #d9fdd3; border-top-right-radius: 4px;
  opacity: 0; transform: scale(0.9); transform-origin: 100% 100%;
  transition: opacity 200ms var(--ease-out), transform 400ms var(--spring-bouncy);
}
.typing.show { opacity: 1; transform: none; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #7a8a7a; animation: blink 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.wa-speed {
  align-self: center; margin-top: 4px; font-size: 10px; font-weight: 700; color: #0f6e35; background: #dcfce7; padding: 4px 9px; border-radius: 99px;
  opacity: 0; transform: translateY(6px); transition: opacity 300ms var(--ease-out), transform 500ms var(--spring-bouncy);
}
.wa-speed.show { opacity: 1; transform: none; }
.wa-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px 34px; background: #f6f6f6; }
.wa-input span { flex: 1; height: 30px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px #e3e3e3; }
.wa-input i { width: 30px; height: 30px; border-radius: 50%; background: #14803f; display: block; }

/* (4) Reseña */
.rv { height: 100%; position: relative; color: #fff; background: radial-gradient(120% 80% at 30% 0%, #3b5bdb 0%, #1e2a78 45%, #0b1030 100%); }
.rv-time { text-align: center; margin-top: 18px; }
.rv-time b { display: block; font-size: 64px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.rv-time span { font-size: 13px; opacity: .85; }
.notif {
  position: absolute; left: 10px; right: 10px;
  padding: 10px 12px; border-radius: 18px;
  background: rgba(255,255,255,.78); color: #111;
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  opacity: 0; transform: translateY(-30px) scale(0.94);
  transition: opacity 300ms var(--ease-out), transform 800ms var(--spring-bouncy);
}
.notif.n1 { top: 214px; }
.notif.n2 { top: 312px; }
.screen.is-active .notif { opacity: 1; transform: none; }
.screen.is-active .notif.n1 { transition-delay: 250ms; }
.screen.is-active .notif.n2 { transition-delay: 1300ms; }
.notif-h { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: #555; margin-bottom: 3px; }
.notif-h .app { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; }
.notif-h .t { margin-left: auto; }
.notif b { font-size: 12.5px; letter-spacing: -0.01em; }
.notif p { font-size: 11.5px; line-height: 1.35; color: #333; }
.stars { display: flex; gap: 2px; margin: 3px 0 4px; }
.stars svg { width: 15px; height: 15px; color: #f5b301; transform: scale(0); transition: transform 500ms var(--spring-bouncy); }
.screen.is-active .stars svg { transform: none; transition-delay: calc(1500ms + var(--i) * 90ms); }
.sk-line { height: 7px; border-radius: 4px; background: rgba(0,0,0,.12); margin-top: 5px; }

/* (5) Dashboard */
.db { height: 100%; background: #f5f6fa; padding: 50px 14px 0; }
.db-h { display: flex; justify-content: space-between; align-items: baseline; }
.db-h b { font-size: 20px; letter-spacing: -0.03em; }
.db-h span { font-size: 10.5px; color: #666; }
.db-card { margin-top: 10px; background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.db-card h4 { font-size: 11px; font-weight: 650; color: #444; margin: 0 0 8px; letter-spacing: 0; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; }
.bars .b i {
  width: 100%; height: var(--h); border-radius: 6px 6px 3px 3px;
  background: linear-gradient(#5a78ff, #2a4fe0);
  transform-origin: bottom; transform: scaleY(0.04);
  transition: transform 900ms var(--spring-bouncy);
}
.bars .b:nth-child(4) i { background: linear-gradient(#34d399, #10b981); }
.screen.is-active .bars .b i { transform: none; transition-delay: calc(250ms + var(--i) * 110ms); }
.bars .b span { font-size: 9px; color: #666; text-align: center; line-height: 1.1; }
.line svg { width: 100%; height: 70px; overflow: visible; }
.line path.stroke { fill: none; stroke: #2a4fe0; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1600ms var(--ease-in-out) 600ms; }
.line path.area { fill: url(#areaGrad); opacity: 0; transition: opacity 800ms ease 1600ms; }
.screen.is-active .line path.stroke { stroke-dashoffset: 0; }
.screen.is-active .line path.area { opacity: 1; }
.hbars { display: grid; gap: 7px; }
.hbars div { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 8px; font-size: 9.5px; color: #555; }
.hbars i { height: 8px; border-radius: 99px; background: #dfe5fb; overflow: hidden; display: block; }
.hbars i b { display: block; height: 100%; width: var(--w); border-radius: inherit; background: #2a4fe0; transform-origin: left; transform: scaleX(0.02); transition: transform 1000ms var(--spring-smooth); }
.screen.is-active .hbars i b { transform: none; transition-delay: calc(900ms + var(--i) * 100ms); }
.db-note { margin-top: 10px; font-size: 9.5px; color: #777; text-align: center; }

/* ---------- Grandes cifras ---------- */
.stats { display: grid; gap: 1rem; }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.stat { padding: 2rem; border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: var(--shadow-md); }
.stat-num {
  font-size: clamp(3rem, 7vw, 4.75rem); line-height: 1; letter-spacing: -0.045em; font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.stat-label { margin-top: 0.75rem; color: var(--text-2); }

.value {
  position: relative; overflow: clip;
  padding: clamp(2.25rem, 6vw, 5rem);
  border-radius: clamp(28px, 4vw, 44px);
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
  text-align: center;
  isolation: isolate;
}
.value::before {
  content: ""; position: absolute; z-index: -1; inset: -40% -20% auto; height: 120%;
  background: radial-gradient(closest-side, rgba(var(--accent-glow), .16), transparent);
}
.value-num {
  font-size: clamp(3.1rem, 11vw, 8.5rem); line-height: 0.95; letter-spacing: -0.055em; font-weight: 800;
  font-variant-numeric: tabular-nums; margin: 0.75rem 0 1.25rem;
  white-space: nowrap;
}
@media (max-width: 560px) { .value { padding: 2.25rem 1.25rem; } .value-num { font-size: 10.4vw; } }
.value-cur { font-size: 0.42em; letter-spacing: -0.02em; vertical-align: 0.95em; margin-right: 0.12em; color: var(--text-3); font-weight: 650; }
.value .lead { max-width: 38rem; margin-inline: auto; }
.fineprint { margin-top: 1.5rem; font-size: 0.8125rem; color: var(--text-3); max-width: 36rem; margin-inline: auto; }
.math { display: grid; gap: 0.75rem; margin-top: 2.5rem; text-align: left; }
@media (min-width: 720px) { .math { grid-template-columns: repeat(3, 1fr); } }
.math div { padding: 1.25rem 1.4rem; border-radius: 20px; background: var(--bg-sunken); }
.math b { display: block; font-size: 1.05rem; letter-spacing: -0.02em; margin-bottom: 0.25rem; }
.math span { color: var(--text-2); font-size: 0.95rem; }

/* ---------- Garantía ---------- */
.guarantee {
  position: relative; overflow: clip; isolation: isolate;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 6vw, 5rem);
  border-radius: clamp(28px, 4vw, 44px);
  color: var(--text);
  background: linear-gradient(160deg, #eef2ff 0%, #f8faff 55%, #eefaff 100%);
  box-shadow: inset 0 0 0 1px rgba(42,79,224,.08), var(--shadow-md);
}
.guarantee::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 70% at 10% 0%, rgba(80,110,255,.16), transparent 60%),
    radial-gradient(45% 60% at 100% 100%, rgba(56,189,248,.14), transparent 60%);
}
.seal {
  width: 6.5rem; height: 6.5rem; margin-bottom: 2rem;
  animation: spin 40s linear infinite;
}
.seal-wrap { position: relative; width: 6.5rem; }
.seal-wrap b { color: var(--accent); position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.04em; height: 6.5rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.guarantee .h2 { max-width: 20ch; }
.guarantee .lead { color: var(--text-2); margin-top: 1.25rem; max-width: 40rem; }
.guarantee .placeholder { color: var(--text); }
.g-notes { margin-top: 2.25rem; display: grid; gap: 0.75rem; }
@media (min-width: 720px) { .g-notes { grid-template-columns: 1fr 1fr; } }
.g-notes li { display: flex; gap: 0.75rem; padding: 1rem 1.2rem; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); font-size: 0.95rem; color: var(--text-2); }
.g-notes svg { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; color: var(--accent); }

/* ---------- Para quién ---------- */
.fit { display: grid; gap: 1rem; }
@media (min-width: 820px) { .fit { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.fit-col { padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: var(--shadow-md); }
.fit-col h3 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; }
.fit-col h3 .mark { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; }
.fit-col.yes .mark { background: rgba(34,197,94,.14); color: #15803d; }
.fit-col.no .mark { background: rgba(239,68,68,.12); color: #b91c1c; }
@media not all /* modo oscuro desactivado: la web va siempre en blanco */ { .fit-col.yes .mark { color: #4ade80; } .fit-col.no .mark { color: #f87171; } }
.fit-col .mark svg { width: 1rem; height: 1rem; }
.fit-col li { padding: 0.8rem 0; border-top: 1px solid var(--hair); color: var(--text-2); }
.fit-col li:first-child { border-top: 0; padding-top: 0; }

/* ---------- Quién soy ---------- */
.about { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) { .about { grid-template-columns: 0.85fr 1.15fr; } }
.portrait {
  position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 26rem; margin-inline: auto;
  border-radius: 36px; overflow: hidden; isolation: isolate;
  background: transparent;
}
@media not all /* modo oscuro desactivado: la web va siempre en blanco */ { .portrait { background: linear-gradient(160deg, #1a2040, #0f1222 55%, #0d1a26); } }
.portrait::before { content: none; }
.portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  /* la foto se funde con el blanco de la página */
  -webkit-mask-image: radial-gradient(ellipse 72% 64% at 50% 42%, #000 64%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 64% at 50% 42%, #000 64%, transparent 100%);
}
.portrait-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.ph-label { position: absolute; top: 1rem; left: 1rem; font-size: .8rem; font-weight: 600; color: var(--text-2); }
.portrait-ph svg { width: 62%; height: auto; color: rgba(42,79,224,.22); }
@media not all /* modo oscuro desactivado: la web va siempre en blanco */ { .ph-label { position: absolute; top: 1rem; left: 1rem; font-size: .8rem; font-weight: 600; color: var(--text-2); }
.portrait-ph svg { color: rgba(138,162,255,.2); } }
.portrait-tag {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  padding: 0.85rem 1rem; border-radius: 18px;
  background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--glass-edge), var(--shadow-sm);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem;
}
.portrait-tag b { display: block; font-size: 0.95rem; }
.flag { width: 1.9rem; height: 1.35rem; border-radius: 4px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--hair); }
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 2rem; }
.flag-i { display: inline-block; height: 0.8em; width: auto; vertical-align: 0; margin: 0 0.05em; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.08); }
.fact-flag { display: flex !important; align-items: center; gap: 0.5rem; }
.fact-flag .flag-i { height: 0.85em; margin: 0; }
.about-facts div { padding: 1rem 1.15rem; border-radius: 18px; background: var(--bg-sunken); }
.about-facts b { display: block; font-size: 1.05rem; letter-spacing: -0.02em; }
.about-facts span { font-size: 0.875rem; color: var(--text-3); }
.about p + p { margin-top: 1rem; }
.about .lead { margin-top: 1.25rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0; text-align: left;
  font-size: clamp(1.1rem, 2.3vw, 1.35rem); font-weight: 600; letter-spacing: -0.02em;
}
.faq-q:active .faq-icon { transform: scale(0.9); }
.faq-icon {
  position: relative; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--bg-sunken);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  border-radius: 2px; background: var(--text);
  transition: transform 500ms var(--spring-bouncy);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon::after { transform: rotate(0deg); }
.faq-item.is-open .faq-icon { background: var(--accent-soft); }
.faq-a { overflow: hidden; height: 0; }
.faq-a-inner {
  padding: 0 3.5rem 1.6rem 0; color: var(--text-2);
  opacity: 0; transform: translateY(-6px);
  transition: opacity 300ms var(--ease-out), transform 500ms var(--spring-smooth);
}
.faq-item.is-open .faq-a-inner { opacity: 1; transform: none; transition-delay: 60ms; }
.faq-a-inner p + p { margin-top: 0.75rem; }
.no-js .faq-a { height: auto; }
.no-js .faq-a-inner { opacity: 1; transform: none; }

/* ---------- CTA final ---------- */
.final {
  position: relative; overflow: clip; isolation: isolate; text-align: center;
  padding-block: clamp(7rem, 16vw, 12rem);
}
.breathe {
  position: absolute; left: 50%; top: 50%; z-index: -1;
  width: 120vmax; height: 120vmax; margin: -60vmax 0 0 -60vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--accent-glow), .32), rgba(var(--mesh-c), .14) 45%, transparent 70%);
  animation: breathe 12s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes breathe { from { transform: scale(0.82); opacity: .75; } to { transform: scale(1.05); opacity: 1; } }
.final .h2 { font-size: clamp(2.5rem, 7.6vw, 5.75rem); max-width: 16ch; margin-inline: auto; }
.final .lead { max-width: 34rem; margin: 1.5rem auto 2.5rem; }
.contact-line { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem; color: var(--text-2); font-size: 0.95rem; }
.contact-line a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0; }
.contact-line svg { width: 1.1rem; height: 1.1rem; }

/* ---------- Footer ---------- */
.footer { padding: 2.5rem 0 calc(6rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--hair); font-size: 0.875rem; color: var(--text-3); }
.footer-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer a { padding: 0.35rem 0; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--text); } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; z-index: 60;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 0.6rem;
  height: 3.5rem; padding: 0 1.15rem 0 1rem; border-radius: 999px;
  background: var(--wa); color: #fff; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(20,128,63,.35), 0 2px 6px rgba(0,0,0,.12);
  opacity: 0; transform: translateY(140%) scale(0.9);
  transition: opacity 300ms var(--ease-out), transform 700ms var(--spring-bouncy);
  pointer-events: none;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:active { transform: scale(0.95); transition-duration: 120ms; }
.wa-float svg { width: 1.6rem; height: 1.6rem; }
.wa-float .lbl { display: none; }
@media (min-width: 560px) { .wa-float .lbl { display: inline; } }
@media (max-width: 559px) { .wa-float { width: 3.75rem; height: 3.75rem; padding: 0; justify-content: center; } }

/* ---------- Páginas de texto (privacidad) ---------- */
.doc { max-width: 44rem; margin-inline: auto; padding: calc(var(--nav-h) + 4rem) var(--gutter) 6rem; }
.doc h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 1rem; }
.doc h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 2.5rem 0 0.75rem; }
.doc p, .doc li { color: var(--text-2); }
.doc p + p { margin-top: 0.9rem; }
.doc ul { list-style: disc; padding-left: 1.25rem; margin-top: 0.75rem; }
.doc li + li { margin-top: 0.4rem; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Accesibilidad: menos movimiento / menos transparencia / más contraste
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .blob, .breathe, .float-y, .seal, .hero-badge .dot::after, .marquee-track, .hero-badge .dot, .scroll-hint::after { animation: none !important; }
  .w, .fade-up { animation: rmFade 250ms ease forwards !important; transform: none !important; filter: none !important; }
  @keyframes rmFade { from { opacity: 0; } to { opacity: 1; } }
  .reveal { transform: none; filter: none; transition: opacity 250ms ease; transition-delay: 0ms; }
  .screen, .step { transform: none !important; filter: none !important; transition: opacity 200ms ease !important; }
  .screen *, .bub, .typing, .notif, .wa-speed, .stars svg, .bars .b i, .ig-post, .lp-real > * {
    transform: none !important; transition: opacity 200ms ease !important; transition-delay: 0ms !important;
  }
  .line path.stroke { stroke-dashoffset: 0 !important; }
  .wa-float { transform: none; transition: opacity 200ms ease; }
  .faq-a-inner { transform: none; transition: opacity 200ms ease; }
  .faq-icon::before, .faq-icon::after { transition: none; }
  .magnetic, .tilt { transform: none !important; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

@media (prefers-reduced-transparency: reduce) {
  :root { --glass: var(--bg-elev); --glass-strong: var(--bg-elev); }
  .nav::before, .chip, .btn-secondary, .hero-badge, .portrait-tag, .notif, .illus-tag {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  .notif { background: #fff; }
  .illus-tag { background: #000; }
}

@media (prefers-contrast: more) {
  :root { --hair: rgba(127,127,127,.6); --text-3: var(--text-2); }
  .card, .stat, .fit-col, .value, .chip, .btn-secondary { box-shadow: inset 0 0 0 1.5px var(--text); }
}
