/* ══════════════════════════════════════════════════════════
   SELLVORA — Sistema de diseño compartido
   Usado por todas las páginas del sitio. La paleta vive en :root;
   las secciones claras (.section-light) reasignan las variables.
   ══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Paleta Sellvora (fuente única de verdad) ── */
  --fondo-oscuro: #0A0F1D;      /* azul noche, fondo principal */
  --morado-oscuro: #2A1554;     /* final del degradado de marca */
  --acento: #7C3AED;            /* violeta: botones, íconos, elementos grandes (NO texto pequeño sobre oscuro) */
  --acento-claro: #9F62F0;      /* violeta claro: texto de acento sobre fondo oscuro */
  --claro: #F4F1EA;             /* marfil: titulares sobre oscuro y fondo de secciones claras */
  --blanco: #FFFFFF;
  --tarjeta: #1C212D;           /* gris carbón: tarjetas sobre fondo oscuro */
  --gris-texto: #A2A1A2;        /* texto secundario SOLO sobre fondos oscuros */
  --gris-texto-claro: #555A66;  /* texto secundario sobre fondos claros */
  --degradado-marca: linear-gradient(135deg, var(--fondo-oscuro) 0%, var(--fondo-oscuro) 35%, var(--morado-oscuro) 100%);
  /* Derivados (tonos de apoyo calculados a partir de la paleta) */
  --acento-hover: #6D28D9;      /* hover de botones: blanco sobre este tono = 7.1:1 */

  /* ── Nombres heredados que usa el resto de la hoja (apuntan a la paleta) ── */
  --navy-900: #070A14;          /* footer y menú móvil: un punto más oscuro que el fondo */
  --navy-800: var(--fondo-oscuro);
  --navy-700: #121828;          /* superficies internas (campos, nodos) */
  --navy-600: var(--tarjeta);
  --navy-500: #2C3242;          /* líneas y puntos inactivos */
  --teal:     var(--acento);    /* "teal" = color de acción (botones, bordes activos) */
  --teal-dim: var(--acento-hover);
  --teal-glow: rgba(124,58,237,0.14);
  --teal-glow-strong: rgba(124,58,237,0.24);
  --icon: var(--acento-claro);  /* íconos sobre oscuro (4.2:1 sobre tarjeta; mínimo para íconos 3:1) */
  --white:    var(--claro);     /* texto principal */
  --gray-200: #DCD8CF;
  --gray-400: var(--gris-texto);
  --gray-500: var(--gris-texto);
  --border:   rgba(244,241,234,0.09);
  --accent-text: var(--acento-claro); /* texto de acento (en secciones claras pasa a --acento) */
  /* Superficies claras */
  --section-dark: var(--fondo-oscuro);
  --section-grey: var(--claro);
  --section-grey-top: #F6F4EF;
  --section-grey-bottom: #F1EDE5;
  --glow-aqua: rgba(124,58,237,0.07);   /* resplandor tenue en esquinas */
  --light-bg: var(--section-grey);
  --surface-aqua: #F1ECFB;              /* lavanda: hover de tarjetas sobre claro */
  --surface-aqua-2: var(--blanco);
  --surface-aqua-hover: #F1ECFB;
  --surface-aqua-grad: linear-gradient(150deg, var(--blanco), #FAF8F3);
  --field-bg: var(--navy-700);          /* campos de formulario (blanco en secciones claras) */
  --link-text: var(--acento-claro);     /* links pequeños */
  --danger:   #F87171;
  --danger-soft: #FCA5A5;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
::selection { background: var(--acento); color: var(--blanco); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
body.nav-open { overflow: hidden; }

body {
  background: var(--navy-800);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── UTILITIES ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.teal { color: var(--accent-text); }
.label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: inline-block;
  margin-bottom: 16px;
}
.section { padding: 100px 0; position: relative; z-index: 1; }
.section-alt { background: var(--section-dark); }
.section-tight { padding: 64px 0; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}
nav.scrolled {
  background: rgba(10,15,29,0.85);
  backdrop-filter: blur(16px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--teal), var(--morado-oscuro));
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 18px; height: 18px; fill: white; }
.nav-logo-img { height: 26px; width: auto; display: block; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-link,
.nav-dd-btn {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-link:hover, .nav-dd-btn:hover, .nav-dd.open .nav-dd-btn { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active, .nav-dd-btn.active { color: var(--white); }
.nav-link.active::after { transform: scaleX(1); }

/* Desplegables: panel ancho con tarjetas */
.nav .container, nav .container { position: relative; }
.nav-links > li { display: flex; align-items: center; }
.nav-menu { flex: 1; display: flex; align-items: center; gap: 32px; }
.nav-menu .nav-links { margin: 0 auto; }
.nav-dd { position: static; }
.nav-dd-btn {
  background: none;
  border: 0;
  padding: 8px 0;
  font-family: var(--font-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-dd-btn::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-dd-btn.active::after { transform: scaleX(1); }
.nav-dd-chevron {
  width: 10px; height: 10px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s var(--ease-out);
}
.nav-dd.open .nav-dd-chevron { transform: rotate(180deg); }
.nav-dd-menu {
  --nd-title: var(--fondo-oscuro);
  --nd-desc: var(--gris-texto-claro);
  --nd-border: rgba(10,15,29,0.10);
  --nd-card: var(--surface-aqua-2);
  --nd-card-hover: var(--surface-aqua-hover);
  --nd-link: var(--acento);
  position: absolute;
  top: calc(100% + 18px);
  left: 24px; right: 24px;
  padding: 20px;
  background: var(--surface-aqua-grad);
  border: 1px solid rgba(10,15,29,0.10);
  border-radius: 18px;
  box-shadow: 0 32px 64px -24px rgba(0,0,0,0.55), 0 4px 12px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0s linear 0.22s;
}
/* Puente invisible para no perder el hover entre el botón y el panel */
.nav-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -26px; height: 26px; }
.nav-dd.open .nav-dd-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0s;
}
.nav-dd-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 12px; }
.nav-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: var(--nd-card);
  border: 1px solid var(--nd-border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.nav-card:hover, .nav-card:focus-visible {
  background: var(--nd-card-hover);
  border-color: rgba(124,58,237,0.7);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -14px rgba(10,15,29,0.25);
}
.nav-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(124,58,237,0.14);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-card-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--acento); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-card-text { display: flex; flex-direction: column; gap: 4px; }
.nav-card-title { font-size: 15px; font-weight: 700; color: var(--nd-title); line-height: 1.3; }
.nav-card-desc { font-size: 13px; color: var(--nd-desc); line-height: 1.5; }
.nav-card[aria-current="page"] { border-color: var(--teal); }
.nav-card[aria-current="page"] .nav-card-title { color: var(--nd-link); }
.nav-dd-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--nd-border); }
.nav-dd-foot a { font-size: 13px; font-weight: 600; color: var(--nd-link); text-decoration: none; }
.nav-dd-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Botón hamburguesa (solo móvil) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}
nav.open .nav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
nav.open .nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.btn-nav {
  background: var(--teal);
  color: var(--blanco);
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--acento-hover); transform: translateY(-1px); }
/* Sin transición: el blur crearía un contenedor que recorta el panel fijo */
nav.open { background: var(--navy-900); backdrop-filter: none; transition: none; }

/* ══════════════════════════════════════
   HERO (interior — módulos)
══════════════════════════════════════ */
.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse at center, var(--teal-glow-strong) 0%, transparent 65%);
  pointer-events: none;
}
.hero-geo-1 {
  position: absolute;
  top: 80px; right: -60px;
  width: 420px; height: 180px;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(159,98,240,0.06));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%);
  pointer-events: none;
}
.hero-geo-3 {
  position: absolute;
  bottom: 20px; left: -40px;
  width: 500px; height: 120px;
  background: linear-gradient(90deg, rgba(124,58,237,0.1), transparent);
  clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.breadcrumb {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 18px;
  position: relative; z-index: 2;
}
.breadcrumb a { color: var(--gray-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-text); }
.breadcrumb span { color: var(--gray-400); }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 66px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-text);
}
.hero-sub {
  font-size: 18px;
  color: var(--gray-400);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 40px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn-primary {
  background: var(--teal);
  color: var(--blanco);
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover {
  background: var(--acento-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.6);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--accent-text);
  transform: translateY(-2px);
}
.hero-note {
  font-size: 13px;
  color: var(--gray-500);
}
.hero-note span { color: var(--gray-400); }

/* Hero de Home: pantalla completa, sin breadcrumb */
.hero.hero-home {
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 0;
}

/* ══════════════════════════════════════
   MÓDULOS (hub de Home)
══════════════════════════════════════ */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.module-grid.module-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.module-card {
  background: var(--navy-600);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  text-decoration: none;
  display: block;
  text-align: left;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.module-card:hover {
  border-color: rgba(124,58,237,0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.6);
}
.module-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--teal-glow);
  border: 1px solid rgba(124,58,237,0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.module-icon svg { width: 22px; height: 22px; stroke: var(--icon); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.module-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 10px;
}
.module-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.module-tag { font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--gray-400); letter-spacing: 0; text-transform: none; }
.module-desc { font-size: 14px; color: var(--gray-400); line-height: 1.65; margin-bottom: 22px; margin-top: 6px; }
.module-link { font-size: 13px; color: var(--accent-text); font-weight: 700; }

/* ══════════════════════════════════════
   MÉTRICAS (barra completa y mini)
══════════════════════════════════════ */
.metrics {
  background: var(--section-dark);
  padding: 52px 0;
  position: relative;
  z-index: 1;
}
.metrics.mini { padding: 36px 0; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.metrics-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.metric-item {
  text-align: center;
  padding: 12px 20px;
  position: relative;
}
.metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border);
}
.metric-num {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--accent-text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.metric-label {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════
   BLOQUE PROBLEMA / EXPLICATIVO CENTRADO
══════════════════════════════════════ */
.problem-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.section-body {
  font-size: 17px;
  color: var(--gray-400);
  line-height: 1.75;
  margin-bottom: 36px;
}
.quote-block {
  border-left: 3px solid var(--teal);
  padding: 16px 24px;
  background: var(--teal-glow);
  border-radius: 0 6px 6px 0;
  text-align: left;
  font-size: 16px;
  color: var(--gray-200);
  font-style: italic;
  display: inline-block;
  margin-top: 8px;
}

/* "¿Qué es esto?" — explicación en 3 pasos simples */
.explainer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  text-align: left;
}
.explainer-card {
  background: var(--navy-600);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px 24px;
}
.explainer-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-text);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.explainer-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.explainer-desc { font-size: 14px; color: var(--gray-400); line-height: 1.6; }

/* ══════════════════════════════════════
   SERVICIOS (grid dos columnas)
══════════════════════════════════════ */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.service-grid.reverse { direction: rtl; }
.service-grid.reverse > * { direction: ltr; }

.service-copy { }
.service-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.service-sub {
  font-size: 16px;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Cards de beneficios */
.benefit-cards { display: flex; flex-direction: column; gap: 14px; }
.benefit-card {
  background: var(--navy-600);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.benefit-card:hover {
  border-color: rgba(124,58,237,0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -12px rgba(0,0,0,0.55);
}
.benefit-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--teal-glow);
  border: 1px solid rgba(124,58,237,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.benefit-icon svg { width: 18px; height: 18px; stroke: var(--icon); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefit-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.benefit-desc { font-size: 13px; color: var(--gray-400); line-height: 1.55; }

/* Steps */
.steps { margin-top: 36px; }
.steps-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 16px;
}
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 16px;
  position: relative;
}
.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 14px; top: 30px; bottom: 0;
  width: 1px;
  background: var(--border);
}
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--teal-glow);
  border: 1px solid rgba(124,58,237,0.3);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-text);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-text { font-size: 14px; color: var(--gray-400); line-height: 1.55; padding-top: 4px; }
.step-text strong { color: var(--white); }

.service-cta { margin-top: 36px; }

