/* ─────────────────────────────────────────────────────────
 * SoftwaLabs · Estilos generales
 * Hereda tokens de tokens.css. Tema dual claro/oscuro.
 * ────────────────────────────────────────────────────────── */

/* ╭───────────────────────────────────────────╮
   │ LAYOUT                                    │
   ╰───────────────────────────────────────────╯ */
.container       { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.container-wide  { max-width: 1480px; margin: 0 auto; padding: 0 32px; }
.container-narrow{ max-width: 880px;  margin: 0 auto; padding: 0 32px; }

@media (max-width: 720px) {
  .container, .container-wide, .container-narrow { padding: 0 20px; }
}

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
main       { flex: 1; }

/* ╭───────────────────────────────────────────╮
   │ TOPBAR                                    │
   ╰───────────────────────────────────────────╯ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.topbar-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -.01em;
  font-size: 14px;
  color: var(--ink);
}
.topbar-brand .dot {
  width: 10px; height: 10px; border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.topbar-nav {
  display: flex; gap: 2px;
  margin-left: 12px;
}
.topbar-nav a {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.topbar-nav a:hover { color: var(--ink); background: var(--bg-3); }
.topbar-nav a.is-active { color: var(--accent); }
.topbar-spacer { flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: 12px;
  transition: background .15s, color .15s;
}
.topbar-cta:hover { background: var(--accent); color: var(--accent-ink); }
.topbar-cta .blink { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: lab-blink 1.4s infinite; }

.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: color .2s, border-color .2s, background .2s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* Mobile nav — oculto por defecto en TODA resolución.
   Se activa solo en ≤920px cuando lleva la clase .is-open.
   IMPORTANTE: el menú móvil NO puede estar dentro del .topbar porque
   éste tiene backdrop-filter, que crea un containing block y atrapa
   los position:fixed. Por eso el HTML lo coloca como hermano del header. */
.topbar-burger { display: none; }
.topbar-mobile { display: none; }

@media (max-width: 920px) {
  .topbar-nav { display: none; }
  .topbar-burger {
    display: inline-flex; width: 40px; height: 40px;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    align-items: center; justify-content: center;
    background: transparent; color: var(--ink);
  }
  /* Estado abierto: pantalla completa, opaco, por encima de todo */
  .topbar-mobile.is-open {
    display: flex; flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh; height: 100dvh;
    z-index: 9999;
    background: var(--bg);
    padding: 76px 24px 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: lab-fade-up .25s ease;
  }
  .topbar-mobile.is-open a {
    display: block;
    padding: 18px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-display);
    letter-spacing: -.005em;
  }
  .topbar-mobile.is-open a.is-active { color: var(--accent); }
  .topbar-mobile.is-open a.btn { border-bottom: 0; padding: 16px 22px; }
  .topbar-mobile-close {
    position: absolute; top: 18px; right: 18px;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--bg-2); color: var(--ink);
    font-size: 18px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
  }
  .topbar-mobile-close:hover { border-color: var(--accent); color: var(--accent); }
}

/* ╭───────────────────────────────────────────╮
   │ BREADCRUMBS                               │
   ╰───────────────────────────────────────────╯ */
.breadcrumbs {
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  padding: 12px 0;
}
.breadcrumbs__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3);
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs__item a { color: var(--ink-3); transition: color .15s; }
.breadcrumbs__item a:hover { color: var(--accent); }
.breadcrumbs__item [aria-current="page"] { color: var(--ink); }
.breadcrumbs__sep { color: var(--line-2); margin-left: 2px; }

/* ╭───────────────────────────────────────────╮
   │ SECCIONES                                 │
   ╰───────────────────────────────────────────╯ */
.sec        { padding: 120px 0; }
.sec-tight  { padding: 72px 0; }
.sec-narrow { padding: 56px 0; }

@media (max-width: 720px) {
  .sec { padding: 72px 0; }
  .sec-tight { padding: 48px 0; }
}

.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.sec-label::before {
  content: ""; width: 28px; height: 1px; background: var(--accent);
}
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  font-weight: 500;
  max-width: 980px;
  text-wrap: balance;
}
.sec-title em, .sec-title .serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--accent);
}
.sec-sub {
  font-size: 18px; color: var(--ink-2);
  max-width: 720px;
  text-wrap: pretty;
  margin: 0;
}

