/* ============================================================
   AURORA GLOBAL GROUP — Design System Web 2026
   Fuente de verdad visual: Brand Guidelines 2026 (Dropbox:
   Aurora Branding/New Branding 2026/Brand-Guidelines/)
   Derivado de la landing de consultoría IA aprobada por Marc.
   ============================================================ */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Color — marca */
  --navy: #0f1f33;
  --navy-2: #162840;
  --navy-3: #1e3450;
  --teal: #06b6d4;
  --teal-2: #0891b2;
  --off: #f5f9fb;        /* Blanco Bruma: fondo base */
  --off-2: #eaf3f7;
  --white: #ffffff;

  /* Color — texto */
  --text: #0f1f33;
  --text-2: #476480;     /* Pizarra: secundario */
  --text-3: #8aa8be;     /* Niebla: terciario, labels */
  --slate: #5a7898;

  /* Bordes */
  --border: rgba(15, 31, 51, 0.10);
  --border-2: rgba(15, 31, 51, 0.16);

  /* Tipografía */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'SF Mono', 'Menlo', 'Monaco', 'Cascadia Code', 'Consolas', monospace;

  /* Layout */
  --max-w: 1080px;       /* ancho de contenido */
  --pad-x: 2rem;
  --radius: 8px;
  --radius-lg: 12px;
}

/* ---------- Reset y base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  background: var(--off);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-2); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- Tipografía ---------- */
h1, .h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h2, .h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h3, .h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
.lead { font-size: 1.0625rem; color: var(--text-2); line-height: 1.78; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark .lead { color: rgba(255, 255, 255, 0.62); }
.teal { color: var(--teal-2); }
.on-dark .teal { color: var(--teal); }

/* ---------- Dispositivos de marca ---------- */
/* Eyebrow: línea teal + etiqueta mono en versalitas */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-2);
}
.eyebrow::before { content: ''; display: block; width: 20px; height: 1.5px; background: var(--teal); }
.on-dark .eyebrow { color: var(--teal); }

/* Retícula técnica: SOLO sobre navy (heros, cierres) */
.grid-texture { position: relative; overflow: hidden; }
.grid-texture::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
}
.grid-texture > * { position: relative; }

/* Etiquetas mono */
.mono-label {
  font-family: var(--mono);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3);
}

/* Franja de puntos del espectro (divisor/firma; uso puntual) */
.dot-strip { display: flex; gap: 12px; }
.dot-strip i { width: 7px; height: 7px; border-radius: 50%; display: block; }