/* Logos de clientes */
.client-logos { margin-top: 36px; }
.client-logos-label { font-size: 12px; color: var(--gray-500); margin-bottom: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
.logo-row { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.logo-pill {
  background: var(--navy-600);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 0.05em;
  transition: border-color 0.2s, color 0.2s;
}
.logo-pill:hover { border-color: rgba(124,58,237,0.3); color: var(--white); }

/* ══════════════════════════════════════
   MODELO (diagrama de flujo)
══════════════════════════════════════ */
.model-inner { text-align: center; max-width: 800px; margin: 0 auto; }
.model-inner.large { max-width: 920px; }
.model-inner.large .section-h2 { font-size: clamp(32px, 4.4vw, 52px); }
.model-inner.large .section-body { font-size: 18px; }
.model-inner.large .model-node { padding: 32px 34px; }
.model-inner.large .model-node-title { font-size: 15px; }
.model-inner.large .model-node-sub { font-size: 12px; }
.model-inner.large .model-node-icon svg { width: 30px; height: 30px; }
.model-inner.large .model-tagline { font-size: 23px; }
.model-diagram {
  margin: 56px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 680px;
}
.model-node {
  background: var(--navy-600);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 28px;
  text-align: center;
  flex: 1;
  transition: border-color 0.25s;
}
.model-node:hover { border-color: rgba(124,58,237,0.35); }
.model-node.center {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(159,98,240,0.1));
  border-color: rgba(124,58,237,0.35);
  padding: 28px 32px;
  z-index: 2;
}
.model-node-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.model-node-icon svg { width: 26px; height: 26px; stroke: var(--icon); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.model-node-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.model-node-sub { font-size: 12px; color: var(--gray-400); }
.model-arrow {
  color: var(--accent-text);
  font-size: 22px;
  padding: 0 8px;
  flex-shrink: 0;
}
.model-tagline {
  margin-top: 52px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-200);
}
.model-tagline em { font-style: normal; color: var(--accent-text); }

/* ══════════════════════════════════════
   CARRUSEL DE LOGOS
══════════════════════════════════════ */
.logos-marquee {
  padding: 52px 0;
  background: var(--section-dark);
  position: relative;
  z-index: 1;
}
.logos-marquee-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 32px;
}
.logos-track-wrap {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
/* El track tiene dos mitades idénticas y se desplaza -50% → 0. Para que el bucle no salte,
   el espacio entre tarjetas va como margen derecho (no gap): así cada mitad mide exactamente lo mismo.
   La duración la fija cada track (--marquee-duration) según su largo, para mantener la misma velocidad. */
.logos-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logos-scroll var(--marquee-duration, 40s) linear infinite;
}
.logos-track > .logo-card { margin-right: var(--logo-gap); }
/* Logos: todas las cajas miden exactamente lo mismo.
   Cada <img> trae su tamaño calculado (--w, --h) para que todos tengan un peso visual parecido;
   se ajusta en el HTML o regenerando con el script de logos. */
:root {
  --logo-box-w: 176px;
  --logo-box-h: 80px;
  --logo-box-pad: 14px;
  --logo-gap: 24px;
  --logo-scale: 1;
}
.logo-card {
  box-sizing: border-box;
  width: var(--logo-box-w);
  height: var(--logo-box-h);
  padding: var(--logo-box-pad);
  background: #FFFFFF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-card img {
  display: block;
  width: calc(var(--w, 100px) * var(--logo-scale));
  height: calc(var(--h, 30px) * var(--logo-scale));
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@media (max-width: 600px) {
  :root { --logo-box-w: 140px; --logo-box-h: 64px; --logo-box-pad: 11px; --logo-gap: 16px; --logo-scale: 0.8; }
}
@keyframes logos-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0%); }
}
@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; }
}

/* ══════════════════════════════════════
   ALIADOS INSTITUCIONALES
══════════════════════════════════════ */
.partners-inner { text-align: center; }
.partners-logos {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 44px;
}
.partner-logo {
  background: var(--navy-600);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 28px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.partner-logo:hover {
  border-color: rgba(124,58,237,0.4);
  color: var(--white);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   PRENSA
══════════════════════════════════════ */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.press-card {
  background: var(--navy-700);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  display: block;
}
.press-card:hover {
  border-color: rgba(124,58,237,0.25);
  transform: translateY(-3px);
}
.press-outlet {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 10px;
}
.press-quote {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.6;
  font-style: italic;
}
.press-link {
  margin-top: 14px;
  font-size: 12px;
  color: var(--accent-text);
  font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}

/* ══════════════════════════════════════
   CROSS-SELL (otros módulos)
══════════════════════════════════════ */
.crosssell-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.crosssell-card {
  background: var(--navy-600);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, transform 0.2s;
}
.crosssell-card:hover {
  border-color: rgba(124,58,237,0.35);
  transform: translateY(-3px);
}
.crosssell-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 10px;
}
.crosssell-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.crosssell-desc { font-size: 13px; color: var(--gray-400); line-height: 1.6; margin-bottom: 14px; }
.crosssell-link { font-size: 13px; color: var(--accent-text); font-weight: 700; }

/* ══════════════════════════════════════
   EQUIPO
══════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}
.team-card {
  background: var(--navy-700);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px;
  text-align: center;
}
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-glow-strong), var(--navy-500));
  border: 2px solid rgba(124,58,237,0.3);
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-text);
}
.team-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.team-role {
  font-size: 12px;
  color: var(--accent-text);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.team-bullets { list-style: none; }
.team-bullets li {
  font-size: 13px;
  color: var(--gray-400);
  padding: 4px 0;
  border-top: 1px solid var(--border);
}
.team-bullets li:first-child { border-top: none; }

/* Banda horizontal de equipo (página Nosotros) */
.team-band-grid {
  display: flex;
  margin-top: 56px;
  gap: 0;
  align-items: flex-start;
}
.team-member {
  flex: 1;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 4px 32px;
}
.team-member:not(:first-child) { border-left: 1px dotted rgba(124,58,237,0.3); }
.team-member:first-child { padding-left: 0; }
.team-member:last-child { padding-right: 0; }
.team-avatar-photo {
  width: 76px; height: 76px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-600);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  border: 3px solid var(--teal);
  overflow: hidden;
}
.team-avatar-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.team-member.ring-green .team-avatar-photo { border-color: #4ADE80; }
.team-member.ring-teal .team-avatar-photo { border-color: var(--teal); }
.team-member.ring-blue .team-avatar-photo { border-color: #38BDF8; }
/* Foto real: el anillo de color ya viene incluido en la imagen */
.team-avatar-photo.photo { border: none; background: transparent; }
.team-member-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}
.team-member-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: 12px;
}
.team-member-bullets { list-style: none; }
.team-member-bullets li {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ══════════════════════════════════════
   HOME — bloque introductorio secundario
══════════════════════════════════════ */
.intro-cta {
  background: var(--section-dark);
  padding: 100px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}
.intro-cta-inner { max-width: 700px; margin: 0 auto; }
.intro-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 18px;
}
.intro-cta p {
  font-size: 16px;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ══════════════════════════════════════
   CTA FINAL
══════════════════════════════════════ */
.cta-final {
  background: var(--section-dark);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, var(--teal-glow) 0%, transparent 60%);
  pointer-events: none;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.cta-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.cta-copy p { font-size: 16px; color: var(--gray-400); line-height: 1.7; }

/* Formulario */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
/* Los select con opciones largas no deben ensanchar la grilla en móvil */
.cta-inner > *, .form-row > *, .form-group { min-width: 0; }
.form-group input, .form-group select, .form-group textarea { width: 100%; max-width: 100%; text-overflow: ellipsis; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--gray-400); letter-spacing: 0.04em; }
.form-group input,
.form-group select {
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group textarea {
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
  min-height: 96px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: rgba(124,58,237,0.5); }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A2A1A2' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.btn-submit {
  background: var(--teal);
  color: var(--blanco);
  padding: 14px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 4px;
  width: 100%;
}
.btn-submit:hover {
  background: var(--acento-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.6);
}
.form-note { font-size: 12px; color: var(--gray-400); text-align: center; margin-top: 4px; }
.form-fields { display: flex; flex-direction: column; gap: 14px; }
.form-fields[hidden], .form-success[hidden] { display: none; }
.form-optional { font-weight: 400; color: var(--gray-500); letter-spacing: 0; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--gray-500); }
.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { font-size: 12px; color: var(--danger-soft); line-height: 1.4; }
.form-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 10px;
  row-gap: 6px;
  align-items: start;
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.5;
}
.form-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--teal); cursor: pointer; }
.form-check label { cursor: pointer; }
.form-check a { color: var(--accent-text); text-underline-offset: 3px; }
.form-check .field-error { grid-column: 2; }
.btn-submit:active { transform: translateY(0); }
.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 40px 32px;
  background: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: 8px;
  animation: form-success-in 0.5s var(--ease-out);
}
.form-success svg {
  width: 44px; height: 44px; padding: 10px;
  border-radius: 50%;
  background: var(--teal-glow-strong);
  fill: none; stroke: var(--icon); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.form-success-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; outline: none; }
.form-success p { font-size: 15px; color: var(--gray-400); line-height: 1.6; }
.form-reset {
  margin-top: 8px;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@keyframes form-success-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  background: var(--navy-900);
  padding: 60px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-brand-logo { height: 22px; width: auto; display: block; margin-bottom: 14px; }
.footer-tagline { font-size: 13px; color: var(--gray-400); line-height: 1.6; margin-bottom: 16px; }
.footer-nit { font-size: 12px; color: var(--gray-400); margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400);
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: rgba(124,58,237,0.4); color: var(--accent-text); }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }
.footer-col-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--gray-400); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 12px; color: var(--gray-400); }
.footer-email { font-size: 12px; color: var(--accent-text); text-decoration: none; }
.footer-email:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: -1;
    padding: 96px 24px 32px;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
  }
  nav.open .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s;
  }
  .nav-menu .nav-links { flex-direction: column; gap: 0; margin: 0; }
  .nav-menu { flex: none; }
  .nav-links > li { display: block; border-bottom: 1px solid var(--border); }
  .nav-link, .nav-dd-btn {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 18px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
  }
  .nav-link::after { display: none; }
  .nav-link.active, .nav-dd-btn.active { color: var(--accent-text); }
  .nav-dd-chevron { width: 14px; height: 14px; }
  .nav-dd-btn { padding: 18px 0; }
  .nav-dd-btn::after { display: none; }
  .nav-dd-menu {
    --nd-title: #FFFFFF;
    --nd-desc: var(--gray-400);
    --nd-border: var(--border);
    --nd-card: transparent;
    --nd-card-hover: var(--navy-600);
    --nd-link: var(--acento-claro);
    position: static;
    padding: 0 0 12px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav-dd-menu::before { display: none; }
  .nav-dd.open .nav-dd-menu { display: block; }
  .nav-dd-grid { grid-template-columns: 1fr; gap: 2px; }
  .nav-card { flex-direction: row; align-items: flex-start; gap: 14px; padding: 12px 8px; border-color: transparent; }
  .nav-card:hover, .nav-card:focus-visible { transform: none; box-shadow: none; border-color: transparent; }
  .nav-card[aria-current="page"] { border-color: transparent; }
  .nav-card-icon { width: 36px; height: 36px; background: rgba(124,58,237,0.14); }
  .nav-card-icon svg { stroke: var(--acento-claro); }
  .nav-dd-foot { margin-top: 6px; padding: 12px 8px 0; }
  .btn-nav { margin-left: auto; padding: 10px 14px; font-size: 12px; }
  nav .container { padding: 0 16px; }
  .nav-inner { gap: 10px; }
  .nav-toggle { margin-right: -10px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .metric-item:nth-child(2)::after { display: none; }
  .service-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-grid.reverse { direction: ltr; }
  .explainer-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .model-diagram { flex-direction: column; gap: 8px; }
  .model-arrow { transform: rotate(90deg); }
  .press-grid { grid-template-columns: 1fr 1fr; }
  .crosssell-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-band-grid { flex-direction: column; gap: 32px; }
  .team-member { border-left: none !important; padding: 0 !important; }
  .cta-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .section-tight { padding: 48px 0; }
  .hero { min-height: auto; padding: 130px 0 60px; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; justify-content: center; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .press-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-member { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .intro-cta { padding: 72px 0; }
}

/* ══════════════════════════════════════
   CONTENIDO PENDIENTE (visible solo mientras se consigue el texto real)
══════════════════════════════════════ */
.pendiente {
  display: inline-block;
  padding: 2px 8px;
  border: 1px dashed rgba(251,191,36,0.55);
  border-radius: 4px;
  background: rgba(251,191,36,0.08);
  color: #FCD34D;
  font-size: max(0.85em, 12px);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}
.pendiente-block {
  display: block;
  padding: 14px 16px;
  line-height: 1.5;
}

/* ══════════════════════════════════════
   UTILIDADES COMPARTIDAS
══════════════════════════════════════ */
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--teal);
  color: var(--blanco);
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 16px; }
.btn-link {
  display: inline-flex;
  align-items: center;
  padding: 14px 4px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(124,58,237,0.5);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.btn-link:hover { color: var(--accent-text); text-decoration-color: var(--teal); }
.btn-primary:active, .btn-secondary:active, .btn-nav:active { transform: translateY(0) scale(0.98); }

/* ══════════════════════════════════════
   HOME
══════════════════════════════════════ */
.home-h2 { text-wrap: balance; max-width: 18ch; }

/* Hero */
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: min(100dvh, 880px);
  display: flex;
  align-items: center;
  padding: 128px 0 80px;
}
.home-hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 900px; height: 800px;
  background: radial-gradient(ellipse at center, var(--teal-glow-strong) 0%, transparent 62%);
  pointer-events: none;
}
.home-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 72px;
  align-items: center;
}
.home-hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin-bottom: 24px;
}
.home-hero-title em { font-style: normal; color: var(--accent-text); }
.home-hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--gray-400);
  max-width: 34em;
  text-wrap: pretty;
  margin-bottom: 36px;
}
.home-hero-ctas { margin-bottom: 0; align-items: center; gap: 20px; }