/* ╭───────────────────────────────────────────╮
   │ BOTONES Y CHIPS                           │
   ╰───────────────────────────────────────────╯ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  border: 1px solid transparent;
  transition: transform .12s, background .15s, color .15s, border-color .15s;
  cursor: pointer; line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost   { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-link {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  transition: color .15s, border-color .15s;
}
.btn-link:hover { color: var(--accent); border-color: var(--accent); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-2);
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: lab-blink 1.4s infinite; }

/* ╭──────────────────────────────────────────────────╮
   │ HERO COSMIC ECLIPSE                              │
   │ Fondo legacy (nebula+canvas+scanlines+vignette)  │
   │ Copy y tipografía nuevos                          │
   ╰──────────────────────────────────────────────────╯ */
.hero-eclipse {
  position: relative;
  width: 100%; min-height: 100vh; height: 100vh; height: 100dvh;
  overflow: hidden;
  /* Mobile-first: imagen ligera por defecto, desktop sobreescribe */
  background: #0a0a0c url('/assets/img/nebula-hero-mobile.webp') center/cover no-repeat;
  /* Hero siempre oscuro, incluso en tema claro: lo aislamos del data-theme. */
  color: #ececee;
  isolation: isolate;
}
@media (min-width: 721px) {
  .hero-eclipse { background-image: url('/assets/img/nebula-hero.webp'); }
}
/* Mascara lateral: oscuridad progresiva para ocultar cortes con parallax */
.hero-eclipse::before {
  content: ''; position: absolute; inset: 0; z-index: 4;
  pointer-events: none;
  background:
    linear-gradient( 90deg, rgba(10,10,12,1) 0%, rgba(10,10,12,0.7) 8%, transparent 18%),
    linear-gradient(270deg, rgba(10,10,12,1) 0%, rgba(10,10,12,0.7) 8%, transparent 18%),
    linear-gradient(180deg, rgba(10,10,12,0.55) 0%, transparent 14%),
    linear-gradient(  0deg, rgba(10,10,12,0.55) 0%, transparent 14%);
}
/* Marco swiss interno */
.hero-eclipse::after {
  content: ''; position: absolute; inset: 24px 32px; z-index: 7;
  border: 1px solid rgba(244,215,163,0.28); pointer-events: none;
}
@media (max-width: 720px) {
  .hero-eclipse::after { inset: 16px 18px; }
}

#eclipseCanvas, #glowLayer {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}
#eclipseCanvas { z-index: 1; }
#glowLayer     { z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s; }

.scanlines {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.8) 50%),
    linear-gradient(90deg, rgba(0, 255, 242, 0.03), rgba(0, 243, 242, 0.01), rgba(0, 200, 255, 0.03));
  background-size: 100% 3px, 4px 100%;
  opacity: 0.15;
  animation: scanline-flicker 8s infinite;
}
@keyframes scanline-flicker {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 0.12; }
  52%      { opacity: 0.18; }
}
.vignette {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
}
.interaction-zone {
  position: absolute; top: 0; right: 0; width: 60%; height: 100%; z-index: 4;
}

/* Coordenadas en el marco superior */
.hero-coords {
  position: absolute; left: 0; right: 0; top: 24px;
  display: flex; justify-content: space-between;
  padding: 0 64px; z-index: 8; pointer-events: none;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .15em; color: rgba(244,215,163,.55);
  text-transform: uppercase;
}
.hero-coords span {
  background: rgba(10,10,12,0.85);
  padding: 2px 10px; transform: translateY(-50%);
}
@media (max-width: 720px) {
  .hero-coords { padding: 0 32px; font-size: 9px; }
  .hero-coords span:nth-child(2) { display: none; }
}

