/* ==========================================================================
   ThyoneSec — sistema visual v2

   Tipografía servida desde el propio dominio. No se usa Google Fonts a
   propósito: una consultora de protección de datos no debería filtrar la IP
   de cada visitante a un tercero solo por la letra.
   ========================================================================== */

@font-face { font-family:'Archivo'; font-style:normal; font-weight:500; font-display:swap;
  src:url('/assets/fonts/archivo-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family:'Archivo'; font-style:normal; font-weight:600; font-display:swap;
  src:url('/assets/fonts/archivo-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family:'Archivo'; font-style:normal; font-weight:700; font-display:swap;
  src:url('/assets/fonts/archivo-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family:'Archivo'; font-style:normal; font-weight:800; font-display:swap;
  src:url('/assets/fonts/archivo-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family:'InterVar'; font-style:normal; font-weight:400; font-display:swap;
  src:url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family:'InterVar'; font-style:normal; font-weight:500; font-display:swap;
  src:url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family:'InterVar'; font-style:normal; font-weight:600; font-display:swap;
  src:url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family:'PlexMono'; font-style:normal; font-weight:500; font-display:swap;
  src:url('/assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

/* --------------------------------------------------------------- tokens -- */

:root {
  /* Superficies claras — el gris tiene sesgo frío hacia el navy, no es gris puro */
  --surface:      #ffffff;
  --surface-alt:  #eef1f5;
  --surface-tint: #dfe5ec;

  /* Superficies oscuras */
  --navy-900: #081a2c;
  --navy-800: #0d2842;
  --navy-700: #123761;

  /* Texto sobre claro */
  --ink:   #0b1b2b;   /* 17.4:1 sobre blanco */
  --muted: #47566a;   /*  7.5:1 sobre blanco */

  /* Texto sobre oscuro */
  --on-dark:    #f2f6fa;
  --muted-dark: #b0c2d4;

  /* Acento: dos variantes obligatorias según la superficie */
  --copper:       #9c4f12;  /* superficies claras */
  --copper-light: #e3a05f;  /* superficies oscuras */
  --navy-link:    #17497a;

  /* Líneas */
  --line:             #d7dee7;
  --line-strong:      #8c8f95;  /* bordes de controles sobre claro, >3:1 */
  --line-dark:        #1e3a57;
  --line-dark-strong: #5a7996;  /* bordes de controles sobre oscuro, >3:1 */

  /* Ritmo */
  --wrap: 1220px;
  --gutter: 24px;
  --radius: 3px;
  --shadow-md: 0 18px 44px rgba(8, 26, 44, .16);

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'InterVar', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'PlexMono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Escala tipográfica fluida */
  --t-display: clamp(2.35rem, 4.9vw, 4.05rem);
  --t-h1:      clamp(2.2rem, 4.6vw, 3.6rem);
  --t-h2:      clamp(1.75rem, 3.2vw, 2.7rem);
  --t-h3:      clamp(1.1rem, 1.7vw, 1.3rem);
}

/* ---------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { max-width: 100%; display: block; }

a { color: var(--navy-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper); }

:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; border-radius: 2px; }
.section-dark :focus-visible, .site-footer :focus-visible,
.site-topbar :focus-visible, .site-hero :focus-visible { outline-color: var(--copper-light); }

h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: -.028em; line-height: 1.08;
  margin: 0 0 .5em; text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -.016em; line-height: 1.25; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--copper); color: #fff; padding: 12px 18px; font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* --------------------------------------------------------------- layout -- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(60px, 8.5vw, 116px); }
.section-alt  { background: var(--surface-alt); }
.section-tint { background: var(--surface-tint); }
.section-dark { background: var(--navy-900); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: var(--on-dark); }
.section-dark p { color: var(--muted-dark); }
.section-dark a { color: var(--copper-light); }

/* La etiqueta de sección va en mono: en este oficio los identificadores
   (A.5.1, EGSI 4.2, art. 7 LOPDP) se leen en monoespaciada. */
.eyebrow {
  font-family: var(--font-mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--copper);
  margin: 0 0 18px; display: flex; align-items: center; gap: 14px;
}
.eyebrow::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); max-width: 140px; }
.section-dark .eyebrow { color: var(--copper-light); }
.section-dark .eyebrow::after { background: var(--line-dark); }

.section-head { max-width: 780px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.18rem); line-height: 1.6; color: var(--muted); }
.section-dark .lead { color: var(--muted-dark); }
.section-head h2 { margin-bottom: .4em; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: .06em; }

/* -------------------------------------------------------------- botones -- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .95rem; font-weight: 600;
  padding: 13px 26px; border-radius: var(--radius);
  border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }

a.btn-primary, button.btn-primary,
.site-nav a.btn-primary, .card a.btn-primary,
.section-dark a.btn-primary, .section-dark .card a.btn-primary {
  background: var(--copper); color: #fff; border-color: transparent;
}
a.btn-primary:hover, button.btn-primary:hover,
.site-nav a.btn-primary:hover, .section-dark .card a.btn-primary:hover {
  background: #7d3e0d; color: #fff;
}

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--copper); color: var(--copper); }
.section-dark .btn-ghost, .site-hero .btn-ghost { color: var(--on-dark); border-color: var(--line-dark-strong); }
.section-dark .btn-ghost:hover, .site-hero .btn-ghost:hover { color: var(--copper-light); border-color: var(--copper-light); }

.btn-lg { padding: 17px 32px; font-size: 1.02rem; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; text-decoration: none;
}
.arrow-link span[aria-hidden] { transition: transform .18s ease; }
.arrow-link:hover span[aria-hidden] { transform: translateX(5px); }

/* =================================================== marco de imagen ===== */
/* Un solo tratamiento duotono para todas las imágenes del sitio. Las que
   vienen incluidas son composiciones en escala de grises; al reemplazarlas
   por fotografías reales del mismo tamaño, el color lo pone este CSS y el
   resultado se ve idéntico. No hay que tocar nada más.                      */

/* Duotono real: el fondo del marco aporta la sombra (navy), la imagen en
   escala de grises se compone en `screen` sobre él — los negros quedan navy y
   los blancos siguen blancos — y la capa de arriba multiplica por un crema
   cobrizo que tiñe solo las luces. Sirve igual para estas composiciones y
   para una fotografía. */
.frame {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(155deg, #16456f 0%, #0d2842 62%, #081a2c 100%);
}
.frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(1.06);
  mix-blend-mode: screen;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(200deg, #ffe0bf 0%, #f3ddc6 55%, #e6e9ee 100%);
  mix-blend-mode: multiply;
}
.frame-16x9 { aspect-ratio: 16 / 9; }
.frame-4x5  { aspect-ratio: 4 / 5; }
.frame-3x2  { aspect-ratio: 3 / 2; }

/* ================================================================ topbar - */

.site-topbar { background: var(--navy-900); color: var(--muted-dark); font-size: .82rem; }
.site-topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 2px 26px; align-items: center;
  justify-content: space-between; min-height: 44px; padding-block: 4px;
}
.site-topbar a {
  color: var(--muted-dark); text-decoration: none;
  display: inline-block; padding-block: 7px; min-height: 24px;
}
.site-topbar a:hover { color: var(--copper-light); text-decoration: underline; }
.topbar-meta { display: flex; flex-wrap: wrap; gap: 2px 26px; align-items: center; }

/* ================================================================ navbar - */

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 80px; position: relative;
}

.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.36rem; letter-spacing: -.03em; line-height: 1; }
.brand-name b { font-weight: 800; color: var(--copper); }
.brand-tag {
  display: block; font-family: var(--font-mono); font-size: .58rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 5px;
}

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  font-family: var(--font-display); font-size: .94rem; font-weight: 500;
  color: var(--ink); text-decoration: none; padding: 10px 15px; border-radius: var(--radius);
}
.site-nav a:hover { color: var(--copper); background: var(--surface-alt); }
.site-nav a[aria-current="page"] { color: var(--copper); box-shadow: inset 0 -2px 0 var(--copper); }
.nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none; align-items: center; gap: 9px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 9px 14px; font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  color: var(--ink); cursor: pointer;
}
.nav-toggle .bars { display: grid; gap: 3.5px; }
.nav-toggle .bars i { display: block; width: 17px; height: 2px; background: currentColor; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: 8px var(--gutter) 22px;
  }
  .site-nav[hidden] { display: none; }
  .site-nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: none; }
  .nav-cta { margin: 18px 0 0; justify-content: center; }
}