/* Diagrama de flujo del hero */
.alliance {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.alliance-node {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--navy-700);
  box-shadow: 0 18px 36px -24px rgba(0,0,0,0.9);
}
.alliance-kicker { font-size: 12px; font-weight: 500; color: var(--accent-text); }
.alliance-title { font-size: 17px; font-weight: 600; color: var(--white); }
.alliance-sub { font-size: 13px; color: var(--gray-400); }
.alliance-node--core {
  align-items: center;
  text-align: center;
  padding: 22px 20px;
  border-color: rgba(124,58,237,0.45);
  background: linear-gradient(180deg, rgba(124,58,237,0.12), rgba(124,58,237,0.04)), var(--navy-800);
}
.alliance-logo { height: 24px; width: auto; margin-bottom: 6px; }
.alliance-link {
  position: relative;
  height: 40px;
  width: 1px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(124,58,237,0.15), rgba(124,58,237,0.5));
}
.alliance-link span {
  position: absolute;
  left: -3px; top: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0;
}
.alliance-dots {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  margin-top: 14px;
}
.alliance-dots i {
  display: block;
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--navy-500);
}

@media (prefers-reduced-motion: no-preference) {
  /* Un pulso baja por el diagrama y enciende la red, en un ciclo lento */
  .alliance-link span { animation: alliance-flow 3.6s var(--ease-out) infinite; }
  .alliance-link ~ .alliance-link span { animation-delay: 0.9s; }
  .alliance-dots i { animation: alliance-light 3.6s ease-in-out infinite; }
  .alliance-dots i:nth-child(3n+1) { animation-delay: 1.5s; }
  .alliance-dots i:nth-child(3n+2) { animation-delay: 1.8s; }
  .alliance-dots i:nth-child(3n)   { animation-delay: 2.1s; }
  .home-hero-copy > * { animation: hero-in 0.8s var(--ease-out) both; }
  .home-hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .home-hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .alliance { animation: hero-in 0.9s var(--ease-out) 0.2s both; }
}
@keyframes alliance-flow {
  0%   { transform: translateY(0); opacity: 0; }
  15%  { opacity: 1; }
  60%  { transform: translateY(33px); opacity: 1; }
  75%, 100% { transform: translateY(33px); opacity: 0; }
}
@keyframes alliance-light {
  0%, 35%   { background: var(--navy-500); }
  55%, 80%  { background: var(--teal); }
  100%      { background: var(--navy-500); }
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* Productos: bento asimétrico */
.product-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  margin-top: 48px;
}
.product-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px;
  background: var(--navy-700);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.product-tile:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-3px); }
.product-tile--feature {
  grid-row: span 2;
  padding: 40px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(124,58,237,0.14), transparent 60%),
    var(--navy-700);
}
.product-audience { font-size: 13px; font-weight: 500; color: var(--gray-400); }
.product-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.product-tile--feature .product-name { font-size: clamp(32px, 3.4vw, 44px); }
.product-desc { font-size: 15px; line-height: 1.65; color: var(--gray-400); max-width: 42ch; }
.product-tile--feature .product-desc { font-size: 17px; }
.product-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-200);
}
.product-flow span {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--navy-800);
}
.product-flow span.is-marca { border-color: rgba(124,58,237,0.45); color: var(--accent-text); }
.product-flow i { display: block; width: 18px; height: 1px; background: rgba(124,58,237,0.5); }
.product-points { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.product-points li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.55; color: var(--gray-400); }
.product-points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 1px; background: var(--teal); }
.product-points strong { color: var(--gray-200); font-weight: 600; }
.product-tile--feature .product-flow { margin-top: auto; padding-top: 32px; font-size: 13px; }
.product-link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
}
.product-tile--feature .product-link { margin-top: 20px; }

/* Modelo + beneficios */
.home-model-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.home-model-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray-400);
  max-width: 34em;
  margin-top: 16px;
}
.benefit-list { list-style: none; }
.benefit-list li { padding: 26px 0; border-top: 1px solid var(--border); }
.benefit-list li:first-child { border-top: 0; padding-top: 8px; }
.benefit-list h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.benefit-list p { font-size: 15px; line-height: 1.6; color: var(--gray-400); }

/* Testimonios: columnas desfasadas */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  margin-top: 48px;
}
.testimonial-grid .testimonial:nth-child(2) { margin-top: 48px; }
.testimonial {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  background: var(--navy-700);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.testimonial-product { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.testimonial blockquote { font-size: 17px; line-height: 1.55; color: var(--white); }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--gray-400); }
.testimonial figcaption strong { display: block; color: var(--white); font-weight: 600; }
.testimonial-avatar {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px dashed rgba(251,191,36,0.55);
  background: rgba(251,191,36,0.06);
}

/* Respaldo institucional */
.home-funders {
  position: relative;
  z-index: 1;
  padding: 56px 0;
  background: var(--section-dark);
}
.home-funders-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.home-funders-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  max-width: 17em;
  text-wrap: balance;
}
.funder-logos { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; }
/* Franja de fondeadores: cajas iguales entre sí, un poco más compactas para que las 4 quepan en una fila */
.funder-logos { --logo-box-w: 160px; --logo-box-h: 72px; --logo-box-pad: 12px; --logo-scale: 0.9; gap: 12px; }
@media (min-width: 901px) { .funder-logos { flex-wrap: nowrap; } }

/* Prensa */
.home-press-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.press-feature { margin: 0; }
.press-feature blockquote {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.press-feature figcaption { margin-top: 24px; }
.press-feature figcaption a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.press-feature figcaption a:hover { text-decoration: underline; text-underline-offset: 4px; }
.press-list-title { font-size: 15px; font-weight: 600; color: var(--gray-400); margin-bottom: 8px; }
.press-list ul { list-style: none; margin-bottom: 8px; }
.press-list li { border-top: 1px solid var(--border); }
.press-list li a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  text-decoration: none;
}
.press-list li a strong { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.press-list li a span { font-size: 15px; line-height: 1.5; color: var(--gray-200); transition: color 0.2s; }
.press-list li a:hover span { color: var(--white); }

@media (max-width: 900px) {
  .home-hero { min-height: 0; padding: 120px 0 64px; }
  .home-hero-grid, .home-model-grid, .home-press-grid { grid-template-columns: 1fr; gap: 48px; }
  .product-bento { grid-template-columns: 1fr; }
  .product-tile--feature { grid-row: auto; padding: 32px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-grid .testimonial:nth-child(2) { margin-top: 0; }
  .home-funders-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
}
@media (max-width: 600px) {
  .home-hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .product-tile, .product-tile--feature { padding: 26px 22px; }
  .funder-logos { gap: 10px; }
}

/* ══════════════════════════════════════
   FOTOS
══════════════════════════════════════ */
/* Home: panel visual con el diagrama superpuesto */
.hero-media { position: relative; margin-left: 48px; }
.hero-media-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 600px;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 12px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9);
}
.alliance--overlay {
  position: absolute;
  left: -72px;
  bottom: 36px;
  width: 270px;
  padding: 14px;
  background: rgba(10,15,29,0.86);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.alliance--overlay .alliance-node { padding: 10px 12px; box-shadow: none; border-radius: 8px; }
.alliance--overlay .alliance-kicker { font-size: 12px; }
.alliance--overlay .alliance-title { font-size: 14px; }
.alliance--overlay .alliance-sub { font-size: 12px; }
.alliance--overlay .alliance-logo { height: 18px; margin-bottom: 2px; }
.alliance--overlay .alliance-node--core { padding: 10px 12px; }
.alliance--overlay .alliance-link { height: 18px; }
.alliance--overlay .alliance-dots { gap: 4px; margin-top: 8px; }
.alliance--overlay .alliance-dots i { border-radius: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .alliance--overlay .alliance-link span { animation-name: alliance-flow-short; }
}
@keyframes alliance-flow-short {
  0%   { transform: translateY(0); opacity: 0; }
  15%  { opacity: 1; }
  60%  { transform: translateY(11px); opacity: 1; }
  75%, 100% { transform: translateY(11px); opacity: 0; }
}
@media (prefers-reduced-transparency: reduce) {
  .alliance--overlay { background: var(--navy-800); backdrop-filter: none; }
}

/* Páginas de servicio: hero en dos columnas */
.hero--split .hero-split-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}
.hero--split h1 { font-size: clamp(34px, 4vw, 52px); text-wrap: balance; }
.hero--split .hero-sub { font-size: 17px; }
.hero-photo { margin: 0; }
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9);
}

/* Nota bajo el texto de los formularios */
.cta-rates {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px !important;
  line-height: 1.65;
  color: var(--gray-400);
  max-width: 34em;
}

@media (max-width: 900px) {
  .hero-media { margin-left: 0; }
  .hero-media-photo { aspect-ratio: 4 / 3; max-height: none; object-position: 50% 25%; }
  .alliance--overlay { position: relative; left: auto; bottom: auto; width: auto; margin: -48px 16px 0; }
  .hero--split .hero-split-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo img { aspect-ratio: 16 / 10; }
}

/* ══════════════════════════════════════
   WHATSAPP FLOTANTE
══════════════════════════════════════ */
.wa-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 90; /* debajo del menú (100), encima del contenido */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366; /* verde oficial de WhatsApp */
  color: #fff;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out), visibility 0s;
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float:hover { transform: translateY(-2px) scale(1.04); }
.wa-float:active { transform: scale(0.96); }
.wa-float:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 50%; }
.wa-float-label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transform: translate(6px, -50%);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.wa-float:hover .wa-float-label,
.wa-float:focus-visible .wa-float-label { opacity: 1; transform: translate(0, -50%); }
/* No tapar el menú móvil abierto */
body.nav-open .wa-float { opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0s linear 0.2s; }
@media (max-width: 900px) {
  .wa-float { width: 52px; height: 52px; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .wa-float svg { width: 28px; height: 28px; }
  /* En celular se oculta mientras un formulario está en pantalla, para no tapar sus botones */
  body.form-in-view .wa-float { opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.2s; }
}

/* ══════════════════════════════════════
   COMPONENTES COMPARTIDOS
══════════════════════════════════════ */
.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;
}
.hero.hero--compact { min-height: 0; padding: 150px 0 72px; }
.hero--compact h1 { font-size: clamp(32px, 4vw, 52px); text-wrap: balance; max-width: 24ch; }
.hero--compact .hero-ctas { margin-bottom: 0; align-items: center; gap: 20px; }

/* Selector por perfil */
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.profile-list { list-style: none; border-top: 1px solid var(--border); }
.profile-list li { border-bottom: 1px solid var(--border); }
.profile-list a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 48px 20px 4px;
  text-decoration: none;
  transition: background 0.25s;
}
.profile-list a > span { transition: transform 0.25s var(--ease-out); }
.profile-list a:hover > span { transform: translateX(10px); }
.profile-list a::after {
  content: "→";
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent-text);
  font-size: 18px;
  transition: transform 0.25s var(--ease-out);
}
.profile-list a:hover { background: rgba(124,58,237,0.04); }
.profile-list a:hover::after { transform: translate(4px, -50%); }
.profile-who { font-size: 17px; font-weight: 600; color: var(--white); line-height: 1.4; }
.profile-product { font-size: 13px; font-weight: 500; color: var(--accent-text); }