/* ---------- Componentes ---------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--teal-2); color: #fff;
  font-weight: 700; font-size: 0.9375rem;
  padding: 0.8125rem 1.5rem; border: none; border-radius: var(--radius);
  cursor: pointer; transition: background 0.15s ease-out, transform 100ms ease-out;
}
.btn:hover { background: var(--teal); text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn.secondary {
  background: transparent; color: var(--navy);
  border: 1px solid var(--border-2);
}
.btn.secondary:hover { background: var(--off-2); border-color: var(--text-3); }
.on-dark .btn.secondary { color: #fff; border-color: rgba(255,255,255,0.25); }
.on-dark .btn.secondary:hover { background: rgba(255,255,255,0.08); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.card.dark { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Secciones */
.section { padding: 5rem 0; }
.section.dark { background: var(--navy); color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 2rem;
}
.nav-logo { height: 48px; width: auto; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-size: 0.9375rem; font-weight: 600; color: var(--text-2); }
.nav-links a:hover { color: var(--navy); text-decoration: none; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.35); padding: 3rem 2rem; }
.footer a { color: rgba(255, 255, 255, 0.6); overflow-wrap: anywhere; }
.footer .mono-label { color: rgba(255, 255, 255, 0.35); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilidades ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
@media (max-width: 700px) {
  :root { --pad-x: 1.25rem; }
  .section { padding: 3.5rem 0; }
  .nav { padding: 0.75rem 1.25rem; }
  .nav-links { gap: 1rem; }
}
/* Nav móvil: solo logo + CTA (la navegación completa vive en el footer) */
@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; padding: 3.75rem 0 5rem; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: start; }
.hero-ring { width: min(340px, 70vw); margin: 1.5rem auto 0; }
.hero-ring img, .hero-ring svg { animation: ring-spin 90s linear infinite; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.hero-ctas { display: flex; gap: 0.875rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-meta-row { display: flex; gap: 2rem; margin-top: 3.5rem; }
.hero-meta-row .item { flex: 1; min-width: 0; }
@media (max-width: 900px) { .hero-meta-row { flex-wrap: wrap; } .hero-meta-row .item { flex: 0 0 40%; } }
.hero-meta-row .item .n {
  font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; color: var(--teal);
}
.hero-meta-row .item .l { font-size: 0.8125rem; color: rgba(255,255,255,0.5); margin-top: 0.125rem; }

/* ---------- Grid de servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.service-card { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color 0.15s, transform 0.15s; }
.service-card:hover { border-color: var(--teal-2); transform: translateY(-2px); text-decoration: none; }
.service-card svg.ic { width: 28px; height: 28px; }
.service-card .t { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.015em; color: var(--navy); }
.service-card .d { font-size: 0.9375rem; color: var(--text-2); line-height: 1.6; }
.service-card .more { font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-2); margin-top: auto; }

/* ---------- Banda IA / CTA oscura ---------- */
.band { border-radius: var(--radius-lg); padding: 3.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.chip {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px; padding: 0.4rem 0.875rem;
}
.chip.hot { color: var(--navy); background: var(--teal); border-color: var(--teal); font-weight: 700; }

/* ---------- Método (pasos) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.step .num { font-family: var(--mono); font-size: 0.75rem; font-weight: 700; color: var(--teal-2); }
.step .rule { border-top: 2px solid var(--border-2); margin: 0.75rem 0 1rem; position: relative; }
.step .rule::before { content: ''; position: absolute; top: -2px; left: 0; width: 34px; height: 2px; background: var(--teal-2); }
.step .t { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); }
.step .d { font-size: 0.9375rem; color: var(--text-2); line-height: 1.6; margin-top: 0.375rem; }

/* ---------- Casos (teaser) ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.case-teaser { padding: 2rem; display: flex; flex-direction: column; gap: 0.5rem;
  transition: border-color 0.15s, transform 0.15s; }
.case-teaser:hover { border-color: var(--teal-2); transform: translateY(-2px); text-decoration: none; }
.case-teaser .metric { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); line-height: 1; }
.case-teaser .metric small { font-size: 1.25rem; color: var(--slate); font-weight: 700; }
.case-teaser .what { font-size: 0.9375rem; font-weight: 600; color: var(--text); margin-top: 0.5rem; }
.case-teaser .sector { margin-top: auto; padding-top: 1rem; }

/* ---------- Health strip ---------- */
.health-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 2.5rem; align-items: center; padding: 2.5rem 3rem; }
.health-strip img, .health-strip svg { width: 210px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-ring { order: -1; width: min(230px, 55vw); }
  .services-grid, .steps, .cases-grid { grid-template-columns: 1fr 1fr; }
  .health-strip { grid-template-columns: 1fr; text-align: center; }
  .health-strip img { margin: 0 auto; }
  .band { padding: 2.25rem 1.5rem; }
}
@media (max-width: 560px) {
  .services-grid, .steps, .cases-grid { grid-template-columns: 1fr; }
}

/* El CTA del nav mantiene el texto blanco siempre */
.nav-links a.btn { color: #fff; }
.nav-links a.btn:hover { color: #fff; }

/* ---------- Páginas de servicio ---------- */
.hero-sub { background: var(--navy); color: #fff; padding: 3.5rem 0 4rem; }
.hero-sub .crumb { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1.25rem; }
.hero-sub .crumb a { color: rgba(255,255,255,0.55); }
.hero-sub h1 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 880px; }
.hero-sub .lead { max-width: 680px; }

.check-list { list-style: none; }
.check-list li { display: flex; gap: 0.75rem; align-items: baseline;
  font-size: 0.9375rem; color: var(--text-2); line-height: 1.9; }
.check-list li::before { content: ''; width: 8px; height: 8px; border-radius: 50%;
  border: 1.8px solid var(--teal-2); flex-shrink: 0; position: relative; top: -1px; }
.on-dark .check-list li { color: rgba(255,255,255,0.7); }
.on-dark .check-list li::before { border-color: var(--teal); }

/* Tabla comparativa (indexable) */
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.cmp-table th { font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; text-align: left;
  padding: 0.75rem 1rem; color: var(--teal); border-bottom: 1px solid rgba(255,255,255,0.18); }
.cmp-table td { padding: 0.8rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.75); line-height: 1.5; vertical-align: top; }
.cmp-table td:first-child { color: #fff; font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* Datos de mercado */
.data-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.data-strip .cell { padding: 1.5rem 1.75rem; }
.data-strip .n { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.025em; color: var(--navy); }
.data-strip .n small { font-size: 1rem; color: var(--slate); font-weight: 700; }
.data-strip .l { font-size: 0.8125rem; color: var(--text-2); margin-top: 0.375rem; line-height: 1.5; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 0.875rem; margin-top: 2.5rem; }
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; padding: 1.125rem 1.5rem;
  font-weight: 700; font-size: 1rem; color: var(--navy); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.375rem; font-weight: 400; color: var(--teal-2); flex-shrink: 0; }
.faq details[open] summary::after { content: '−'; }
.faq .a { padding: 0 1.5rem 1.25rem; font-size: 0.9375rem; color: var(--text-2); line-height: 1.7; max-width: 62ch; }

@media (max-width: 700px) {
  .data-strip { grid-template-columns: 1fr; }
}

/* Dos columnas iguales (bloques de contenido emparejados) */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.check-list li > span { min-width: 0; }

/* ---------- Casos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.filters button {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--white); color: var(--text-2);
  border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 0.45rem 0.8rem; cursor: pointer; transition: background 0.15s ease-out, color 0.15s ease-out, border-color 0.15s ease-out;
}
.filters button:hover { border-color: var(--teal-2); color: var(--teal-2); }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.case-card { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.case-card .client { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.case-card .sector { font-family: var(--mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.case-card .what { font-size: 0.9375rem; color: var(--text-2); line-height: 1.65; }
.case-card .tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; padding-top: 0.75rem; }
.case-card .tags span {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--teal-2);
  background: var(--off-2); border-radius: 4px; padding: 0.25rem 0.5rem;
}
.case-card[hidden] { display: none; }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cases { grid-template-columns: 1fr; } }

/* ============================================================
   DIFERENCIACIÓN VISUAL (30/07/2026)
   Anti-patrón "Web con gramática de IA por defecto" del Taste Index:
   piezas para que cada página tenga una silueta propia.
   ============================================================ */

/* --- Símbolo Aurora como recurso ambiental (no como logo) --- */
.aurora-glow { position: relative; overflow: hidden; }
.aurora-glow > .glow {
  position: absolute; pointer-events: none; user-select: none;
  opacity: 0.16; filter: blur(0.3px);
}
@media (prefers-reduced-motion: no-preference) {
  .aurora-glow > .glow { animation: ring-spin 240s linear infinite; }
}

/* --- Franja del espectro como divisor de sección --- */
.spectrum-rule { display: flex; height: 3px; border-radius: 3px; overflow: hidden; }
.spectrum-rule i { flex: 1; display: block; }

/* --- Lista editorial numerada (alternativa a la rejilla de tarjetas) --- */
.editorial { border-top: 1px solid var(--border-2); margin-top: 2.5rem; }
.editorial > a, .editorial > div {
  display: grid; grid-template-columns: 2.5rem minmax(8.5rem, 0.8fr) 1.5fr auto; gap: 1.5rem;
  align-items: baseline; padding: 1.6rem 0.5rem;
  border-bottom: 1px solid var(--border-2);
  text-decoration: none; transition: background 0.15s ease-out, transform 0.15s ease-out;
}
.editorial > a:hover { background: var(--white); transform: translateX(0.75rem); text-decoration: none; }
.editorial .idx { font-family: var(--mono); font-size: 0.7rem; font-weight: 700; color: var(--teal-2); }
.editorial .name { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; color: var(--navy); line-height: 1.15; }
.editorial .desc { font-size: 0.9375rem; color: var(--text-2); line-height: 1.65; }
.editorial .go { font-family: var(--mono); font-size: 0.7rem; font-weight: 700; color: var(--teal-2); white-space: nowrap; }
@media (max-width: 860px) {
  .editorial > a, .editorial > div { grid-template-columns: 3rem 1fr; gap: 0.5rem 1rem; }
  .editorial .desc { grid-column: 2; }
  .editorial .go { grid-column: 2; }
}

/* --- Titular a sangre (solo la home) --- */
h1.display { font-size: clamp(2.6rem, 7vw, 5.25rem); line-height: 0.98; letter-spacing: -0.04em; max-width: 16ch; }

/* --- Cabecera pegajosa en bloques a dos columnas --- */
.sticky-split { display: grid; grid-template-columns: minmax(300px, 0.9fr) 1.35fr; gap: 3rem; align-items: start; }
.sticky-split > .aside { position: sticky; top: 6.5rem; }
@media (max-width: 900px) {
  .sticky-split { grid-template-columns: 1fr; gap: 2rem; }
  .sticky-split > .aside { position: static; }
}

/* --- Hero de datos (protagonista numérico) --- */
.data-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-lg); overflow: hidden; }
.data-hero .cell { padding: 1.6rem 1.5rem; border-right: 1px solid rgba(255,255,255,0.14); }
.data-hero .cell:last-child { border-right: none; }
.data-hero .n { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--teal); line-height: 1; }
.data-hero .n small { font-size: 0.5em; }
.data-hero .l { font-size: 0.8125rem; color: rgba(255,255,255,0.55); line-height: 1.5; margin-top: 0.5rem; }
@media (max-width: 760px) {
  .data-hero { grid-template-columns: 1fr; }
  .data-hero .cell { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.14); }
  .data-hero .cell:last-child { border-bottom: none; }
}