/* ================================================================== hero - */

.site-hero { position: relative; background: var(--navy-900); color: var(--on-dark); overflow: hidden; }
.site-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 620px at 72% 18%, rgba(227,160,95,.15), transparent 64%),
    radial-gradient(760px 520px at 6% 96%, rgba(23,73,122,.6), transparent 68%);
}

.hero-grid {
  position: relative; z-index: 2;
  display: grid; gap: clamp(36px, 5vw, 72px);
  grid-template-columns: 1fr;
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
}

.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--copper-light);
  border: 1px solid var(--line-dark-strong); border-radius: 999px;
  padding: 8px 18px; margin-bottom: 28px;
}
.hero-kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--copper-light); flex: none;
}

.site-hero h1 {
  color: var(--on-dark); font-size: var(--t-display); font-weight: 800;
  letter-spacing: -.035em; line-height: 1.02; margin-bottom: 26px;
}
.site-hero h1 em { font-style: normal; color: var(--copper-light); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted-dark); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Diagrama orbital: lienzo dibujado en el cliente, sin imágenes */
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin-inline: auto; width: 100%; }
.hero-visual canvas { width: 100%; height: 100%; }
.hero-visual-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  text-align: center; pointer-events: none;
}
.hero-visual-label b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.03em; color: var(--on-dark);
}
.hero-visual-label span {
  display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--copper-light); margin-top: 8px;
}