/* Catálogo de productos: filas con foto */
.catalog { display: flex; flex-direction: column; gap: 20px; margin-top: 48px; }
.catalog-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  background: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.catalog-photo { width: 100%; height: 100%; min-height: 300px; object-fit: cover; display: block; }
.catalog-body { display: flex; flex-direction: column; gap: 8px; padding: 36px 40px; }
.catalog-name { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.catalog-desc { font-size: 16px; line-height: 1.65; color: var(--gray-400); max-width: 46ch; }
.catalog-body .product-points { margin-top: 10px; }
.catalog-body .product-link { margin-top: 16px; text-decoration: none; align-self: flex-start; }
.catalog-body .product-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Tabla comparativa */
.compare {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare-table th, .compare-table td { padding: 18px 22px; text-align: left; vertical-align: top; line-height: 1.55; }
.compare-table thead th, .compare-table thead td { background: var(--navy-700); border-bottom: 1px solid var(--border); }
.compare-table thead th { font-family: var(--font-display); font-size: 18px; font-weight: 700; width: 27%; }
.compare-table thead a { color: var(--white); text-decoration: none; }
.compare-table thead a:hover { color: var(--accent-text); }
.compare-table tbody th { width: 19%; font-size: 13px; font-weight: 600; color: var(--gray-400); }
.compare-table tbody td { color: var(--gray-200); }
.compare-table tbody tr + tr > * { border-top: 1px solid var(--border); }
.compare-table tbody td + td, .compare-table thead th + th { border-left: 1px solid var(--border); }
.compare-note { margin-top: 20px; font-size: 14px; color: var(--gray-400); }
.compare-note a { color: var(--accent-text); text-underline-offset: 3px; }

/* Preguntas frecuentes: lista con revelado */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.faq-intro p { margin-top: 8px; font-size: 16px; line-height: 1.65; color: var(--gray-400); }
.faq-intro a { color: var(--accent-text); text-underline-offset: 3px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 10px; height: 10px;
  border-right: 1.6px solid var(--icon);
  border-bottom: 1.6px solid var(--icon);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease-out);
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { padding: 0 48px 24px 0; font-size: 15px; line-height: 1.7; color: var(--gray-400); max-width: 60ch; }

@media (max-width: 900px) {
  .hero.hero--compact { padding: 120px 0 56px; }
  .profile-grid, .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .catalog-item { grid-template-columns: 1fr; }
  .catalog-photo { min-height: 0; aspect-ratio: 16 / 9; }
  .catalog-body { padding: 26px 22px; }

  /* La tabla se vuelve una tarjeta por fila */
  .compare { border: 0; border-radius: 0; overflow: visible; }
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: 100%; }
  .compare-table tr {
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--navy-800);
  }
  .compare-table tbody tr + tr > * { border-top: 0; }
  .compare-table tbody th { width: 100%; padding: 14px 18px; background: var(--navy-700); color: var(--white); font-size: 14px; }
  .compare-table tbody td { padding: 12px 18px; border-left: 0 !important; border-top: 1px solid var(--border); }
  .compare-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-text);
  }
}

/* El hero es flex: el contenedor debe ocupar todo el ancho para alinearse con el resto de la página */
.hero > .container { width: 100%; }

/* ══════════════════════════════════════
   PÁGINAS DE PRODUCTO (plantilla común)
══════════════════════════════════════ */
.portal-link { margin-top: 14px; font-size: 14px; }
.portal-link a { color: var(--accent-text); font-weight: 500; text-decoration: none; }
.portal-link a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Pasos como lista ordenada (misma apariencia que .step) */
.steps-list { list-style: none; margin-top: 32px; }
.steps-list li { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 16px; position: relative; }
.steps-list li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 14px; top: 30px; bottom: 0;
  width: 1px;
  background: var(--border);
}
.steps-list .step-num { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.service-h2 em { font-style: normal; color: var(--accent-text); }

/* Pestañas por audiencia */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 8px 0 40px;
  background: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.tab {
  padding: 10px 18px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--gray-400);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s;
}
.tab:hover { color: var(--white); }
.tab[aria-selected="true"] { background: var(--teal); color: var(--blanco); }
.tab-panel[hidden] { display: none; }
.tab-panel:focus-visible { outline-offset: 8px; }
.tab-panels .tab-panel + .tab-panel { margin-top: 64px; } /* sin JS, los paneles se ven apilados */
.audience .benefit-card { background: var(--navy-800); }
.ally { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-size: 13px; color: var(--gray-400); }
.ally .logo-card { height: 48px; padding: 10px 20px; }

/* Caso de éxito */
.case {
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  background: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.case-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
  background: radial-gradient(120% 90% at 0% 0%, rgba(124,58,237,0.12), transparent 60%), var(--navy-700);
  border-right: 1px solid var(--border);
}
.case-metric { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); font-weight: 700; color: var(--accent-text); letter-spacing: -0.02em; }
.case-main { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 40px; }
.case-main blockquote { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; }
.case-main figcaption { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--gray-400); }
.case-main figcaption strong { display: block; color: var(--white); font-weight: 600; }

/* Tarjetas de "otros servicios" sin etiqueta */
.crosssell-grid { margin-top: 40px; }

/* ══════════════════════════════════════
   FORMULARIO POR PASOS
══════════════════════════════════════ */
.form-step { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.form-step[hidden] { display: none; }
.form-steps:not(.is-stepped) .form-step + .form-step { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.form-steps:not(.is-stepped) .form-next,
.form-steps:not(.is-stepped) .form-back { display: none; }
.form-progress {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.form-progress[hidden] { display: none; }
.form-progress li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 2px solid var(--navy-500);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  transition: border-color 0.3s var(--ease-out), color 0.3s;
}
.form-progress li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 12px;
}
.form-progress li.is-active { border-color: var(--teal); color: var(--white); }
.form-progress li.is-done { border-color: rgba(124,58,237,0.5); color: var(--gray-400); }
.form-nav { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.form-nav .btn-submit { flex: 1; width: auto; margin-top: 0; }
.form-back {
  padding: 14px 16px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--gray-200);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.form-back:hover { border-color: rgba(255,255,255,0.3); color: var(--white); }
@media (prefers-reduced-motion: no-preference) {
  .is-stepped .form-step:not([hidden]) { animation: step-in 0.35s var(--ease-out); }
}
@keyframes step-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; }
  .case-aside { border-right: 0; border-bottom: 1px solid var(--border); padding: 28px 22px; }
  .case-main { padding: 28px 22px; }
  .tabs { display: flex; }
  .tab { flex: 1; padding: 10px 8px; }
}

/* ══════════════════════════════════════
   NOSOTROS
══════════════════════════════════════ */
.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.mission-strong { display: block; color: var(--white); font-weight: 600; margin-bottom: 4px; }

.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  position: relative;
}
.timeline li { position: relative; display: flex; flex-direction: column; gap: 10px; }
.timeline li::before {
  content: "";
  position: absolute;
  top: -34px; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 2px solid var(--teal);
}
.timeline-year { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--accent-text); }
.timeline-text { font-size: 15px; line-height: 1.6; color: var(--gray-400); }

#equipo .team-band-grid { margin-top: 40px; }

.cta-double {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.cta-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 40px;
  background: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--white);
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.cta-panel:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-3px); }
.cta-panel h2 { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.02em; }
.cta-panel p { font-size: 16px; line-height: 1.65; color: var(--gray-400); max-width: 40ch; }
.cta-panel .product-link { margin-top: auto; padding-top: 12px; }

@media (max-width: 900px) {
  .mission-grid { grid-template-columns: 1fr; gap: 32px; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .cta-double { grid-template-columns: 1fr; }
  .cta-panel { padding: 28px 22px; }
}
@media (max-width: 600px) {
  .timeline { grid-template-columns: 1fr; border-top: 0; padding-top: 0; padding-left: 24px; border-left: 1px solid var(--border); row-gap: 28px; }
  .timeline li::before { top: 4px; left: -30px; }
}

/* ══════════════════════════════════════
   TRABAJA CON NOSOTROS
══════════════════════════════════════ */
.why-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 64px;
  margin-top: 40px;
}
.why-grid li { padding: 28px 0; border-top: 1px solid var(--border); }
.why-grid h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.why-grid p { font-size: 15px; line-height: 1.65; color: var(--gray-400); max-width: 44ch; }

.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
  counter-reset: none;
}
.process li { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--navy-500); }
.process li:first-child, .process li:last-child { border-top-color: var(--teal); }
.process-num { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--accent-text); }
.process h3 { font-size: 18px; font-weight: 600; }
.process p { font-size: 14px; line-height: 1.6; color: var(--gray-400); }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 28px; }
}
@media (max-width: 600px) {
  .process { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   CONTACTO
══════════════════════════════════════ */
.contact-page { border-top: 0; }
.cta-copy .contact-h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 16px; }
.cta-copy .contact-h2--direct { margin-top: 40px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px;
  text-align: left;
  background: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background 0.2s;
}
.choice:hover { border-color: rgba(124,58,237,0.4); }
.choice[aria-pressed="true"] { border-color: var(--teal); background: linear-gradient(180deg, rgba(124,58,237,0.12), rgba(124,58,237,0.04)), var(--navy-800); }
.choice-title { font-size: 15px; font-weight: 600; }
.choice-desc { font-size: 13px; color: var(--gray-400); }
.direct { list-style: none; border-top: 1px solid var(--border); }
.direct li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.direct li > span:first-child { font-size: 13px; font-weight: 600; color: var(--gray-400); padding-top: 1px; }
.direct a { color: var(--accent-text); text-decoration: none; }
.direct a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 600px) {
  .choices { grid-template-columns: 1fr; }
  .direct li { grid-template-columns: 1fr; gap: 2px; }
}

/* ══════════════════════════════════════
   MOVIMIENTO REDUCIDO (preferencia del sistema)
══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.visible { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.partners-inner--spaced { padding-top: 52px; }
.logos-marquee--plain { border: none; background: transparent; padding-top: 8px; }

/* Home: tres tarjetas de servicio iguales */
.product-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.product-cards .product-tile { padding: 32px 28px; }
.product-cards .product-link { margin-top: auto; padding-top: 20px; }
@media (max-width: 900px) { .product-cards { grid-template-columns: 1fr; } }
.home-model .home-h2 { max-width: 22ch; }

/* ══════════════════════════════════════
   COMPONENTES DE PÁGINAS DE SERVICIO
══════════════════════════════════════ */
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.use-modes { margin-top: 40px; }
.use-modes .cta-panel { cursor: default; }
.use-modes .cta-panel:hover { transform: none; border-color: var(--border); }
.cta-panel h3 { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.audience .why-grid { margin-top: 8px; }
.stat-card {
  margin: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 40px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(124,58,237,0.12), transparent 60%), var(--navy-700);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.stat-num { font-family: var(--font-display); font-size: clamp(56px, 7vw, 88px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--accent-text); }
.stat-card figcaption { font-size: 18px; line-height: 1.5; color: var(--gray-200); max-width: 26ch; }
#plataformas .product-audience { display: block; margin-bottom: 10px; color: var(--accent-text); font-weight: 600; }
.compare-diff {
  margin-top: 28px;
  padding: 28px 32px;
  background: var(--navy-700);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.compare-diff h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.compare-diff p { font-size: 15px; line-height: 1.7; color: var(--gray-400); max-width: 80ch; }
.compare-diff strong { color: var(--white); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } .stat-card { padding: 28px 22px; } .compare-diff { padding: 22px; } }

/* Página de preguntas frecuentes */
.faq-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.faq-jump a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-200);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}
.faq-jump a:hover { border-color: var(--teal); color: var(--accent-text); }
.faq-group { scroll-margin-top: 72px; }
.faq-help-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
/* CTA "¿Quieres hablar con un asesor?" (reemplaza la franja de preguntas frecuentes) */
.advisor-cta { padding: 48px 0; }
.advisor-cta-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px 28px; text-align: center; }
.advisor-cta-text { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; letter-spacing: -0.01em; color: var(--white); }
.nav-link, .nav-dd-btn { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1100px) {
  .nav-links, .nav-menu { gap: 20px; }
  .btn-nav { padding-left: 16px; padding-right: 16px; }
}
.explainer-card .benefit-icon { margin-bottom: 16px; }
#como-funciona .service-grid { margin-top: 40px; }

/* Testimonios en video (archivos propios, verticales 9:16) */
.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; }
.video-intro p { margin-top: 16px; font-size: 17px; line-height: 1.65; color: var(--gray-400); max-width: 44ch; }
.video-intro .video-person { margin-top: 24px; font-size: 15px; }
.video-person strong { color: var(--white); font-weight: 600; }
.video-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
@media (max-width: 900px) {
  .video-layout { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .video-intro h2, .video-intro p { margin-left: auto; margin-right: auto; }
}
.video-card { width: 320px; max-width: 100%; margin: 0; }
.video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--navy-900);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { padding: 0; background: none; cursor: pointer; }
.video-play-icon {
  position: absolute; top: 50%; left: 50%;
  width: 68px; height: 68px;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: transform 0.2s var(--ease-out);
}
.video-play-icon svg { width: 28px; height: 28px; margin-left: 4px; fill: var(--blanco); }
.video-play:hover .video-play-icon { transform: translate(-50%, -50%) scale(1.08); }
.video-play:focus-visible { outline: 2px solid var(--teal); outline-offset: -4px; }

#broker .profile-grid { align-items: center; }

/* Página de PQRS y enlace desde contacto */
.pqrs-wrap { max-width: 760px; margin: 0 auto; }
.pqrs-note { margin-top: 20px; text-align: center; font-size: 14px; }
.pqrs-note a { color: var(--gray-400); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 4px; transition: color 0.2s; }
.pqrs-note a:hover { color: var(--accent-text); text-decoration-color: var(--teal); }

/* Íconos de servicio y títulos en dos colores */
.hero-product-logo { display: block; height: 32px; width: auto; margin: 4px 0 18px; }
.product-icon { display: block; width: 48px; height: 48px; border-radius: 10px; margin-bottom: 6px; }
.crosssell-card .product-icon, .catalog-body .product-icon { margin-bottom: 14px; }
h2 em { font-style: normal; color: var(--accent-text); }