/* Tesis lateral izquierda */
.hero-tesis {
  position: absolute; top: 0; bottom: 0; left: 64px;
  z-index: 8; max-width: 320px;
  display: flex; flex-direction: column; justify-content: center;
  font-family: var(--font-serif); font-style: italic;
  color: #c5c5cc;
}
.hero-tesis__label {
  font-family: var(--font-mono); font-style: normal;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(244,215,163,.7); margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.hero-tesis__label::before {
  content: ''; width: 24px; height: 1px;
  background: rgba(244,215,163,.7);
}
.hero-tesis__body {
  margin: 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.45;
}
.hero-tesis .muted { color: #8a8a93; }
.hero-tesis__obs {
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid rgba(244,215,163,.22);
}
.hero-tesis__obs-label {
  font-family: var(--font-mono); font-style: normal;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(244,215,163,.6); margin-bottom: 10px;
}
.hero-tesis__obs p {
  margin: 0; font-family: var(--font-body); font-style: normal;
  font-size: 13px; line-height: 1.6; color: #b8b8bd;
  letter-spacing: 0;
}

/* Ficha lateral derecha */
.hero-ficha {
  position: absolute; top: 0; bottom: 0; right: 64px;
  z-index: 8; width: 280px;
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid rgba(244,215,163,.28); padding-left: 24px;
  color: #ececee;
}
.hero-ficha__label {
  font-family: var(--font-mono); font-size: 10px;
  color: rgba(244,215,163,.7); letter-spacing: .2em;
  text-transform: uppercase; margin-bottom: 18px;
}
.hero-ficha__row {
  display: grid; grid-template-columns: 1fr 1.4fr;
  padding: 10px 0; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 12.5px; align-items: baseline;
}
.hero-ficha__row .k {
  font-family: var(--font-mono); font-size: 10px;
  color: #8a8a93; letter-spacing: .12em; text-transform: uppercase;
}
.hero-ficha__row .v { color: #ececee; }
.hero-ficha__callout {
  margin-top: 18px; padding: 12px 14px;
  border: 1px solid rgba(244,215,163,.5);
  background: rgba(244,215,163,0.06);
  color: #f4d7a3;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  line-height: 1.45;
}
.hero-ficha__callout strong { color: #fff; }
.hero-ficha__callout .cursor {
  display: inline-block; width: 7px; height: 13px;
  background: #f4d7a3; margin-right: 6px;
  vertical-align: -2px;
  animation: lab-blink 1.2s infinite;
}

/* Oculta laterales en pantallas estrechas */
@media (max-width: 1180px) {
  .hero-tesis, .hero-ficha { display: none; }
}

/* Contenido central — marca + tagline + CTAs */
.hero-content {
  position: absolute; top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  z-index: 8; text-align: center;
  width: min(720px, calc(100% - 48px));
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 18px;
}
.hero-title {
  margin: 0;
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(64px, 11vw, 144px); line-height: .92;
  letter-spacing: -.04em; color: #fff;
  text-shadow: 0 0 60px rgba(0, 243, 242, 0.2);
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(180deg, #ffffff 0%, #f4d7a3 60%, #ffd58a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(244,215,163,.75);
}
.hero-tagline {
  margin: 0;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.4; color: #c5c5cc;
  max-width: 540px;
}
.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: 8px;
}
/* Botones del hero: contraste sobre fondo oscuro siempre */
.hero-eclipse .btn-primary { background: #f4d7a3; color: #1a1409; }
.hero-eclipse .btn-primary:hover { filter: brightness(1.08); }
.hero-eclipse .btn-ghost   { border-color: rgba(244,215,163,.5); color: #f4d7a3; }
.hero-eclipse .btn-ghost:hover { border-color: #f4d7a3; color: #fff; }

/* Regla inferior */
.hero-ruler {
  position: absolute; bottom: 40px; left: 96px; right: 96px;
  display: flex; justify-content: space-between;
  z-index: 8; pointer-events: none;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .15em; color: rgba(244,215,163,.5);
}
@media (max-width: 720px) { .hero-ruler { left: 32px; right: 32px; bottom: 24px; } }

/* ╭───────────────────────────────────────────╮
   │ MARQUEE                                   │
   ╰───────────────────────────────────────────╯ */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden; padding: 14px 0;
}
.marquee-track {
  display: flex; gap: 64px;
  animation: lab-ticker 45s linear infinite;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap;
}
.marquee-track span::after {
  content: '·'; margin-left: 64px; color: var(--accent);
}

/* ╭───────────────────────────────────────────╮
   │ GRID DE SERVICIOS                         │
   ╰───────────────────────────────────────────╯ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--bg);
  padding: 40px 32px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background .2s, transform .2s;
  position: relative;
}
.service-card:hover { background: var(--bg-1); }
.service-card__num {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
.service-card__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 24px; line-height: 1.2; margin: 0;
  color: var(--ink); letter-spacing: -.01em;
}
.service-card__desc { color: var(--ink-2); font-size: 15px; margin: 0; }
.service-card__bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--ink-2);
  font-family: var(--font-mono);
}
.service-card__bullets li::before {
  content: '→'; color: var(--accent); margin-right: 8px;
}
.service-card__foot {
  margin-top: auto; display: flex; justify-content: space-between;
  align-items: center; padding-top: 16px;
  border-top: 1px dotted var(--line-2);
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-3);
}
.service-card__foot .arrow { color: var(--accent); font-size: 16px; }

/* ╭───────────────────────────────────────────╮
   │ TRANSVERSAL — diferencial                 │
   ╰───────────────────────────────────────────╯ */
.transversal {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 64px; align-items: start;
}
@media (max-width: 880px) { .transversal { grid-template-columns: 1fr; gap: 32px; } }
.transversal__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.transversal__list li {
  display: grid; grid-template-columns: 1fr 1.4fr;
  padding: 20px 0; gap: 24px;
  border-bottom: 1px solid var(--line);
}
.transversal__list .lbl {
  display: flex; gap: 14px; align-items: baseline;
  font-family: var(--font-display); font-weight: 500;
  font-size: 19px; color: var(--ink);
  letter-spacing: -.01em;
}
.transversal__list .num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: .14em;
}
.transversal__list .meta {
  font-size: 14px; color: var(--ink-2);
}

/* ╭───────────────────────────────────────────╮
   │ UTILITY GRIDS — responsive                │
   ╰───────────────────────────────────────────╯ */

/* 2 columnas con peso (form/info, hero/box, listing/aside) */
.split-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 880px) { .split-2 { grid-template-columns: 1fr; gap: 32px; } }

/* 2 columnas iguales (sub-grids dentro de form, etc.) */
.split-2-even { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .split-2-even { grid-template-columns: 1fr; } }

/* Bento — celdas con divisor (1px line + bg)
   Usa .bento--3 o .bento--4 según el número de columnas. */
.bento {
  display: grid; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.bento--3 { grid-template-columns: repeat(3, 1fr); }
.bento--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .bento--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px)  { .bento--3, .bento--4 { grid-template-columns: 1fr; } }

.bento__cell { background: var(--bg); padding: 32px 28px; }
.bento__cell--lg { padding: 40px 32px; }
.bento__cell__label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 16px;
}
.bento__cell__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; line-height: 1.2; margin: 0 0 12px;
  letter-spacing: -.01em; color: var(--ink);
}
.bento__cell__title--sm { font-size: 20px; }
.bento__cell__desc { color: var(--ink-2); font-size: 14px; margin: 0; }
.bento__cell__desc--sm { font-size: 13px; }

/* 4 columnas pequeñas (KPIs admin, badges) */
.grid-4-sm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 720px) { .grid-4-sm { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid-4-sm { grid-template-columns: 1fr; } }

/* Wrapper para tablas anchas que deben scrollear horizontalmente en mobile */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll > table { min-width: 640px; }

/* ╭───────────────────────────────────────────╮
   │ RESULTADOS                                │
   ╰───────────────────────────────────────────╯ */
.results-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 880px) { .results-grid { grid-template-columns: 1fr; } }

.result-cell { background: var(--bg); padding: 40px 32px; }
.result-cell__label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 16px;
}
.result-cell__num {
  font-family: var(--font-display); font-size: 64px; font-weight: 500;
  line-height: 1; letter-spacing: -.02em; color: var(--ink);
}
.result-cell__num span { font-size: 32px; color: var(--ink-3); }
.result-cell__desc { margin-top: 16px; color: var(--ink-2); font-size: 14px; }
@media (max-width: 480px) {
  .result-cell { padding: 28px 24px; }
  .result-cell__num { font-size: 52px; }
  .result-cell__num span { font-size: 26px; }
}