/* --- Héroe con raíl lateral de cifras --- */
.hero-rail { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 4rem; align-items: end; }
.hero-rail > .rail { border-left: 1px solid rgba(255,255,255,0.16); padding-left: 1.75rem; display: grid; gap: 1.75rem; }
.hero-rail .rail .n { font-size: 2rem; font-weight: 800; letter-spacing: -0.025em; color: var(--teal); line-height: 1; }
.hero-rail .rail .l { font-size: 0.8125rem; color: rgba(255,255,255,0.5); line-height: 1.5; margin-top: 0.4rem; }
@media (max-width: 900px) {
  .hero-rail { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-rail > .rail { border-left: none; border-top: 1px solid rgba(255,255,255,0.16); padding: 1.75rem 0 0; }
}

/* --- Escalera: filas que avanzan cuando el contenido es una progresión --- */
.ladder { margin-top: 2.5rem; border-bottom: 1px solid var(--border-2); }
.ladder > * {
  display: grid; grid-template-columns: minmax(11rem, 0.45fr) 1fr; gap: 2rem;
  align-items: baseline; padding: 1.5rem 0;
  border-top: 1px solid var(--border-2);
}
.ladder > :nth-child(2) { padding-left: 2.5rem; }
.ladder > :nth-child(3) { padding-left: 5rem; }
.ladder .k { font-family: var(--mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.ladder .d { font-size: 0.9375rem; color: var(--text-2); line-height: 1.7; }
.ladder > .now { border-left: 2px solid var(--teal-2); }
.ladder > .now .k { color: var(--teal-2); }
.ladder > .now .d { color: var(--text); }
@media (max-width: 760px) {
  .ladder > * { grid-template-columns: 1fr; gap: 0.5rem; }
  .ladder > :nth-child(2) { padding-left: 1rem; }
  .ladder > :nth-child(3) { padding-left: 2rem; }
}

/* --- Matriz: rejilla de filetes, sin cromo de tarjeta --- */
.matrix { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 3rem; border-top: 1px solid var(--border-2); }
.matrix > * {
  display: flex; flex-direction: column; gap: 0.65rem; padding: 1.75rem;
  border-bottom: 1px solid var(--border-2); border-right: 1px solid var(--border-2);
}
.matrix > :nth-child(3n) { border-right: none; padding-right: 0; }
.matrix > :nth-child(3n+1) { padding-left: 0; }
.matrix svg.ic { width: 24px; height: 24px; }
.matrix .t { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.015em; color: var(--navy); }
.matrix .d { font-size: 0.9375rem; color: var(--text-2); line-height: 1.65; }
@media (max-width: 860px) {
  .matrix { grid-template-columns: 1fr 1fr; }
  .matrix > * { border-right: 1px solid var(--border-2); padding: 1.5rem; }
  .matrix > :nth-child(3n) { padding-right: 1.5rem; }
  .matrix > :nth-child(3n+1) { padding-left: 1.5rem; }
  .matrix > :nth-child(2n) { border-right: none; padding-right: 0; }
  .matrix > :nth-child(2n+1) { padding-left: 0; }
}
@media (max-width: 560px) {
  .matrix { grid-template-columns: 1fr; }
  .matrix > * { border-right: none !important; padding: 1.5rem 0 !important; }
}

/* --- Héroe centrado (páginas manifiesto) --- */
.hero-center { text-align: center; max-width: 780px; margin: 0 auto; }
.hero-center .eyebrow { justify-content: center; }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-center .hero-ctas { justify-content: center; }

/* --- Capítulos: número en tamaño de display por fila --- */
.chapters { margin-top: 3rem; border-top: 1px solid var(--border-2); }
.chapters > * {
  display: grid; grid-template-columns: 7rem 1fr; gap: 2.5rem;
  align-items: start; padding: 2.25rem 0;
  border-bottom: 1px solid var(--border-2);
}
.chapters .num {
  font-size: 3.25rem; font-weight: 800; line-height: 0.85;
  letter-spacing: -0.045em; color: rgba(15, 31, 51, 0.22);
}
.chapters .t { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.chapters .d { font-size: 0.9375rem; color: var(--text-2); line-height: 1.75; margin-top: 0.5rem; max-width: 64ch; }
@media (max-width: 700px) {
  .chapters > * { grid-template-columns: 3.5rem 1fr; gap: 1.25rem; padding: 1.75rem 0; }
  .chapters .num { font-size: 2rem; }
}

/* --- Héroe a dos columnas de texto: titular a la izquierda, resto a la derecha --- */
.hero-2col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: end; }
.hero-2col h1 { max-width: none; }
@media (max-width: 900px) { .hero-2col { grid-template-columns: 1fr; gap: 2rem; align-items: start; } }

/* --- Franja de cifras a todo el ancho del héroe, con filetes verticales --- */
.hero-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,0.16); margin-top: 3rem; }
.hero-strip > * { padding: 1.5rem 1.75rem; border-right: 1px solid rgba(255,255,255,0.16); }
.hero-strip > :first-child { padding-left: 0; }
.hero-strip > :last-child { border-right: none; }
.hero-strip .n { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em; color: var(--teal); line-height: 1; }
.hero-strip .l { font-size: 0.8125rem; color: rgba(255,255,255,0.5); line-height: 1.5; margin-top: 0.5rem; }
@media (max-width: 760px) {
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip > * { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.16); padding-left: 0; }
  .hero-strip > :last-child { border-bottom: none; }
}