/* Espacios para imágenes: muestran un recuadro punteado mientras la foto no existe */
.img-slot { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.img-slot--wide { aspect-ratio: 16 / 10; }
.img-slot img, .hero-photo.img-slot img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 12px; }
.img-slot-label { display: none; }
.img-slot.is-missing { display: flex; align-items: center; justify-content: center; padding: 20px; border: 2px dashed rgba(255,255,255,0.22); background: rgba(255,255,255,0.02); }
.img-slot.is-missing img { display: none; }
.img-slot.is-missing .img-slot-label { display: block; font-size: 14px; color: var(--gray-400); text-align: center; overflow-wrap: anywhere; }
.profile-intro .img-slot, .faq-intro .img-slot { margin-top: 28px; }
.faq-group .faq-grid { align-items: center; }

/* Hover de acento en títulos. Solo con mouse. La parte que ya es de acento (<em>) no cambia. */
@media (hover: hover) and (pointer: fine) {
  h1, h2, h3:not(.form-success-title),
  .product-name, .crosssell-title, .explainer-title, .benefit-title,
  .alliance-title, .model-node-title, .profile-who, .team-member-name,
  .faq-list summary { transition: color 0.2s; }
  .profile-list a > .profile-who { transition: transform 0.25s var(--ease-out), color 0.2s; }

  h1:hover, h2:hover, h3:not(.form-success-title):hover,
  .product-tile:hover .product-name, .crosssell-card:hover .crosssell-title,
  .explainer-title:hover, .benefit-title:hover, .alliance-title:hover, .model-node-title:hover,
  .profile-list a:hover .profile-who, .team-member-name:hover,
  .faq-list summary:hover { color: var(--accent-text); }
}
/* Los títulos con animación de entrada conservan su transición y suman la del color */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(h1, h2, h3).reveal { transition: opacity 0.7s ease, transform 0.7s ease, color 0.2s; }
  :is(h1, h2, h3).reveal-delay-1 { transition-delay: 0.1s, 0.1s, 0s; }
  :is(h1, h2, h3).reveal-delay-2 { transition-delay: 0.2s, 0.2s, 0s; }
  :is(h1, h2, h3).reveal-delay-3 { transition-delay: 0.3s, 0.3s, 0s; }
  :is(h1, h2, h3).reveal-delay-4 { transition-delay: 0.4s, 0.4s, 0s; }
}

/* ══════════════════════════════════════
   TEMA CLARO (secciones alternadas: azul noche / marfil)
   .section-light reasigna las variables de color; todo lo que usa var(--white),
   var(--gray-*), var(--border) y var(--navy-*) se adapta solo.
   Superficies (tarjetas) = blanco sobre marfil; texto = azul noche.
   Violeta solo en botones, íconos y palabras clave; los links pequeños usan --link-text.
══════════════════════════════════════ */
.section-light {
  --white: var(--fondo-oscuro);      /* texto principal */
  --gray-200: #2B2F3A;
  --gray-400: var(--gris-texto-claro);
  --gray-500: var(--gris-texto-claro);
  --border: rgba(10,15,29,0.12);
  --navy-800: var(--blanco);         /* superficies internas */
  --navy-700: var(--blanco);         /* tarjetas */
  --navy-600: var(--blanco);
  --navy-500: #D3CDC0;
  --field-bg: var(--blanco);
  --teal-glow: rgba(124,58,237,0.10);
  --teal-glow-strong: rgba(124,58,237,0.16);
  --icon: var(--acento);             /* 5.7:1 sobre blanco */
  --accent-text: var(--acento);      /* 5.05:1 sobre marfil, 5.7:1 sobre blanco */
  --link-text: var(--acento-hover);  /* links pequeños: 6.3:1 sobre marfil */
  background: var(--section-grey);
  color: var(--white);
}
.cta-final.section-light, .intro-cta.section-light { background: var(--section-grey); }
.section-light .btn-secondary { border-color: rgba(10,15,29,0.28); }
.section-light .btn-secondary:hover { border-color: var(--fondo-oscuro); color: var(--fondo-oscuro); }
.section-light .btn-link { text-decoration-color: rgba(124,58,237,0.5); }
.section-light .btn-primary:hover, .section-light .btn-submit:hover { box-shadow: 0 10px 24px -10px rgba(10,15,29,0.35); }
.section-light .form-back:hover { border-color: rgba(10,15,29,0.4); }
.section-light .logo-card { border: 1px solid var(--border); } /* los logos de clientes siguen sobre blanco para verse bien */
.section-light .pendiente { color: #92400E; border-color: rgba(180,83,9,0.5); background: rgba(251,191,36,0.14); }
.section-light .img-slot.is-missing { border-color: rgba(10,15,29,0.25); background: rgba(10,15,29,0.03); }
.section-light .form-group input:focus,
.section-light .form-group select:focus,
.section-light .form-group textarea:focus { border-color: var(--fondo-oscuro); }
.section-light .field-error { color: #B91C1C; }
.section-light .form-group input[aria-invalid="true"],
.section-light .form-group select[aria-invalid="true"],
.section-light .form-group textarea[aria-invalid="true"] { border-color: #DC2626; }
/* Links pequeños: violeta oscuro legible */
.section-light :is(.portal-link a, .direct a, .compare-note a,
  .faq-intro a, .form-check a, .form-reset, .press-feature figcaption a, .draft-note a,
  .intro-cta p a, .article-back a) { color: var(--link-text); }
/* Tarjetas sobre gris: ver «TARJETAS SOBRE GRIS» más abajo */
.section-light .compare-table thead th, .section-light .compare-table thead td { background: var(--surface-aqua-2); }
.section-light .team-member:not(:first-child) { border-left-color: rgba(10,15,29,0.2); }
.section-light .choice[aria-pressed="true"] { border-color: var(--fondo-oscuro); background-color: var(--surface-aqua); }
.section-light .tab[aria-selected="true"] { background: var(--teal); color: var(--blanco); }
.section-light .kb-chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--blanco); }
.section-light .timeline li::before { border-color: var(--fondo-oscuro); }

/* ══════════════════════════════════════
   PROFUNDIDAD DENTRO DE CADA SECCIÓN
   Entre azul y gris el cambio es un corte limpio (sin degradados ni líneas).
   Dentro de cada sección solo hay matices entre tonos cercanos y un brillo tenue.
══════════════════════════════════════ */
/* Gris: degradado vertical muy sutil + brillo agua marina tenue (misma intensidad en todas).
   La posición del brillo rota según el orden de la sección para que no se vea repetido. */
main > .section-light.section-light {
  --glow-at: 100% 0%;
  --grey-base: linear-gradient(180deg, var(--section-grey-top), var(--section-grey-bottom));
  background:
    radial-gradient(55% 60% at var(--glow-at), var(--glow-aqua), transparent 70%),
    var(--grey-base);
}
main > .section-light:nth-child(4n+1) { --glow-at: 100% 0%; }   /* superior derecha */
main > .section-light:nth-child(4n+2) { --glow-at: 0% 100%; }   /* inferior izquierda */
main > .section-light:nth-child(4n+3) { --glow-at: 50% 0%; }    /* centro arriba */
main > .section-light:nth-child(4n)   { --glow-at: 0% 0%; }     /* superior izquierda */
/* Dos secciones grises seguidas se ven como una sola, sin escalón (el brillo se mantiene) */
main > .section-light + .section-light.section-light { --grey-base: linear-gradient(var(--section-grey-bottom), var(--section-grey-bottom)); }
/* Azul oscuro: brillo verde muy tenue en la esquina inferior izquierda, mismo color base */
main > :is(.section, .intro-cta):not(.section-light) {
  background: radial-gradient(50% 55% at 0% 100%, var(--glow-aqua), transparent 70%), var(--section-dark);
}

@media (max-width: 420px) {
  .nav-logo-img { height: 22px; width: auto; }
  .btn-nav { padding: 9px 10px; font-size: 11.5px; }
}

/* ══════════════════════════════════════
   BLOG, HISTORIAS, CENTRO DE CONOCIMIENTO, PRENSA
══════════════════════════════════════ */
.draft-note { margin: 0 0 32px; font-size: 14px; line-height: 1.7; color: var(--gray-400); max-width: 70ch; }
.draft-note a, .intro-cta p a { color: var(--accent-text); text-underline-offset: 3px; }
.section > .container > h2 + .draft-note { margin-top: -8px; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: var(--navy-600);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}
a.post-card:hover { border-color: rgba(124,58,237,0.45); transform: translateY(-3px); }
.post-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.post-cat { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.post-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.post-excerpt { font-size: 14px; line-height: 1.65; color: var(--gray-400); }
.post-more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--accent-text); text-decoration: none; }