/* Banda de datos bajo el hero */
.hero-stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px; background: var(--line-dark); border-top: 1px solid var(--line-dark);
}
.hero-stats > div { background: var(--navy-900); padding: 28px 22px 32px; }
.hero-stats dt {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800; letter-spacing: -.03em; color: var(--copper-light); line-height: 1;
}
.hero-stats dd { margin: 12px 0 0; font-size: .87rem; color: var(--muted-dark); }

/* ============================================ tarjeta con imagen (pilar) = */
/* El patrón que define la referencia: portada a sangre, título encima.      */

.pillars { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.pillar {
  position: relative; display: block; overflow: hidden;
  background: var(--navy-900); color: var(--on-dark); text-decoration: none;
  border-radius: var(--radius);
}
.pillar .frame { aspect-ratio: 4 / 5; }
.pillar:hover .frame img { transform: scale(1.06); }
/* El velo sube solo lo necesario para que el texto llegue a 4.5:1; por encima
   de la mitad de la tarjeta la imagen se ve limpia. */
.pillar-veil {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(to top, rgba(6,20,35,.96) 30%, rgba(6,20,35,.72) 50%, rgba(6,20,35,0) 78%);
}
.pillar-body { position: absolute; z-index: 4; inset: auto 0 0 0; padding: 24px 22px 26px; }
.pillar-body h3 { color: #fff; margin-bottom: 10px; font-size: 1.24rem; }
.pillar-body p { color: #dbe5ef; font-size: .92rem; line-height: 1.5; margin: 0; }
.pillar-num {
  position: absolute; z-index: 4; top: 18px; left: 22px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em;
  color: var(--copper-light);
}

/* ====================================== navegador de secciones (tiles) === */

.tiles { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tile {
  position: relative; display: block; text-decoration: none; overflow: hidden;
  border-radius: var(--radius); background: var(--navy-900);
}
.tile .frame { aspect-ratio: 3 / 2; }
.tile:hover .frame img { transform: scale(1.06); }
.tile-veil {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(to top, rgba(8,26,44,.92) 22%, rgba(8,26,44,.2) 100%);
}
.tile-label {
  position: absolute; z-index: 4; inset: auto 0 0 0; padding: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.tile-label b {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: #fff; letter-spacing: -.015em;
}
.tile-label span { color: var(--copper-light); font-size: 1.1rem; line-height: 1; transition: transform .2s ease; }
.tile:hover .tile-label span { transform: translateX(5px); }

/* ============================================ índice numerado de servicios */
/* Seis tarjetas idénticas aplanan la jerarquía. Un índice con regla de
   cobre y apertura al pasar el cursor se lee como un documento, no como
   una plantilla.                                                            */

.svc-index { border-top: 1px solid var(--line); }
.section-dark .svc-index { border-top-color: var(--line-dark); }

.svc {
  display: grid; gap: 4px 28px; align-items: start;
  grid-template-columns: auto 1fr;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; position: relative;
}
.section-dark .svc { border-bottom-color: var(--line-dark); }
@media (min-width: 820px) {
  .svc { grid-template-columns: 74px minmax(0, 1.05fr) minmax(0, 1.25fr) auto; align-items: center; padding: 30px 0; }
}
.svc::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--copper); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.svc:hover::after, .svc:focus-visible::after { transform: scaleX(1); }

.svc-num { font-family: var(--font-mono); font-size: .8rem; color: var(--copper); letter-spacing: .1em; }
.section-dark .svc-num { color: var(--copper-light); }
.svc-title { font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; letter-spacing: -.02em; line-height: 1.25; }
.svc-desc { color: var(--muted); font-size: .95rem; grid-column: 2 / -1; }
.section-dark .svc-desc { color: var(--muted-dark); }
@media (min-width: 820px) { .svc-desc { grid-column: auto; } }
.svc-go { color: var(--copper); font-size: 1.2rem; line-height: 1; transition: transform .2s ease; grid-column: 2 / -1; }
.section-dark .svc-go { color: var(--copper-light); }
@media (min-width: 820px) { .svc-go { grid-column: auto; } }
.svc:hover .svc-go { transform: translateX(6px); }

/* =========================================== bloque destacado (split) ==== */

.feature { display: grid; gap: clamp(30px, 4.5vw, 64px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 920px) { .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.feature-media .frame { aspect-ratio: 5 / 4; border-radius: var(--radius); }
.feature-reverse .feature-media { order: -1; }
@media (min-width: 920px) { .feature-reverse .feature-media { order: 1; } }

.deliverables { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 11px; }
.deliverables li { position: relative; padding-left: 26px; color: var(--muted); font-size: .96rem; }
.deliverables li::before {
  content: ""; position: absolute; left: 0; top: .58em; width: 9px; height: 9px;
  border: 1.5px solid var(--copper); border-radius: 1px;
}
.section-dark .deliverables li { color: var(--muted-dark); }
.section-dark .deliverables li::before { border-color: var(--copper-light); }

/* ============================================================ tarjetas === */

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 32px; display: flex; flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--copper); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--muted); font-size: .97rem; }
.card-icon { width: 44px; height: 44px; margin-bottom: 20px; color: var(--copper); }
.card ul {
  margin: 20px 0 0; padding: 20px 0 0; list-style: none;
  border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted);
}
.card ul li { padding-left: 22px; position: relative; margin-bottom: 8px; }
.card ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border: 1.5px solid var(--copper); border-radius: 1px;
}
.card-foot { margin-top: auto; padding-top: 22px; }
.card-dur { font-family: var(--font-mono); font-size: .8rem; color: var(--copper); margin-top: 6px; letter-spacing: .04em; }
.card-nota { font-size: .9rem; }

/* Una tarjeta clara dentro de una banda oscura conserva su propia escala */
.section-dark .card h3 { color: var(--ink); }
.section-dark .card p { color: var(--muted); }
.section-dark .card ul { color: var(--muted); border-top-color: var(--line); }
.section-dark .card a { color: var(--navy-link); }
.section-dark .card a:hover { color: var(--copper); }

/* ======================================================= línea de fases == */
/* Una secuencia real: la regla horizontal y los nodos dicen que hay orden.  */

.timeline { display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 860px) { .timeline { grid-template-columns: repeat(4, 1fr); } }

.phase { position: relative; padding: 34px 26px 30px 0; }
@media (min-width: 860px) { .phase { padding: 40px 28px 30px 0; } }
.phase::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 1px; background: var(--line-dark);
}
.phase::after {
  content: ""; position: absolute; left: 0; top: -5px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--copper-light);
}
.phase-num {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em;
  color: var(--copper-light); display: block; margin-bottom: 14px;
}
.phase h3 { font-size: 1.16rem; color: var(--on-dark); margin-bottom: .45em; }
.phase p { font-size: .93rem; color: var(--muted-dark); margin: 0; }
.phase-dur { font-family: var(--font-mono); font-size: .76rem; color: var(--copper-light); margin-bottom: 12px; letter-spacing: .05em; }
.phase-out { margin-top: 14px; font-size: .9rem; color: var(--muted-dark); }
.phase-out strong { color: var(--on-dark); font-weight: 600; }