/* ╭───────────────────────────────────────────╮
   │ TESTIMONIOS                               │
   ╰───────────────────────────────────────────╯ */
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 1080px) { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .testi-grid { grid-template-columns: 1fr; } }
.testi-card {
  border: 1px solid var(--line); padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  background: var(--bg-1);
}
.testi-card blockquote {
  margin: 0; font-family: var(--font-serif); font-style: italic;
  font-size: 18px; line-height: 1.5; color: var(--ink);
}
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-weight: 600;
  overflow: hidden; flex-shrink: 0;
}
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-who-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.testi-who-role { font-size: 12px; color: var(--ink-3); font-family: var(--font-mono); }

/* ╭───────────────────────────────────────────╮
   │ BIG CTA                                   │
   ╰───────────────────────────────────────────╯ */
.big-cta {
  background: var(--bg-1);
  border-block: 1px solid var(--line);
  padding: 96px 0;
  text-align: center;
}
.big-cta h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(36px, 5vw, 64px); line-height: 1.05;
  letter-spacing: -.02em; margin: 0 0 16px;
}
.big-cta h2 em { font-family: var(--font-serif); font-style: italic; color: var(--accent); }
.big-cta p { color: var(--ink-2); max-width: 600px; margin: 0 auto 32px; }
.big-cta .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ╭───────────────────────────────────────────╮
   │ FOOTER                                    │
   ╰───────────────────────────────────────────╯ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  padding: 64px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand p { color: var(--ink-2); max-width: 380px; }