.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.story-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--navy-600); border: 1px solid var(--border); border-radius: 12px; }
.story-logo { display: flex; align-items: center; justify-content: center; height: 72px; margin-bottom: 8px; border: 1px dashed rgba(180,83,9,0.55); border-radius: 10px; font-size: 13px; color: #92400E; background: rgba(251,191,36,0.08); text-align: center; padding: 0 12px; }
.story-tag { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.story-stat { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.story-stat-label { font-size: 13px; color: var(--gray-400); }
.story-quote { margin-top: 8px; padding-left: 16px; border-left: 2px solid var(--teal); font-size: 16px; line-height: 1.55; }
.story-person { font-size: 13px; color: var(--gray-400); }
.story-card .post-more { margin-top: auto; }
.video-layout--wide { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.video-slot { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; border: 2px dashed rgba(255,255,255,0.22); border-radius: 12px; background: rgba(255,255,255,0.03); color: var(--gray-400); font-size: 15px; }

.kb-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.kb-filters[hidden] { display: none; }
.kb-chip { padding: 8px 18px; font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--gray-200); background: transparent; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.kb-chip:hover { border-color: var(--accent-text); color: var(--accent-text); }
.kb-chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--blanco); }
.kb-group { margin-bottom: 56px; scroll-margin-top: 96px; }
.kb-group[hidden] { display: none; }
.kb-group-title { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.kb-body { padding: 0 48px 24px 0; max-width: 64ch; }
.kb-body p { padding: 0 0 12px; font-size: 15px; line-height: 1.7; color: var(--gray-400); }
.faq-list summary .pendiente { margin-left: 8px; vertical-align: middle; }

.article { max-width: 720px; margin: 0 auto; }
.article-meta { font-size: 14px; color: var(--gray-400); margin-bottom: 24px; }
.article-lead { font-size: 20px; line-height: 1.6; font-weight: 500; margin-bottom: 32px; }
.article h2 { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.02em; margin: 40px 0 12px; }
.article p, .article li { font-size: 17px; line-height: 1.8; color: var(--gray-400); }
.article ul { margin: 12px 0 0 22px; }
.article-quote { margin: 32px 0; padding: 20px 24px; border-left: 3px solid var(--teal); background: var(--teal-glow); border-radius: 0 8px 8px 0; font-size: 19px; line-height: 1.55; }
.article-back { margin-top: 48px; }
.article-back a { color: var(--accent-text); font-weight: 600; text-decoration: none; }

@media (max-width: 900px) {
  .post-grid, .story-grid { grid-template-columns: 1fr; }
  .video-layout--wide { grid-template-columns: 1fr; text-align: left; }
  .kb-body { padding-right: 0; }
}

/* ══════════════════════════════════════
   TARJETAS SOBRE MARFIL: blancas en reposo, lavanda al pasar el mouse o con foco
══════════════════════════════════════ */
.section-light :is(.module-card, .explainer-card, .benefit-card, .model-node, .press-card, .team-card,
  .crosssell-card, .product-tile, .catalog-item, .case, .cta-panel, .compare, .compare-diff, .stat-card,
  .testimonial, .logo-pill, .partner-logo, .choice, .form-success, .tabs, .post-card, .story-card) {
  background-color: #FFFFFF;
  background-image: none;
  box-shadow: 0 1px 2px rgba(10,15,29,0.05), 0 10px 24px -16px rgba(10,15,29,0.2);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease-out), opacity 0.7s ease;
}
.section-light .product-tile--feature,
.section-light .case-aside,
.section-light .stat-card { background-image: radial-gradient(120% 90% at 100% 0%, rgba(124,58,237,0.1), transparent 60%); }
.section-light .case-aside { background-color: #FFFFFF; }
/* Links de las tarjetas: azul noche en reposo, violeta y flecha a la derecha al hover */
.section-light :is(.product-link, .crosssell-link, .module-link, .press-link, .post-more) { color: var(--fondo-oscuro); transition: color 0.2s ease; }
.link-arrow { display: inline-block; transition: transform 0.2s var(--ease-out); }
.section-light :is(.module-card, .explainer-card, .benefit-card, .model-node, .press-card, .team-card,
  .crosssell-card, .product-tile, .catalog-item, .case, .cta-panel, .compare, .compare-diff, .stat-card,
  .testimonial, .logo-pill, .partner-logo, .choice, .form-success, .tabs, .post-card, .story-card):is(:hover, :focus-visible, :focus-within) {
  background-color: var(--surface-aqua);
  border-color: rgba(124,58,237,0.35);
}
.section-light :is(a.product-tile, a.crosssell-card, a.module-card, a.press-card, a.post-card, a.cta-panel, a.benefit-card):is(:hover, :focus-visible) {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(10,15,29,0.06), 0 18px 34px -16px rgba(10,15,29,0.3);
}
.section-light .use-modes .cta-panel:hover { transform: none; }
.section-light :is(.module-card, .explainer-card, .benefit-card, .model-node, .press-card, .team-card,
  .crosssell-card, .product-tile, .catalog-item, .case, .cta-panel, .compare, .compare-diff, .stat-card,
  .testimonial, .logo-pill, .partner-logo, .choice, .form-success, .tabs, .post-card, .story-card):is(:hover, :focus-visible, :focus-within) :is(.product-link, .crosssell-link, .module-link, .press-link, .post-more) { color: var(--acento); }
:is(.module-card, .explainer-card, .benefit-card, .model-node, .press-card, .team-card,
  .crosssell-card, .product-tile, .catalog-item, .case, .cta-panel, .compare, .compare-diff, .stat-card,
  .testimonial, .logo-pill, .partner-logo, .choice, .form-success, .tabs, .post-card, .story-card):is(:hover, :focus-visible, :focus-within) .link-arrow,
:is(.product-link, .crosssell-link, .module-link, .press-link, .post-more):is(:hover, :focus-visible) .link-arrow { transform: translateX(4px); }

/* Listas de beneficios sobre marfil: título violeta y fondo lavanda tenue al pasar el mouse */
.section-light :is(.benefit-list, .why-grid) li {
  margin-inline: -16px;
  padding-inline: 16px;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}
.section-light :is(.benefit-list, .why-grid) li h3 { transition: color 0.2s ease; }
@media (hover: hover) and (pointer: fine) {
  .section-light :is(.benefit-list, .why-grid) li:hover { background-color: rgba(124,58,237,0.08); }
  .section-light :is(.benefit-list, .why-grid) li:hover h3 { color: var(--acento); }
}
@media (prefers-reduced-motion: reduce) {
  .section-light :is(a.product-tile, a.crosssell-card, a.module-card, a.press-card, a.post-card, a.cta-panel, a.benefit-card):is(:hover, :focus-visible) { transform: none; }
}

/* Íconos de servicio en el menú */
.nav-card-icon--product { background: none; }
.nav-card-icon--product img { display: block; width: 40px; height: 40px; border-radius: 10px; }
@media (max-width: 900px) {
  .nav-card-icon--product { background: none; }
  .nav-card-icon--product img { width: 36px; height: 36px; border-radius: 9px; }
}

/* ══════════════════════════════════════
   FRANJA DE LOGOS DELGADA
   .logos-marquee--strip: franja gris claro, baja, logos sin tarjeta.
   .logos--mono: logos en escala de grises que pasan a color al hover (quitar la clase para desactivarlo).
══════════════════════════════════════ */
:root { --strip-grey: #EAE5DA; }   /* un tono más oscuro que la sección siguiente, para leerse como franja */
main > .logos-marquee--strip.section-light {
  background: var(--strip-grey);
  padding: 18px 0;
}
.logos-marquee--strip .logos-marquee-label { margin-bottom: 12px; }
.logos-marquee--strip {
  --logo-scale: 0.8;    /* los tamaños por peso visual (--w, --h) se reducen igual para todos: alto máx. ~39px */
  --logo-gap: 64px;
}
.logos-marquee--strip .logo-card {
  width: auto;
  height: auto;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.logos--mono .logo-card img {
  filter: grayscale(1);
  opacity: 0.7;
  mix-blend-mode: multiply;   /* oculta el fondo blanco de los PNG sobre el gris */
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.logos--mono .logo-card:hover img { filter: none; opacity: 1; }
@media (max-width: 600px) {
  .logos-marquee--strip { --logo-scale: 0.6; --logo-gap: 40px; }
  main > .logos-marquee--strip.section-light { padding: 16px 0; }
}

/* ══════════════════════════════════════
   RESPLANDOR EN CADA CORTE DE COLOR
   Cada sección pinta la mitad del resplandor que le toca: la de abajo, su borde superior;
   la de arriba, su borde inferior. Ambas mitades usan el mismo centro horizontal, así que se leen
   como un solo resplandor partido por un corte limpio: verde tenue del lado oscuro, agua marina del claro.
   Posición: rota izquierda / centro / derecha según el orden de la sección.
══════════════════════════════════════ */
:root {
  --spray-rx: 25%;                              /* radio horizontal: ~50 % del ancho en total */
  --spray-ry: 190px;                            /* alcance vertical desde el corte */
  --spray-dark: rgba(124, 58, 237, 0.12);        /* lado azul noche */
  --spray-light: rgba(124, 58, 237, 0.10);     /* lado marfil */
}
main > * { position: relative; isolation: isolate; }
main > *::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;                 /* sobre el fondo de la sección, debajo de su contenido */
  pointer-events: none;
  --spray-top: transparent;
  --spray-bottom: transparent;
  background:
    radial-gradient(var(--spray-rx) var(--spray-ry) at var(--spray-x-top) 0%, var(--spray-top), transparent),
    radial-gradient(var(--spray-rx) var(--spray-ry) at var(--spray-x-bottom) 100%, var(--spray-bottom), transparent);
}
/* El borde inferior de la sección k usa el mismo centro que el borde superior de la k+1 */
main > :nth-child(3n+1) { --spray-x-top: 22%; --spray-x-bottom: 50%; }
main > :nth-child(3n+2) { --spray-x-top: 50%; --spray-x-bottom: 78%; }
main > :nth-child(3n)   { --spray-x-top: 78%; --spray-x-bottom: 22%; }
/* Solo donde cambia el color */
main > :not(.section-light) + .section-light::after { --spray-top: var(--spray-light); }
main > .section-light + :not(.section-light)::after { --spray-top: var(--spray-dark); }
main > .section-light:has(+ :not(.section-light))::after,
main > .section-light:last-child::after { --spray-bottom: var(--spray-light); }   /* incluye el corte con el footer */
main > :not(.section-light):has(+ .section-light)::after { --spray-bottom: var(--spray-dark); }
@media (max-width: 600px) {
  :root { --spray-rx: 45%; --spray-ry: 140px; }
}
/* Corte última sección gris → footer: el footer pinta su mitad verde, centrada igual */
main > .section-light:last-child { --spray-x-bottom: 50%; }
footer { position: relative; isolation: isolate; }
main:has(> .section-light:last-child) + footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(var(--spray-rx) var(--spray-ry) at 50% 0%, var(--spray-dark), transparent);
}

/* Menú Servicios: etiqueta pequeña sobre el título */
.nav-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--nd-link);   /* violeta sobre el panel blanco; violeta claro en el menú móvil oscuro */
}
.nav-card-text { flex: 1; }

/* ══════════════════════════════════════
   TARJETA ILUSTRATIVA DE PRODUCTO (.mock-card)
   Componente reutilizable: tarjeta con pasos que aparecen en secuencia.
   Dentro de .hero-visual se superpone a la foto, centrada en vertical; en celular va debajo, a ancho completo.
══════════════════════════════════════ */
.hero-visual { position: relative; }
.hero-visual .hero-photo img { aspect-ratio: 4 / 5; }
.hero-visual .mock-card { position: absolute; left: -48px; top: 50%; translate: 0 -50%; z-index: 2; }

.mock-card {
  width: 312px;
  max-width: 100%;
  background: var(--section-grey-top);   /* cuerpo en el gris claro del sitio; las filas van en blanco */
  color: var(--fondo-oscuro);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  font-family: var(--font-body);
  box-shadow: 0 28px 56px -22px rgba(0,0,0,0.6), 0 6px 16px rgba(0,0,0,0.16);
}
.mock-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: var(--fondo-oscuro);
  color: #FFFFFF;
}
.mock-card-title { font-size: 13px; font-weight: 600; }
.mock-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
}
.mock-card-badge img { display: block; height: 11px; width: auto; }
.mock-card-body { display: flex; flex-direction: column; gap: 9px; padding: 12px 14px 14px; }