/* --- Cifras apiladas con filete entre ellas --- */
.meta-stack { margin-top: 2.5rem; max-width: 380px; }
.meta-stack > * { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.25rem; align-items: baseline; padding: 0.9rem 0; border-top: 1px solid rgba(255,255,255,0.16); }
.meta-stack > :last-child { border-bottom: 1px solid rgba(255,255,255,0.16); }
.meta-stack .n { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; color: var(--teal); line-height: 1; }
.meta-stack .l { font-size: 0.8125rem; color: rgba(255,255,255,0.5); line-height: 1.5; }

/* --- Héroe partido por la marca (divisiones con logotipo propio) --- */
.hero-brandsplit { display: grid; grid-template-columns: 260px 1fr; gap: 3.5rem; align-items: start; }
.hero-brandsplit > .mark { border-right: 1px solid rgba(255,255,255,0.16); padding-right: 3.5rem; }
.hero-brandsplit > .mark img { width: 100%; max-width: 210px; }
@media (max-width: 900px) {
  .hero-brandsplit { grid-template-columns: 1fr; gap: 2rem; }
  .hero-brandsplit > .mark { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.16); padding: 0 0 2rem; }
}

/* --- Baldosas: filete teal superior por bloque, sin caja --- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 3rem; margin-top: 3rem; }
.tiles > * { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 1.25rem; border-top: 2px solid var(--teal-2); }
.tiles .t { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.015em; color: var(--navy); }
.tiles .d { font-size: 0.9375rem; color: var(--text-2); line-height: 1.65; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* --- Cuadrante 2x2 con cruz de filetes --- */
.quad { display: grid; grid-template-columns: 1fr 1fr; margin-top: 3rem; border-top: 1px solid var(--border-2); }
.quad > * {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 2.25rem 2.5rem 2.25rem 0; border-bottom: 1px solid var(--border-2);
}
.quad > :nth-child(odd) { border-right: 1px solid var(--border-2); }
.quad > :nth-child(even) { padding-left: 2.5rem; padding-right: 0; }
.quad svg.ic { width: 26px; height: 26px; }
.quad .t { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.quad .d { font-size: 0.9375rem; color: var(--text-2); line-height: 1.7; }
@media (max-width: 760px) {
  .quad { grid-template-columns: 1fr; }
  .quad > * { padding: 1.75rem 0 !important; border-right: none !important; }
}

/* --- Lista de definiciones a dos columnas, sin iconos --- */
.deflist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3.5rem; margin-top: 3rem; }
.deflist > * { padding: 1.5rem 0; border-top: 1px solid var(--border-2); }
.deflist > *:last-child, .deflist > *:nth-last-child(2) { border-bottom: 1px solid var(--border-2); }
.deflist .t, .deflist .d { display: block; }
.deflist .t { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.015em; color: var(--navy); }
.deflist .d { font-size: 0.9375rem; color: var(--text-2); line-height: 1.7; margin-top: 0.4rem; }
@media (max-width: 760px) {
  .deflist { grid-template-columns: 1fr; }
  .deflist > *:nth-last-child(2) { border-bottom: none; }
}