/* Versión clara de la línea de fases */
.timeline-light .phase::before { background: var(--line); }
.timeline-light .phase::after { background: var(--copper); }
.timeline-light .phase-num, .timeline-light .phase-dur { color: var(--copper); }
.timeline-light .phase h3 { color: var(--ink); }
.timeline-light .phase p, .timeline-light .phase-out { color: var(--muted); }
.timeline-light .phase-out strong { color: var(--ink); }

/* ================================================================= chips = */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .04em;
  border: 1px solid var(--line-strong); border-radius: 2px; padding: 9px 15px;
  color: var(--ink); background: transparent;
}
.section-dark .chip { border-color: var(--line-dark-strong); color: var(--on-dark); }

/* ========================================================== credenciales = */

.credential-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; align-items: start; }
.credential { display: flex; gap: 14px; align-items: flex-start; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.credential svg { width: 26px; height: 26px; flex: none; color: var(--copper); margin-top: 2px; }
.credential strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: .98rem; }
.section-dark .credential { color: var(--muted-dark); }
.section-dark .credential strong { color: var(--on-dark); }
.section-dark .credential svg { color: var(--copper-light); }

/* =============================================================== tablas == */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 620px; }
thead th {
  background: var(--navy-900); color: var(--on-dark); text-align: left;
  font-family: var(--font-mono); font-weight: 500; font-size: .76rem;
  letter-spacing: .1em; text-transform: uppercase; padding: 15px 18px;
}
tbody td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { color: var(--ink); font-weight: 600; }
tbody tr:nth-child(even) { background: var(--surface-alt); }