.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: #FFFFFF;
  border: 1px solid #E4DFD5;
  border-radius: 9px;
}
.mock-row--hl { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(124,58,237,0.12); }
.mock-ico {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: #EFEBE3;
  flex-shrink: 0;
}
.mock-ico svg { width: 15px; height: 15px; fill: none; stroke: #2B2F3A; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mock-row-text { flex: 1; font-size: 13px; font-weight: 600; }
.mock-check svg, .chat-check svg { display: block; width: 19px; height: 19px; }
.mock-check circle, .chat-check circle { fill: var(--teal); }
.mock-check path, .chat-check path { fill: none; stroke: var(--blanco); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 0; }

.mock-label { margin-bottom: 6px; font-size: 11px; font-weight: 600; color: var(--gris-texto-claro); }
.mock-skel { display: flex; flex-direction: column; gap: 5px; }
.mock-skel span { display: block; height: 6px; border-radius: 4px; background: linear-gradient(90deg, #E2DDD2, #ECE8E0, #E2DDD2); }
.mock-skel span:nth-child(2) { width: 82%; }
.mock-skel span:nth-child(3) { width: 64%; }

.mock-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mock-options button {
  padding: 6px 0;
  border: 1px solid #DAD4C8;
  border-radius: 7px;
  background: #FFFFFF;
  color: var(--fondo-oscuro);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.mock-options button:hover { border-color: var(--teal-dim); }
.mock-options button[aria-checked="true"] { background: var(--surface-aqua); border-color: var(--teal); }
.mock-options button:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.mock-result { margin-top: 8px; font-size: 12px; color: #2B2F3A; }

/* Entrada: solo si el JS la activa (sin JS o con movimiento reducido la tarjeta se ve completa) */
.mock-card.mock-anim .mock-step {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s var(--ease-out);
  transition-delay: calc(300ms + var(--i) * 150ms);
}
.mock-card.mock-anim .mock-check path {
  stroke-dashoffset: 16;
  transition: stroke-dashoffset 0.5s ease;
  transition-delay: calc(650ms + var(--i) * 150ms);
}
.mock-card.mock-anim.is-in .mock-step { opacity: 1; transform: none; }
.mock-card.mock-anim.is-in .mock-check path { stroke-dashoffset: 0; }

@media (max-width: 900px) {
  .hero-visual .hero-photo img { aspect-ratio: 16 / 10; }
  .hero-visual .mock-card { position: static; translate: none; width: 100%; margin-top: 16px; }
}

/* ══════════════════════════════════════
   CONVERSACIÓN ILUSTRATIVA (.chat-card)
   Mismo lenguaje que .mock-card: fondo claro, burbujas de la marca en blanco,
   burbuja del usuario en lavanda con borde violeta. Las burbujas aparecen una tras otra (JS).
══════════════════════════════════════ */
.service-grid--chat { align-items: start; }
.benefit-cards--row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.chat-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: var(--section-grey-top);
  border: 1px solid rgba(10,15,29,0.1);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(10,15,29,0.05), 0 16px 36px -20px rgba(10,15,29,0.3);
  color: var(--fondo-oscuro);
}
.chat-tag { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acento); }
.chat-thread { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.chat-msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.chat-msg p { margin: 0; }
.chat-who { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; color: var(--gris-texto-claro); }
.chat-msg--marca { align-self: flex-start; background: #FFFFFF; border: 1px solid #E4DFD5; border-bottom-left-radius: 4px; }
.chat-msg--you { align-self: flex-end; background: var(--surface-aqua); border: 1px solid var(--teal); border-bottom-right-radius: 4px; }
.chat-check { display: inline-block; vertical-align: -4px; margin-left: 4px; }
.chat-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: #FFFFFF; border: 1px solid #E4DFD5; border-radius: 14px; border-bottom-left-radius: 4px; }
.chat-typing.chat-typing--you { align-self: flex-end; background: var(--surface-aqua); border-color: var(--teal); border-radius: 14px; border-bottom-right-radius: 4px; }
.chat-typing[hidden] { display: none; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: #8E8A84; animation: chat-dot 1s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-dot { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
/* Antes de animarse (solo con JS y sin movimiento reducido) las burbujas esperan ocultas */
.chat-card.chat-anim .chat-msg:not(.is-shown) { display: none; }
/* Entrada con transiciones: .is-shown la pone en el flujo (invisible) y .is-visible la muestra */
.chat-card.chat-anim .chat-msg.is-shown { opacity: 0; transform: translateY(6px); transition: opacity 0.35s ease, transform 0.35s var(--ease-out); }
.chat-card.chat-anim .chat-msg.is-visible { opacity: 1; transform: none; }
.chat-card.chat-anim .chat-msg .chat-check path { stroke-dashoffset: 16; transition: stroke-dashoffset 0.5s ease 0.25s; }
.chat-card.chat-anim .chat-msg.is-visible .chat-check path { stroke-dashoffset: 0; }

@media (max-width: 900px) {
  .chat-msg { max-width: 92%; }
  .benefit-cards--row { grid-template-columns: 1fr; margin-top: 40px; }
}

/* ══════════════════════════════════════
   MAQUETA DE CELULAR (.phone) sobre panel lavanda (.phone-panel)
   La pantalla reutiliza .chat-card (misma animación y burbujas); .chat-card--phone la adapta.
══════════════════════════════════════ */
.phone-panel {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 36px 24px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, #ECE4FB 0%, #F9F6FE 55%, #EFE8FC 100%);
  border: 1px solid rgba(124,58,237,0.12);
}
.phone-panel::before {   /* resplandor sutil detrás del celular */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(55% 45% at 50% 40%, rgba(124,58,237,0.18), transparent 70%);
}
.phone {
  --phone-w: 284px;
  position: relative;
  width: var(--phone-w);
  aspect-ratio: 284 / 556;   /* ~9:18; 284 x 556 px en escritorio */
  border: 8px solid var(--fondo-oscuro);
  border-radius: 38px;
  background: var(--fondo-oscuro);
  box-shadow: 0 30px 60px -24px rgba(10,15,29,0.45), 0 8px 18px rgba(10,15,29,0.12);
}
.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  translate: -50% 0;
  width: 92px; height: 20px;
  background: var(--fondo-oscuro);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--section-grey-top);
}
.chat-card.chat-card--phone { padding: 0; gap: 0; border: 0; border-radius: 30px; box-shadow: none; }
.phone-app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 30px 14px 10px;
  background: #FFFFFF;
  border-bottom: 1px solid #E4DFD5;
}
.phone-app-head img { display: block; height: 14px; width: auto; }
.phone-app-head .chat-tag { font-size: 9px; letter-spacing: 0.06em; }
.chat-card--phone .chat-thread {
  flex: 1;
  justify-content: flex-end;   /* mensajes anclados abajo, como un chat real */
  gap: 8px;
  padding: 12px 10px;
  overflow: hidden;
}
.chat-card--phone .chat-msg { max-width: 85%; padding: 8px 11px; font-size: 12.5px; line-height: 1.45; border-radius: 13px; }
.chat-card--phone .chat-msg--marca { border-bottom-left-radius: 4px; }
.chat-card--phone .chat-msg--you { border-bottom-right-radius: 4px; }
.chat-card--phone .chat-who { font-size: 10px; }
.chat-card--phone .chat-check svg { width: 16px; height: 16px; }
.chat-card--phone .chat-typing { padding: 10px 12px; }
.phone-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 10px 12px;
  padding: 8px 8px 8px 14px;
  background: #FFFFFF;
  border: 1px solid #E4DFD5;
  border-radius: 999px;
  font-size: 12px;
  color: var(--gris-texto-claro);
}
.phone-send { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); }
.phone-send svg { width: 14px; height: 14px; fill: none; stroke: var(--blanco); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .phone { --phone-w: 260px; }
  .phone-panel { padding: 28px 16px; }
}

/* ══════════════════════════════════════
   SELLVORA — CAPA DE MARCA
   Tipografía, degradado de marca, logo y componentes propios.
══════════════════════════════════════ */

/* Tipografía: Poppins en títulos (H1 700, H2/H3 600, subtítulos 500); IBM Plex Sans en el texto */
h1, .home-hero-title, .hero h1 { font-family: var(--font-display); font-weight: 700; }
h2, h3, .section-h2, .service-h2, .cta-copy h2, .cta-panel h2, .cta-panel h3, .intro-cta h2,
.explainer-title, .benefit-title, .product-name, .crosssell-title, .nav-card-title, .choice-title,
.model-node-title, .faq-list summary, .form-success-title, .advisor-cta-text, .kb-group-title {
  font-family: var(--font-display);
  font-weight: 600;
}
.label, .product-audience, .nav-card-tag, .alliance-kicker, .explainer-num, .logos-marquee-label,
.footer-col-title, .form-progress li, .step-num, .process-num, .mission-strong {
  font-family: var(--font-display);
  font-weight: 500;
}
.nav-link, .nav-dd-btn, .btn-primary, .btn-secondary, .btn-nav, .btn-submit, .btn-link { font-family: var(--font-display); font-weight: 500; }
blockquote, .quote, .model-tagline { font-family: var(--font-body); font-style: italic; font-weight: 400; }
.model-tagline em { font-style: italic; }

/* Firma visual: degradado diagonal azul noche → morado en hero y cierres oscuros */
.hero, .home-hero, .cta-final:not(.section-light) { background: var(--degradado-marca); }
footer { background: var(--navy-900); border-top: 1px solid var(--border); }

/* Contraste: #9F62F0 sobre las tarjetas #1C212D da 4.2:1 (no alcanza 4.5:1 en texto pequeño).
   Dentro de tarjetas oscuras, el texto de acento pequeño pasa a marfil; los íconos siguen en violeta. */
:is(.explainer-card, .benefit-card, .product-tile, .crosssell-card, .cta-panel, .choice, .alliance-node,
  .model-node, .form-success, .mock-card-head) { --accent-text: var(--claro); }
.section-light :is(.explainer-card, .benefit-card, .product-tile, .crosssell-card, .cta-panel, .choice,
  .model-node, .form-success) { --accent-text: var(--acento); }

/* Logo */
.nav-logo { line-height: 0; }
.nav-logo-img { height: 40px; width: auto; }
.footer-brand-logo { height: 36px; width: auto; margin-bottom: 16px; }
@media (max-width: 420px) { .nav-logo-img { height: 32px; } }

/* Botón del menú: texto corto en pantallas pequeñas */
.btn-nav-short { display: none; }
@media (max-width: 600px) {
  .btn-nav-full { display: none; }
  .btn-nav-short { display: inline; }
}

/* Íconos de servicio (SVG en línea) */
.product-icon--svg {
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-glow);
  border: 1px solid rgba(124,58,237,0.32);
}
.product-icon--svg svg, .nav-card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--icon); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-card-icon svg { stroke: var(--acento); }

/* Home: panel visual del hero (sin foto) con el diagrama de flujo */
.hero-media--panel {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(80% 60% at 80% 10%, rgba(124,58,237,0.30), transparent 70%),
    rgba(28,33,45,0.55);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9);
}
.hero-media--panel .alliance-logo { height: 30px; }

/* Páginas de servicio: panel visual del hero (sin foto) */
.hero-visual--panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  padding: 40px 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(70% 60% at 75% 20%, rgba(124,58,237,0.30), transparent 70%),
    rgba(28,33,45,0.55);
}
.hero-visual--panel .mock-card { position: static; translate: none; width: 340px; }
.hero-visual--panel .chat-card { width: 100%; max-width: 380px; }
@media (max-width: 900px) {
  .hero-visual--panel { min-height: 0; padding: 28px 16px; }
  .hero-visual--panel .mock-card { width: 100%; max-width: 360px; margin: 0; }
}

/* Maqueta de celular: título de la conversación */
.phone-app-title { font-size: 12px; font-weight: 600; color: var(--fondo-oscuro); }

/* Explicadores en 4 columnas */
.explainer-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .explainer-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .explainer-grid--4 { grid-template-columns: 1fr; } }

/* Listas "Es para ti si… / Todavía no es para ti si…" */
.fit-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.fit-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 16px; line-height: 1.55; color: var(--gray-200); }
.fit-list svg { width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--icon); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fit-list--no svg { stroke: var(--gray-400); }
.fit-panels .cta-panel h3 { margin-bottom: 8px; }
.section-heading-center { text-align: center; margin-left: auto; margin-right: auto; }