/* --- Cifras compactas en línea (héroe discreto) --- */
.meta-inline { display: flex; flex-wrap: wrap; gap: 0 2rem; align-items: baseline; }
.meta-inline > * { display: flex; gap: 0.6rem; align-items: baseline; padding: 0.35rem 0; }
.meta-inline .n { font-size: 1.0625rem; font-weight: 800; color: var(--teal); }
.meta-inline .l { font-size: 0.8125rem; color: rgba(255,255,255,0.5); }

/* --- Registro: catálogo con el nombre como protagonista tipográfico --- */
.register { margin-top: 2.5rem; border-top: 1px solid var(--border-2); }
.register > * {
  display: grid; grid-template-columns: 13rem 1fr 12.5rem; gap: 2rem;
  align-items: baseline; padding: 1.75rem 0.5rem;
  border-bottom: 1px solid var(--border-2);
}
.register .client { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); line-height: 1.1; }
.register .sector { display: block; font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-top: 0.5rem; }
.register .what { font-size: 0.9375rem; color: var(--text-2); line-height: 1.7; }
.register .tags { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; align-self: start; }
.register .tags span {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--teal-2); background: var(--off-2);
  border-radius: 4px; padding: 0.25rem 0.5rem;
}
.register > *[hidden] { display: none; }
@media (max-width: 900px) {
  .register > * { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.5rem 0; }
  .register .tags { justify-content: flex-start; }
}