/* ================================================================== faq == */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 24px 46px 24px 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.06rem;
  letter-spacing: -.015em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--copper); line-height: 1; font-family: var(--font-mono);
}
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--copper); }
.faq .faq-body { padding: 0 46px 26px 0; color: var(--muted); font-size: .98rem; max-width: 74ch; }

/* ============================================================ banda cta == */

.cta-band { background: var(--navy-800); color: var(--on-dark); position: relative; overflow: hidden; }
.cta-band .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 30px; padding-block: clamp(48px, 6.5vw, 80px); position: relative; z-index: 1;
}
.cta-band h2 { margin: 0 0 .35em; color: var(--on-dark); }
.cta-band p { margin: 0; color: var(--muted-dark); max-width: 560px; }

/* ============================================================ formulario = */

.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .9rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 13px 15px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  border-color: var(--copper); outline: 2px solid var(--copper); outline-offset: 0;
}
.field .error { font-size: .85rem; color: #a3160f; font-weight: 500; }
.field label.consent, .consent {
  display: flex; gap: 11px; align-items: flex-start; font-size: .92rem;
  font-weight: 400; color: var(--muted); line-height: 1.55;
}
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--copper); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); font-size: .94rem; }
.form-status[data-state="ok"]   { background: #e6f4ea; color: #12492a; border: 1px solid #9ccfb0; }
.form-status[data-state="fail"] { background: #fdeceb; color: #8a1109; border: 1px solid #e4a9a4; }
.form-status[hidden] { display: none; }

/* ================================================================ footer = */

.site-footer { background: var(--navy-900); color: var(--muted-dark); font-size: .93rem; }
.site-footer .wrap { padding-block: clamp(52px, 6.5vw, 80px) 0; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 680px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; } }
.site-footer .foot-h {
  font-family: var(--font-mono); font-weight: 500; font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark);
  margin: 0 0 18px; line-height: 1.3;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--muted-dark); text-decoration: none; }
.site-footer a:hover { color: var(--copper-light); text-decoration: underline; }
.site-footer .brand { color: var(--on-dark); }
.site-footer .brand:hover { color: var(--on-dark); }
.site-footer .brand-tag { color: var(--muted-dark); }
.site-footer .brand-name b { color: var(--copper-light); }
.footer-blurb { margin-top: 20px; max-width: 330px; color: var(--muted-dark); }
.footer-bottom {
  margin-top: 46px; border-top: 1px solid var(--line-dark); padding-block: 24px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .85rem;
}

/* =========================================================== flotante WA = */

.wa-float-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.wa-float {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy-900); color: #4ade80; display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(8,26,44,.4); border: 1px solid var(--line-dark-strong);
}
.wa-float:hover { background: var(--navy-700); color: #6ee7a0; }
.wa-float svg { width: 28px; height: 28px; }

/* ============================================================== internas = */

.page-head { background: var(--navy-900); color: var(--on-dark); position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(760px 420px at 84% 6%, rgba(227,160,95,.14), transparent 62%);
}
.page-head .wrap { position: relative; z-index: 1; padding-block: clamp(56px, 7.5vw, 104px); }
.page-head h1 { color: var(--on-dark); margin-bottom: .35em; font-weight: 800; letter-spacing: -.033em; }
.page-head p { color: var(--muted-dark); max-width: 700px; font-size: 1.08rem; }
.breadcrumb { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; color: var(--muted-dark); margin-bottom: 22px; text-transform: uppercase; }
.breadcrumb a { color: var(--muted-dark); }
.breadcrumb a:hover { color: var(--copper-light); }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.3em; }
.prose h3 { margin-top: 1.8em; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 22px; color: var(--muted); }
.prose li { margin-bottom: 8px; }
.prose table { min-width: 0; }

.split { display: grid; gap: clamp(32px, 5vw, 68px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }

.note { border-left: 3px solid var(--copper); background: var(--surface-alt); padding: 20px 24px; font-size: .95rem; color: var(--muted); }

.contact-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 0 !important; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; padding-left: 0 !important; }
.contact-list li::before { content: none !important; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--copper); margin-top: 3px; }
.contact-list strong { display: block; font-family: var(--font-display); color: var(--ink); }
.contact-list span, .contact-list a { font-size: .95rem; color: var(--muted); }

.center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