/* Botón de WhatsApp (contacto) */
.btn-whatsapp svg { width: 18px; height: 18px; fill: currentColor; }
.contact-direct { margin-top: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact-direct p { font-size: 14px; color: var(--gray-400); }

/* Pie de página: 4 columnas */
.footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* Lista de lo que se revisa en el diagnóstico */
.cta-copy .fit-list { margin-top: 24px; }
.cta-copy .fit-list li { font-size: 15px; }

/* Etiqueta de texto en la cabecera de la tarjeta ilustrativa */
.mock-card-badge { font-size: 11px; font-weight: 600; line-height: 1.2; color: var(--claro); }
.contact-direct a { color: var(--link-text); text-underline-offset: 3px; }

/* ══════════════════════════════════════
   MAQUETA TIPO CRM (.crm-mock) — hero de Reactivación con IA
   Pantalla clara sobre el panel oscuro; nombres y empresas inventados, sin cifras.
   Contrastes: estados y textos ≥ 4.5:1 sobre su fondo (violeta #7C3AED sobre lavanda 4.9:1,
   gris #555A66 sobre #EFEBE3 5.6:1, blanco sobre #7C3AED 5.7:1).
══════════════════════════════════════ */
.crm-mock {
  container-type: inline-size;
  width: 100%;
  max-width: 460px;
  text-align: left;
  background: var(--blanco);
  color: var(--fondo-oscuro);
  border-radius: 14px;
  overflow: hidden;
  font-family: var(--font-body);
  box-shadow: 0 28px 56px -22px rgba(0,0,0,0.6), 0 6px 16px rgba(0,0,0,0.16);
}
.crm-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--fondo-oscuro);
  color: var(--claro);
}
.crm-dots { display: inline-flex; gap: 5px; }
.crm-dots i { display: block; width: 7px; height: 7px; border-radius: 50%; background: rgba(244,241,234,0.28); }
.crm-title { flex: 1; font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.crm-badge {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(244,241,234,0.2);
  background: rgba(244,241,234,0.08);
  font-size: 11px;
  font-weight: 600;
}
.crm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid #E4DFD5;
  background: #FAF8F3;
}
.crm-filter {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #E4DFD5;
  background: var(--blanco);
  font-size: 11px;
  font-weight: 600;
  color: var(--gris-texto-claro);
}
.crm-filter.is-active { background: var(--fondo-oscuro); border-color: var(--fondo-oscuro); color: var(--blanco); }
.crm-table { padding: 2px 0; }
.crm-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 98px 106px;   /* anchos fijos: las columnas quedan alineadas entre filas */
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.3;
}
.crm-row + .crm-row { border-top: 1px solid #EFEBE3; }
.crm-row--head {
  padding-top: 8px;
  padding-bottom: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gris-texto-claro);
}
.crm-row--head > span:last-child { justify-self: end; }
.crm-contact { display: flex; align-items: center; gap: 8px; min-width: 0; }
.crm-avatar {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #F1ECFB;
  color: var(--acento-hover);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
}
.crm-name { display: flex; flex-direction: column; font-weight: 600; min-width: 0; white-space: nowrap; }
.hero-visual--panel:has(.crm-mock) { padding-left: 16px; padding-right: 16px; }
.crm-company-sm { display: none; font-size: 11px; font-weight: 400; color: var(--gris-texto-claro); }
.crm-col-empresa { color: #2B2F3A; }
.crm-tag {
  justify-self: start;
  padding: 2px 7px;
  border: 1px solid #E4DFD5;
  border-radius: 6px;
  font-size: 10.5px;
  color: var(--gris-texto-claro);
  white-space: nowrap;
}
.crm-status {
  justify-self: end;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.crm-status--meeting { background: var(--acento); color: var(--blanco); }
.crm-status--interested { background: #F1ECFB; color: var(--acento); }
.crm-status--follow, .crm-status--later { background: #EFEBE3; color: var(--gris-texto-claro); }
.crm-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 10px 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #F1ECFB;
  border: 1px solid rgba(124,58,237,0.25);
  font-size: 12px;
  font-weight: 500;
  color: var(--fondo-oscuro);
}
.crm-toast svg { flex-shrink: 0; width: 16px; height: 16px; fill: none; stroke: var(--acento); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Maqueta angosta (celular): cada contacto pasa a formato de tarjeta.
   Nombre y empresa a la izquierda, estado a la derecha y el segmento debajo del nombre. */
@container (max-width: 420px) {
  .crm-dots { display: none; }
  .crm-row--head { display: none; }
  .crm-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "contacto estado" "segmento estado";
    row-gap: 5px;
    padding: 10px 12px;
  }
  .crm-row + .crm-row--head + .crm-row, .crm-row--head + .crm-row { border-top: 0; }
  .crm-contact { grid-area: contacto; }
  .crm-tag { grid-area: segmento; margin-left: 32px; }
  .crm-status { grid-area: estado; align-self: center; }
  .crm-col-empresa { display: none; }
  .crm-company-sm { display: block; }
  .crm-name { white-space: nowrap; }
  .crm-company-sm { overflow: hidden; text-overflow: ellipsis; }
}

/* Entrada: filas una tras otra; el estado "Reunión agendada" y el aviso al final.
   Solo si el JS la activa (sin JS o con movimiento reducido se ve completa).
   El estado oculto no lleva transición (se aplica al instante); la transición va en .is-in. */
.crm-mock.crm-anim .crm-row:not(.crm-row--head) { opacity: 0; transform: translateY(8px); }
.crm-mock.crm-anim .crm-status--meeting { opacity: 0; transform: scale(0.85); }
.crm-mock.crm-anim .crm-toast { opacity: 0; transform: translateY(6px); }
.crm-mock.crm-anim.is-in .crm-row:not(.crm-row--head) {
  opacity: 1; transform: none;
  transition: opacity 0.45s ease, transform 0.45s var(--ease-out);
  transition-delay: calc(250ms + var(--i) * 160ms);
}
.crm-mock.crm-anim.is-in .crm-status--meeting {
  opacity: 1; transform: none;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
  transition-delay: 1.15s;
}
.crm-mock.crm-anim.is-in .crm-toast {
  opacity: 1; transform: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
  transition-delay: 1.45s;
}

/* ══════════════════════════════════════
   LÍNEA DE TIEMPO DE 30 DÍAS (.timeline-30) — "Qué incluye" de Reactivación con IA
══════════════════════════════════════ */
.timeline-30 { margin-top: 32px; max-width: 30em; }
.timeline-30-title {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}
.timeline-30-list { list-style: none; }
.timeline-30-list li {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 14px;
  padding-bottom: 14px;
}
.timeline-30-list li:last-child { padding-bottom: 0; }
.timeline-30-list li:not(:last-child)::before {   /* línea fina entre puntos */
  content: "";
  position: absolute;
  left: 10.5px; top: 24px; bottom: 2px;
  width: 1px;
  background: rgba(124,58,237,0.35);
}
.timeline-30-dot {
  grid-row: span 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--acento);
  color: var(--blanco);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
}
.timeline-30-week { font-family: var(--font-display); font-size: 12px; font-weight: 500; color: var(--accent-text); line-height: 1.5; }
.timeline-30-text { font-size: 15px; line-height: 1.45; color: var(--gray-200); }

/* ══════════════════════════════════════
   CALENDARIO ANIMADO (.cal-mock) — hero de Reuniones B2B
   Fondo marfil dentro del panel oscuro. Contrastes: días hábiles #0A0F1D (16.9:1), fines de semana
   #555A66 (6.1:1), día seleccionado blanco sobre #7C3AED (5.7:1).
══════════════════════════════════════ */
.cal-mock {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 16px 16px 14px;
  text-align: left;
  background: var(--claro);
  color: var(--fondo-oscuro);
  border-radius: 16px;
  font-family: var(--font-body);
  box-shadow: 0 28px 56px -22px rgba(0,0,0,0.6), 0 6px 16px rgba(0,0,0,0.16);
  overflow: hidden;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-month { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.cal-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1px solid #E4DFD5;
  background: var(--blanco);
  color: var(--gris-texto-claro);
  font-size: 15px;
  line-height: 1;
}
.cal-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: #F1ECFB;
  color: var(--acento);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-week { margin-bottom: 4px; }
.cal-week span {
  text-align: center;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--fondo-oscuro);
}
.cal-day {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 32px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.cal-week .cal-day--weekend, .cal-day--weekend { color: var(--gris-texto-claro); }
.cal-day--weekend { font-weight: 400; }
.cal-day.has-meeting::after {   /* reunión ya agendada */
  content: "";
  position: absolute;
  bottom: 4px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--acento);
}
.cal-day.is-selected { background: var(--acento); color: var(--blanco); font-weight: 600; }
.cal-day.is-selected::after { background: var(--blanco); }

/* Zona inferior de alto fijo: los horarios y la confirmación se turnan sin mover el calendario */
.cal-foot { position: relative; height: 74px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #E4DFD5; }
.cal-slots { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; transition: opacity 0.3s ease; }
.cal-slots.is-hidden { opacity: 0; }
.cal-slots-label { width: 100%; font-size: 11px; font-weight: 600; color: var(--gris-texto-claro); }
.cal-slot {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid #DAD4C8;
  background: var(--blanco);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.cal-slot.is-selected { background: var(--acento); border-color: var(--acento); color: var(--blanco); }
.cal-confirm {
  position: absolute;
  inset: 12px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--blanco);
  border: 1px solid rgba(124,58,237,0.35);
  box-shadow: 0 10px 24px -14px rgba(10,15,29,0.35);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}
.cal-confirm.is-visible { opacity: 1; transform: none; }
.cal-confirm-check {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--acento);
}
.cal-confirm-check svg { width: 16px; height: 16px; fill: none; stroke: var(--blanco); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cal-confirm-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12px; line-height: 1.35; color: var(--gris-texto-claro); }
.cal-confirm-text strong { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--fondo-oscuro); }
/* Mientras la confirmación está visible, los horarios quedan ocultos debajo */
.cal-foot:has(.cal-confirm.is-visible) .cal-slots { opacity: 0; }

/* Cursor decorativo (solo con animación) */
.cal-cursor {
  position: absolute;
  top: 0; left: 0;
  width: 20px; height: 20px;
  margin: -3px 0 0 -4px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.7s var(--ease-out), opacity 0.3s ease;
  z-index: 3;
}
.cal-cursor svg { display: block; width: 20px; height: 20px; fill: var(--fondo-oscuro); stroke: var(--blanco); stroke-width: 1.5; stroke-linejoin: round; transition: transform 0.12s ease; }
.cal-mock.cal-anim .cal-cursor { opacity: 1; }
.cal-cursor.is-click svg { transform: scale(0.82); }

@media (max-width: 420px) {
  .cal-mock { padding: 14px 12px 12px; }
  .cal-head { gap: 6px; }
  .cal-nav { gap: 5px; }
  .cal-arrow { width: 20px; height: 20px; font-size: 13px; }
  .cal-month { font-size: 13.5px; white-space: nowrap; }
  .cal-tag { font-size: 10px; padding: 3px 7px; }
  .cal-day { height: 28px; font-size: 12px; }
  .cal-foot { height: 92px; }
  .cal-confirm { padding: 9px 10px; gap: 8px; }
  .cal-confirm-text { font-size: 11.5px; }
  .cal-confirm-text strong { font-size: 12.5px; }
}

/* ══════════════════════════════════════
   CICLO MENSUAL (.cycle) — "Qué incluye cada mes" de Reuniones B2B
   Anillo con 4 etapas; un punto violeta recorre el anillo y la etapa activa se resalta.
══════════════════════════════════════ */
.cycle { margin-top: 28px; width: 300px; max-width: 100%; }
.cycle-ring { position: relative; width: 100%; aspect-ratio: 1; }
.cycle-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cycle-track { fill: none; stroke: rgba(124,58,237,0.32); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.cycle-arrow { fill: var(--acento); opacity: 0.75; }
.cycle-dot {
  transform-box: view-box;
  transform-origin: 150px 150px;
  transition: transform 1.1s var(--ease-out);
}
.cycle-dot circle { fill: var(--acento); stroke: var(--claro); stroke-width: 3; }
.cycle-center {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  pointer-events: none;
}
.cycle-center svg { width: 22px; height: 22px; fill: none; stroke: var(--acento); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cycle-center span { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--fondo-oscuro); }
.cycle-stage {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #DAD4C8;
  background: var(--blanco);
  color: var(--fondo-oscuro);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 14px -10px rgba(10,15,29,0.35);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.cycle-stage--perfil      { left: 50%;     top: 16.67%; }
.cycle-stage--contacto    { left: 83.33%;  top: 50%; }
.cycle-stage--seguimiento { left: 50%;     top: 83.33%; }
.cycle-stage--reunion     { left: 16.67%;  top: 50%; }
.cycle-stage:hover { border-color: var(--acento); }
.cycle-stage.is-active { background: var(--acento); border-color: var(--acento); color: var(--blanco); box-shadow: 0 8px 18px -8px rgba(124,58,237,0.6); }
.cycle-stage:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
.cycle-caption {
  min-height: 3em;        /* reserva dos líneas: el texto cambia sin mover la sección */
  margin-top: 10px;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-200);
}
@media (max-width: 900px) {
  .cycle { width: 260px; margin-left: auto; margin-right: auto; }
  .cycle-stage { font-size: 11.5px; padding: 5px 10px; }
  .cycle-center span { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .cycle-dot, .cal-confirm, .cal-slots, .cal-day, .cal-slot { transition: none; }
}

/* ══════════════════════════════════════
   MAPA DE DECISORES (.dmap) — "Qué incluye el plan" de Plan High Ticket (ABM)
   Organigrama: cuenta objetivo arriba y 4 decisores unidos con líneas finas.
   Contrastes: "Reunión agendada" blanco sobre #7C3AED (5.7:1), "En conversación" #7C3AED sobre
   lavanda (4.9:1), gris #555A66 sobre #EFEBE3 (5.6:1).
══════════════════════════════════════ */
.dmap { container-type: inline-size; width: 100%; max-width: 340px; margin-top: 28px; }
.dmap-account {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 9px 14px 9px 10px;
  background: var(--blanco);
  border: 1px solid #E4DFD5;
  border-radius: 12px;
  box-shadow: 0 8px 18px -12px rgba(10,15,29,0.3);
}
.dmap-account-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--fondo-oscuro);
}
.dmap-account-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--claro); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dmap-account-text { display: flex; flex-direction: column; line-height: 1.25; }
.dmap-account-text span { font-family: var(--font-display); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gris-texto-claro); }
.dmap-account-text strong { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--fondo-oscuro); }

/* Árbol: tronco bajo la cuenta, barra horizontal y una bajada por decisor */
.dmap-tree {
  --gap: 6px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 28px;
}
.dmap-tree::before,            /* tronco */
.dmap-tree::after {            /* barra horizontal entre el primer y el último decisor */
  content: "";
  position: absolute;
  background: rgba(124,58,237,0.35);
}
.dmap-tree::before { top: -28px; left: 50%; width: 1px; height: 14px; }
.dmap-tree::after { top: -14px; left: calc((100% - 3 * var(--gap)) / 8); right: calc((100% - 3 * var(--gap)) / 8); height: 1px; }
.dmap-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 3px 9px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-body);
  color: var(--fondo-oscuro);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.dmap-node::before {           /* bajada */
  content: "";
  position: absolute;
  top: -14px; left: 50%;
  width: 1px; height: 14px;
  background: rgba(124,58,237,0.35);
}
.dmap-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blanco);
  border: 1.5px solid #DAD4C8;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.dmap-avatar svg { width: 20px; height: 20px; fill: none; stroke: var(--fondo-oscuro); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dmap-role { min-height: 2.5em; font-family: var(--font-display); font-size: 11.5px; font-weight: 500; line-height: 1.25; text-align: center; }
.dmap-status {
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.4s var(--ease-out), opacity 0.4s ease;
}
.dmap-status--meeting { background: var(--acento); color: var(--blanco); }
.dmap-status--talk { background: #F1ECFB; color: var(--acento); }
.dmap-status--neutral { background: #EFEBE3; color: var(--gris-texto-claro); }
.dmap-status.is-changing { opacity: 0; transform: translateY(4px) scale(0.92); }
/* Resaltado al pasar el mouse, tocar o enfocar con el teclado */
.dmap-node:hover, .dmap-node.is-active { background: var(--blanco); border-color: rgba(124,58,237,0.35); box-shadow: 0 8px 18px -12px rgba(10,15,29,0.35); }
.dmap-node:hover .dmap-avatar, .dmap-node.is-active .dmap-avatar { border-color: var(--acento); background: #F1ECFB; }
.dmap-node:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }

/* Cobertura de la cuenta */
.dmap-progress { margin-top: 16px; }
.dmap-bar { height: 4px; border-radius: 4px; background: #E4DFD5; overflow: hidden; }
.dmap-bar span { display: block; height: 100%; width: calc(var(--p, 1) * 100%); border-radius: 4px; background: var(--acento); transition: width 0.6s var(--ease-out); }
.dmap-progress p { margin-top: 8px; font-size: 13px; color: var(--gris-texto-claro); }
.dmap-caption {
  min-height: 3em;        /* reserva dos líneas: la frase cambia sin mover la sección */
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-200);
}

/* Angosto (celular): decisores en 2 x 2, sin las líneas del árbol (solo el tronco) */
@container (max-width: 330px) {
  .dmap-tree { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
  .dmap-tree::before { top: -22px; height: 22px; }
  .dmap-tree::after, .dmap-node::before { display: none; }
  .dmap-node { background: var(--blanco); border-color: #E4DFD5; }
  .dmap-role { min-height: 0; }
}
@media (max-width: 900px) {
  .dmap { margin-left: auto; margin-right: auto; }
  .dmap-progress p, .dmap-caption { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .dmap-status, .dmap-bar span, .dmap-node, .dmap-avatar { transition: none; }
}

/* Enlace de política de datos en el pie */
.footer-copy a{color:inherit;text-decoration:underline;text-underline-offset:2px;}
.footer-copy a:hover{color:var(--claro);}