/* --- Tabla comparativa sobre fondo claro --- */
.cmp-table.light th { color: var(--teal-2); border-bottom-color: var(--border-2); }
.cmp-table.light td { color: var(--text-2); border-bottom-color: var(--border); }
.cmp-table.light td:first-child { color: var(--navy); }

/* --- Dos columnas separadas por filete, sin cromo de tarjeta --- */
.split-rule { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.5rem; }
.split-rule > :first-child { padding-right: 3rem; border-right: 1px solid var(--border-2); }
@media (max-width: 820px) {
  .split-rule { grid-template-columns: 1fr; gap: 2.25rem; }
  .split-rule > :first-child { padding-right: 0; padding-bottom: 2.25rem; border-right: none; border-bottom: 1px solid var(--border-2); }
}

/* --- Línea temporal vertical (alternativa a .steps horizontal) --- */
.timeline-v { margin-top: 3rem; }
.timeline-v > * {
  display: grid; grid-template-columns: 5rem 1fr; gap: 2rem;
  padding: 0 0 2.5rem 1.75rem; position: relative;
}
.timeline-v > *::before {
  content: ''; position: absolute; left: 0; top: 0.4rem;
  width: 9px; height: 9px; border-radius: 50%; background: var(--teal-2);
}
.timeline-v > *:not(:last-child)::after {
  content: ''; position: absolute; left: 4px; top: 1.1rem; bottom: 0;
  width: 1px; background: var(--border-2);
}
.timeline-v .num { font-family: var(--mono); font-size: 0.7rem; font-weight: 700; color: var(--teal-2); grid-row: 1; }
.timeline-v .t, .timeline-v .d { grid-column: 2; }
.timeline-v .t { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.015em; color: var(--navy); }
.timeline-v .d { font-size: 0.9375rem; color: var(--text-2); line-height: 1.7; margin-top: 0.4rem; max-width: 62ch; }
@media (max-width: 700px) {
  .timeline-v > * { grid-template-columns: 1fr; gap: 0.35rem; }
  .timeline-v .t, .timeline-v .d { grid-column: 1; }
}