.footer-heading {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--ink-2); font-size: 14px; transition: color .15s; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; flex-wrap: wrap; gap: 16px;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-3);
}
.footer-bottom a { color: var(--ink-3); transition: color .15s; }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom .legal { display: flex; gap: 18px; }

/* ╭───────────────────────────────────────────╮
   │ FORMS                                     │
   ╰───────────────────────────────────────────╯ */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-2); border: 1px solid var(--line-2);
  color: var(--ink); font-family: var(--font-body);
  padding: 12px 14px; border-radius: var(--r-sm);
  font-size: 15px; transition: border-color .15s, background .15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 0; border-color: var(--accent);
  background: var(--bg-1);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-error { color: var(--danger); font-size: 13px; margin-top: 4px; }
.form-success {
  background: var(--accent-soft); border: 1px solid var(--accent);
  color: var(--accent); padding: 16px; border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: 13px;
}

/* ╭───────────────────────────────────────────╮
   │ FAB / Botones flotantes                   │
   ╰───────────────────────────────────────────╯ */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: var(--shadow-md);
  transition: transform .2s, box-shadow .2s;
}
.fab:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.fab svg { width: 24px; height: 24px; }
.fab.fab-whatsapp { background: #25D366; color: #fff; right: 20px; }
.fab.fab-back-top { background: var(--bg-2); color: var(--ink); right: 88px; bottom: 24px;
  width: 44px; height: 44px; border: 1px solid var(--line-2); }

/* ╭───────────────────────────────────────────╮
   │ Cookie banner                             │
   ╰───────────────────────────────────────────╯ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--bg-2); border-top: 1px solid var(--line);
  padding: 16px;
  display: none;
}
.cookie-banner.is-open { display: block; }
.cookie-banner__inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  justify-content: space-between;
}
.cookie-banner__text { font-size: 14px; color: var(--ink-2); margin: 0; }
.cookie-banner__buttons { display: flex; gap: 8px; }

/* ╭───────────────────────────────────────────╮
   │ Animaciones de entrada                    │
   ╰───────────────────────────────────────────╯ */
.fade-up { opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s; }
.fade-up.is-visible { opacity: 1; transform: none; }

/* ╭───────────────────────────────────────────╮
   │ Misc                                      │
   ╰───────────────────────────────────────────╯ */
.serif-em { font-family: var(--font-serif); font-style: italic; color: var(--accent); }
.outline-text {
  -webkit-text-stroke: 1px var(--ink-3);
  color: transparent;
}
.no-break { white-space: nowrap; }