/* ---------- Nav: menú Servicios (P-01, variante Escaparate, ago-2026) ---------- */
.nav-svc { font-size: 0.9375rem; font-weight: 600; color: var(--text-2); background: none; border: 0; cursor: pointer; font-family: var(--font); padding: 0; }
.nav-svc:hover { color: var(--navy); }
.nav-svc .caret { display: inline-block; margin-left: 0.3rem; font-size: 0.7em; transition: transform 180ms ease-out; }
.nav-svc[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-panel { position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
  border-bottom: 1px solid var(--border-2); box-shadow: 0 24px 48px rgba(15,31,51,0.10);
  opacity: 0; pointer-events: none; transition: opacity 150ms ease-out; }
.nav-panel[data-open] { opacity: 1; pointer-events: auto; }
.nav-panel-inner { max-width: var(--max-w); margin: 0 auto; padding: 2.25rem 2rem; display: grid; grid-template-columns: repeat(3, max-content); justify-content: start; gap: 4.5rem; }
.nav-panel-inner .grp { font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.9rem; }
.nav-panel-inner a { display: block; padding: 0.45rem 0; max-width: 250px; text-decoration: none; }
.nav-panel-inner a .t { display: block; font-size: 0.9375rem; font-weight: 700; color: var(--navy); }
.nav-panel-inner a .d { display: block; font-size: 0.8125rem; color: var(--text-2); line-height: 1.45; margin-top: 0.1rem; }
.nav-panel-inner a:hover .t { color: var(--teal-2); }
.nav-panel-foot { border-top: 1px solid var(--border); }
.nav-panel-foot-inner { max-width: var(--max-w); margin: 0 auto; padding: 0.9rem 2rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.nav-panel-foot-inner a { font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-2); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 0.25rem; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }
.nav-mobile { position: fixed; inset: 0; z-index: 200; background: var(--white); padding: 1.5rem 1.75rem 3rem;
  transform: translateY(-10px); opacity: 0; pointer-events: none; overflow-y: auto;
  transition: opacity 200ms ease-out, transform 200ms ease-out; }
.nav-mobile[data-open] { opacity: 1; transform: none; pointer-events: auto; }
.nav-mobile .close { background: none; border: 0; font-size: 1.5rem; cursor: pointer; float: right; color: var(--navy); line-height: 1; padding: 0.25rem; }
.nav-mobile .grp { font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin: 1.4rem 0 0.4rem; clear: both; }
.nav-mobile a { display: block; font-size: 1rem; font-weight: 600; color: var(--text-2); padding: 0.4rem 0; }
.nav-mobile a.btn { display: inline-block; color: #fff; margin-top: 1.5rem; }
@media (max-width: 900px) {
  .nav-svc { display: none; }
  .nav-burger { display: block; }
  .nav-panel { display: none; }
}
@media (max-width: 900px) {
  .nav-links { margin-left: auto; margin-right: 1rem; }
}

/* ---------- Movimiento: aparición al hacer scroll (pasada apple-design, ago-2026) ---------- */
.rv { opacity: 0; transform: translateY(12px);
  transition: opacity 450ms ease-out, transform 450ms cubic-bezier(0.23, 1, 0.32, 1); }
.rv.in { opacity: 1; transform: none; }

/* ---------- WhatsApp flotante (P-02, ago-2026) ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: 54px; height: 54px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(15, 31, 51, 0.22);
  transition: transform 150ms ease-out, box-shadow 150ms ease-out; }
.wa-float:hover { transform: scale(1.06); box-shadow: 0 10px 26px rgba(15, 31, 51, 0.28); text-decoration: none; }
.wa-float:active { transform: scale(0.97); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }


/* ---------- Accesibilidad: enlace de salto ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
  font-size: 0.875rem; font-weight: 600; }
.skip-link:focus { left: 0; }

/* ---------- Banner de consentimiento (RGPD/AEPD, v3) ---------- */
.consent { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 300;
  max-width: 560px; margin: 0 auto; background: var(--white); color: var(--text);
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(15,31,51,0.24); padding: 1.5rem 1.6rem 1.25rem;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 220ms ease-out, transform 220ms cubic-bezier(0.23,1,0.32,1); }
.consent[data-open] { opacity: 1; transform: none; pointer-events: auto; }
.consent-h { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); margin: 0 0 0.6rem; }
.consent p { font-size: 0.8125rem; color: var(--text-2); line-height: 1.6; margin: 0 0 1rem; }
.consent-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.consent-btn { flex: 1 1 auto; min-width: 120px; justify-content: center; display: inline-flex;
  align-items: center; font-family: var(--font); font-weight: 700; font-size: 0.8125rem;
  padding: 0.6rem 1rem; border-radius: var(--radius); cursor: pointer; transition: all 0.15s ease-out; }
.consent-ghost { background: var(--white); color: var(--navy); border: 1.5px solid var(--border-2); }
.consent-ghost:hover { border-color: var(--navy); }
.consent-accept { background: var(--teal-2); color: #fff; border: 1.5px solid var(--teal-2); }
.consent-accept:hover { background: var(--teal); border-color: var(--teal); }
.consent-btn:active { transform: scale(0.98); }
.consent-links { margin: 0.9rem 0 0 !important; display: flex; gap: 0.6rem; align-items: center; font-size: 0.75rem !important; }
.consent-links a { color: var(--teal-2); font-weight: 600; }
.consent-links span { color: var(--text-3); }
.consent-cat { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 0; border-top: 1px solid var(--border); }
.consent-cat:first-of-type { border-top: none; }
.consent-cat strong { display: block; font-size: 0.875rem; color: var(--navy); }
.consent-cat span { display: block; font-size: 0.75rem; color: var(--text-2); margin-top: 0.15rem; line-height: 1.4; }
.consent-sw { position: relative; flex: 0 0 auto; width: 42px; height: 24px; }
.consent-sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.consent-sw span { position: absolute; inset: 0; background: var(--border-2); border-radius: 999px; transition: background 0.15s; }
.consent-sw span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%; transition: transform 0.18s cubic-bezier(0.23,1,0.32,1); }
.consent-sw input:checked + span { background: var(--teal-2); }
.consent-sw input:checked + span::after { transform: translateX(18px); }
.consent-sw input:disabled + span { background: var(--teal-2); opacity: 0.5; }
.consent-sw input:focus-visible + span { outline: 2px solid var(--teal-2); outline-offset: 2px; }
@media (max-width: 560px) { .consent { left: 12px; right: 12px; bottom: 12px; } .consent-btn { flex: 1 1 100%; } }
