/* ATIP · diseño original (verde salvia, Source Serif 4 + Inter), portado del sitio inicial.
   Bloque 1: estilos originales. Bloque 2 (al final): adaptaciones para el sitio de varias páginas. */
:root {
  --bg: #FFFFFF;
  --alt: #F4F7F8;
  --surface: #FFFFFF;
  --ink: #162229;
  --ink-soft: #2C3E47;
  --muted: #52636E;
  --line: #DCE4E8;
  --line-strong: #C5D2D8;
  --brand: #146C60;
  --brand-dark: #0E524A;
  --brand-deep: #0A3832;
  --brand-soft: #E8F3F1;
  --brand-soft-line: #B8DDD7;
  --accent: #9A4F20;
  --accent-soft: #FDF3EC;
  --accent-line: #EED0BA;
  --danger: #A63A2E;
  --success: #146C60;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --ease-slide: cubic-bezier(0.22, 1, 0.36, 1);
  /* Curva de las hojas de iOS: arranque rápido y llegada suave, sin rebote */
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.66;
  font-size: 16px;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--ink);
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: -0.012em;
  overflow-wrap: break-word;
  padding-block: 0.04em;
}

h1 { font-size: clamp(1.75rem, 3.6vw, 2.8rem); }
h2 { font-size: clamp(1.42rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.2rem; line-height: 1.32; }
h4 { font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 600; line-height: 1.4; }

p {
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: break-word;
}

a, button {
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

.wrap {
  width: min(1160px, 92%);
  max-width: 100%;
  margin-inline: auto;
}

/* PREVENCIÓN UNIVERSAL DE DESBORDAMIENTO EN PANTALLA DIVIDIDA (SPLIT-SCREEN) */
.hero-grid > *,
.page-header-grid > *,
.editorial-split > *,
.bento-asymmetric > *,
.roi-box > *,
.plan-showcase > *,
.quote-banner > *,
.footer-grid > *,
.form-grid-2 > *,
.roi-metrics-grid > *,
.radar-legend > * {
  min-width: 0;
  max-width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

.lead {
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--ink-soft);
  max-width: 64ch;
}

/* MOTOR DE DESLIZAMIENTO SUAVE ENTRE SECCIONES (HARDWARE ACCELERATED) */
#app {
  min-height: 76vh;
  position: relative;
  overflow-x: hidden;
}

.view-stage {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.slide-in-right {
  animation: slideInRight 0.42s var(--ease-slide) forwards;
}

.slide-in-left {
  animation: slideInLeft 0.42s var(--ease-slide) forwards;
}

.slide-out-left {
  animation: slideOutLeft 0.18s ease-in forwards;
}

.slide-out-right {
  animation: slideOutRight 0.18s ease-in forwards;
}

@keyframes slideInRight {
  0% { opacity: 0; transform: translate3d(42px, 0, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes slideInLeft {
  0% { opacity: 0; transform: translate3d(-42px, 0, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes slideOutLeft {
  0% { opacity: 1; transform: translate3d(0, 0, 0); }
  100% { opacity: 0; transform: translate3d(-28px, 0, 0); }
}

@keyframes slideOutRight {
  0% { opacity: 1; transform: translate3d(0, 0, 0); }
  100% { opacity: 0; transform: translate3d(28px, 0, 0); }
}

/* ANIMACIÓN ESCALONADA DE TARJETAS */
.view-stage .card,
.view-stage .quote-banner,
.view-stage .table-wrap,
.view-stage .form-card,
.view-stage .roi-box {
  animation: subtleCardSlide 0.46s var(--ease-slide) both;
}

.view-stage .bento-asymmetric > :nth-child(1) { animation-delay: 0.03s; }
.view-stage .bento-asymmetric > :nth-child(2) { animation-delay: 0.08s; }
.view-stage .bento-asymmetric > :nth-child(3) { animation-delay: 0.13s; }
.view-stage .bento-asymmetric > :nth-child(4) { animation-delay: 0.18s; }
.view-stage .bento-asymmetric > :nth-child(5) { animation-delay: 0.23s; }
.view-stage .bento-asymmetric > :nth-child(6) { animation-delay: 0.28s; }

@keyframes subtleCardSlide {
  0% { opacity: 0; transform: translate3d(16px, 0, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* BOTONES LIBRES DE SOMBRAS INVASIVAS Y SIN TEXTO CORTADO */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  min-height: 44px;
  padding: 0.76rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.91rem;
  line-height: 1.35;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.22s var(--ease-slide), color 0.22s var(--ease-slide), border-color 0.22s var(--ease-slide), transform 0.16s ease;
  box-shadow: none !important;
  text-align: center;
  white-space: normal;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.72;
  cursor: default;
}

.btn-primary {
  background: var(--brand);
  color: #FFFFFF;
  border-color: var(--brand);
}
.btn-primary:hover:not(:disabled) {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--brand-soft);
}

.btn-hero-light {
  background: #FFFFFF;
  color: var(--brand-deep);
  border-color: #FFFFFF;
}
.btn-hero-light:hover {
  background: var(--brand-soft);
  border-color: var(--brand-soft);
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #FFFFFF;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.91rem;
  line-height: 1.4;
  color: var(--brand);
  background: none;
  border: none;
  padding: 0.35rem 0;
  transition: gap 0.22s var(--ease-slide), color 0.2s ease;
  text-align: left;
}
.btn-link:hover {
  color: var(--brand-dark);
  gap: 0.58rem;
}

/* CABECERA Y BARRA DE ACCESO MÓVIL / PANTALLA DIVIDIDA DESLIZABLE */
header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding-block: 0.4rem;
  gap: 0.65rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.16rem;
  line-height: 1.25;
  color: var(--ink);
  background: none;
  border: none;
  text-align: left;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  font-size: 1.12rem;
  flex-shrink: 0;
}

.brand-sub {
  font-size: 0.71rem;
  font-weight: 500;
  color: var(--muted);
  display: block;
  line-height: 1.25;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: nowrap;
}

.menu button {
  position: relative;
  background: none;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  padding: 0.45rem 0.15rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.menu button:hover {
  color: var(--ink);
}

.menu button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.26s var(--ease-slide);
}

.menu button.active {
  color: var(--brand);
  font-weight: 600;
}
.menu button.active::after {
  transform: scaleX(1);
}

/* TIRA DE PESTAÑAS DESLIZABLE PARA MÓVIL Y PANTALLA DIVIDIDA */
.mobile-pill-bar {
  display: none;
  overflow-x: auto;
  white-space: nowrap;
  gap: 0.42rem;
  padding: 0.55rem 4%;
  background: var(--alt);
  border-top: 1px solid var(--line);
  scrollbar-width: none;
}
.mobile-pill-bar::-webkit-scrollbar { display: none; }

.mobile-pill {
  display: inline-block;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.81rem;
  line-height: 1.35;
  font-weight: 600;
  background: #FFFFFF;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: all 0.22s var(--ease-slide);
}

.mobile-pill.active {
  background: var(--brand);
  color: #FFFFFF;
  border-color: var(--brand);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

/* BOTÓN DE LAS TRES BARRAS SIEMPRE ACTIVO */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  background: #FFFFFF;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.burger:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.24s var(--ease-slide), opacity 0.2s ease;
}

.burger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* MENÚ LATERAL: hoja que entra y sale por el borde derecho sobre una capa que atenúa la página.
   Vive fuera de <header>: el backdrop-filter de la cabecera convertiría a la cabecera en su
   contenedor y el menú quedaría pegado a ella en vez de a la ventana. */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 24, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s var(--ease-sheet);
  z-index: 1040;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 88vw);
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px 0 0 20px;
  box-shadow: -24px 0 60px rgba(16, 32, 29, 0.18);
  padding: max(1.15rem, env(safe-area-inset-top)) 1.35rem calc(2rem + env(safe-area-inset-bottom)) 1.35rem;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.42s var(--ease-sheet);
  z-index: 1050;
  display: flex;
  flex-direction: column;
}

.drawer.open { transform: translate3d(0, 0, 0); }
/* Mientras el dedo arrastra, la hoja lo sigue 1:1, sin transición */
.drawer.is-dragging, .drawer-backdrop.is-dragging { transition: none; }

@media (prefers-reduced-transparency: reduce) {
  .drawer { background: #FFFFFF; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Encabezado prolijo dentro del Drawer con botón de cierre explícito */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.drawer-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.drawer-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--alt);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.drawer-close-btn:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-color: var(--brand);
}

.drawer-close-btn:active {
  transform: scale(0.95);
}

.drawer-section-title {
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.drawer-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--alt);
  padding: 0.76rem 0.78rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.35;
  color: var(--ink);
  transition: background-color 0.2s ease, padding-left 0.22s var(--ease-slide);
}

.drawer-nav button.active,
.drawer-nav button:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding-left: 1.05rem;
}

.drawer-box {
  background: var(--alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.85rem;
}

.drawer-box h4 { font-size: 0.9rem; margin-bottom: 0.28rem; color: var(--ink); }
.drawer-box p { font-size: 0.81rem; margin-bottom: 0.68rem; }

/* ESTRUCTURA Y GRILLAS ASIMÉTRICAS ORTOGONALES (0 DEG) */
.page { padding: 3.3rem 0; }
.page-alt {
  background: var(--alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-header {
  background: var(--alt);
  border-bottom: 1px solid var(--line);
  padding: 2.7rem 0 2.3rem;
}

.page-header-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 1.8rem;
  align-items: end;
}

.page-header-meta {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
}

.page-header-meta strong {
  display: block;
  font-size: 0.87rem;
  color: var(--ink);
  margin-bottom: 0.24rem;
}

.page-header-meta p { font-size: 0.84rem; line-height: 1.55; }

/* HERO Y RADAR ORGANIZACIONAL ATIP CON VIEWBOX AMPLIO SIN CORTES */
.hero {
  background: linear-gradient(135deg, #0D2F2A 0%, #124E45 60%, #146C60 100%);
  color: #FFFFFF;
  padding: 3.3rem 0 3.7rem;
  border-bottom: 1px solid #0D2F2A;
}

.hero-grid {
  display: grid;
  grid-template-columns: 6.1fr 5.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 { color: #FFFFFF; margin-bottom: 1rem; }

.hero-lead {
  color: #D9EAE6;
  font-size: 1.01rem;
  line-height: 1.68;
  margin-bottom: 1.45rem;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.05rem;
}

.hero-note {
  font-size: 0.82rem;
  color: #B4D4CE;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.metric-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 0.88rem 0.95rem;
}

.metric-box b {
  display: block;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.25rem;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.metric-box span {
  font-size: 0.78rem;
  color: #C7E0DB;
  line-height: 1.38;
  display: block;
}

.radar-panel {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  color: var(--ink);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 1.3rem;
}

.radar-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.68rem;
  border-bottom: 1px solid var(--line);
}

.radar-title { font-weight: 700; font-size: 0.93rem; color: var(--ink); line-height: 1.35; }
.radar-subtitle { font-size: 0.77rem; color: var(--muted); line-height: 1.4; margin-top: 0.12rem; }

.radar-toggle {
  display: inline-flex;
  background: var(--alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px;
  flex-shrink: 0;
}

.radar-btn {
  background: transparent;
  border: none;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.36rem 0.65rem;
  border-radius: 4px;
  transition: all 0.22s var(--ease-slide);
}

.radar-btn.active {
  background: var(--brand);
  color: #FFFFFF;
}

.radar-btn[data-radar="riesgo"].active {
  background: var(--accent);
  color: #FFFFFF;
}

#radarPolygon {
  transition: all 0.42s var(--ease-slide);
}

.radar-svg-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0.25rem 0;
}

.radar-svg-wrap svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  overflow: visible;
  display: block;
}

.radar-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.48rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.radar-stat {
  background: var(--alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.48rem 0.68rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.77rem;
  line-height: 1.35;
  animation: slideInRight 0.3s var(--ease-slide) both;
}

.radar-stat strong { color: var(--brand-dark); font-weight: 700; flex-shrink: 0; font-size: 0.75rem; }

.radar-stat.stat-riesgo {
  background: #FDF7F3;
  border-color: var(--accent-line);
}

.radar-stat.stat-riesgo strong {
  color: #8C471B;
}

.radar-stat.stat-optimo {
  background: var(--brand-soft);
  border-color: var(--brand-soft-line);
}

.radar-stat.stat-optimo strong {
  color: var(--brand-dark);
}

.radar-empirical-note {
  margin-top: 0.6rem;
  padding: 0.55rem 0.72rem;
  border-radius: 6px;
  background: var(--alt);
  border-left: 3px solid var(--brand);
  font-size: 0.73rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.radar-empirical-note.note-riesgo {
  background: #FDF7F3;
  border-left-color: var(--accent);
}

/* BENTO ASIMÉTRICO Y LAYOUT EDITORIAL CON COHERENCIA CROMÁTICA ABSOLUTA */
.bento-asymmetric {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.15rem;
  margin-top: 1.6rem;
}

.col-7 { grid-column: span 7; }
.col-5 { grid-column: span 5; }
.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }

.editorial-split {
  display: grid;
  grid-template-columns: 4.6fr 7.4fr;
  gap: 2.1rem;
  align-items: start;
}

.sticky-col {
  position: sticky;
  top: 94px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.22s ease;
}

.card:hover {
  border-color: var(--line-strong);
}

.card h3 { margin-bottom: 0.48rem; }
.card p { font-size: 0.92rem; line-height: 1.62; }
.card-brand-top { border-top: 4px solid var(--brand); }
.card-accent-left { border-top: 4px solid var(--accent); }
.card-soft { background: var(--brand-soft); border-color: var(--brand-soft-line); }

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid var(--brand-soft-line);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.72rem;
}

.card-accent-left .card-number {
  background: var(--accent-soft);
  color: #8C471B;
  border-color: var(--accent-line);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 1.05rem;
  padding-top: 0.78rem;
  border-top: 1px solid var(--alt);
}

.tag {
  font-size: 0.74rem;
  line-height: 1.35;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid var(--brand-soft-line);
}

.tag-brand {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-color: var(--brand-soft-line);
}

.tag-accent {
  background: var(--accent-soft);
  color: #8C471B;
  border-color: var(--accent-line);
}

/* CITA CON FONDO VERDE SALVIA CLARO Y ALTO CONTRASTE */
.quote-banner {
  background: var(--brand-soft);
  border: 1.5px solid var(--brand-soft-line);
  border-left: 6px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 1.85rem 2rem;
  display: grid;
  grid-template-columns: 7.8fr 4.2fr;
  gap: 1.5rem;
  align-items: center;
}

.quote-text {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.2rem, 2.05vw, 1.54rem);
  color: var(--ink);
  line-height: 1.4;
  font-weight: 600;
}

.quote-author {
  margin-top: 0.72rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quote-side {
  background: #FFFFFF;
  border: 1px solid var(--brand-soft-line);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.quote-side p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.65rem;
}

/* SIMULADOR TÉCNICO ORGANIZACIONAL CALIBRADO DE EXTREMO A EXTREMO (20 A 250) CON ESCALA DE PRECIOS DE 10 EN 10 */
.roi-box {
  background: #FFFFFF;
  border: 1.5px solid var(--line-strong);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  margin-top: 1.55rem;
  display: grid;
  grid-template-columns: 5.3fr 6.7fr;
  gap: 1.75rem;
  align-items: center;
}

.roi-slider-container {
  width: 100%;
  margin: 0.9rem 0 0.35rem;
  padding: 0;
  position: relative;
}

.roi-track-visual {
  position: relative;
  width: 100%;
  height: 12px;
  background: var(--line);
  border-radius: 999px;
  overflow: visible;
}

.roi-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--slider-pct, 17.39%);
  background: var(--brand);
  border-radius: 999px;
  pointer-events: none;
}

.roi-thumb-visual {
  position: absolute;
  top: 50%;
  left: var(--slider-pct, 17.39%);
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-dark);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 1.5px var(--brand);
  pointer-events: none;
  transition: background-color 0.15s ease;
}

.roi-slider-input {
  position: absolute;
  inset: -8px 0;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.roi-scale {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.55rem;
}

.roi-scale span:nth-child(1) { text-align: left; }
.roi-scale span:nth-child(2) { text-align: center; }
.roi-scale span:nth-child(3) { text-align: right; }

.roi-price-banner {
  background: var(--brand-soft);
  border: 1.5px solid var(--brand-soft-line);
  border-radius: var(--radius);
  padding: 0.9rem 1.05rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.roi-price-banner small {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-dark);
}

.roi-price-banner strong {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.32rem;
  color: var(--brand-deep);
  line-height: 1.2;
}

.roi-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.roi-kpi {
  background: var(--alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.88rem 0.98rem;
}

.roi-kpi small {
  display: block;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.roi-kpi strong {
  display: block;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.25;
  color: var(--ink);
}

.roi-technical-note {
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.05rem;
}

.roi-technical-note strong {
  display: block;
  font-size: 0.81rem;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.26rem;
}

.roi-technical-note p {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* SELECTOR DE PLANES CON ANIMACIÓN DE DESLIZAMIENTO */
.list-check { margin: 1rem 0; }
.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 0.58rem;
  padding: 0.36rem 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.list-check li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.73rem;
  flex-shrink: 0;
  margin-top: 0.16rem;
}

.plan-switcher-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: var(--alt);
  padding: 0.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 1.15rem 0 1.5rem;
}

.plan-tab {
  flex: 1 1 240px;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  background: transparent;
  font-size: 0.91rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.24s var(--ease-slide);
}

.plan-tab:hover {
  color: var(--ink);
}

.plan-tab.active {
  background: #FFFFFF;
  color: var(--brand-dark);
  border-color: var(--brand);
}

.plan-stage-wrap {
  overflow: hidden;
  position: relative;
}

.plan-showcase {
  background: #FFFFFF;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 1.8rem;
  align-items: start;
}

.plan-slide-right {
  animation: slideInRight 0.38s var(--ease-slide) forwards;
}

.plan-slide-left {
  animation: slideInLeft 0.38s var(--ease-slide) forwards;
}

.plan-price-badge {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid var(--brand-soft-line);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.35;
  padding: 0.48rem 0.9rem;
  border-radius: var(--radius-sm);
  margin: 0.65rem 0 0.9rem;
}

.plan-meta-box {
  background: var(--alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
}

/* TABLAS Y ACORDEÓN FAQ */
.table-wrap {
  overflow-x: auto;
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFFFFF;
  max-width: 100%;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.table th, .table td {
  padding: 0.88rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.89rem;
  line-height: 1.55;
  vertical-align: top;
}

.table th {
  background: var(--brand-soft);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.table tr:last-child td { border-bottom: 0; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.22s ease;
}

.faq-item.open { border-color: var(--brand); }

.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 1.08rem 1.2rem;
  font-size: 0.95rem;
  line-height: 1.42;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  transition: background-color 0.2s ease;
}

.faq-q:hover { background: var(--alt); }

.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.26s var(--ease-slide), background-color 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  background: var(--brand);
  color: #FFFFFF;
}

.faq-a-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease-slide);
}

.faq-item.open .faq-a-wrapper {
  grid-template-rows: 1fr;
}

.faq-a { overflow: hidden; }

.faq-a-inner {
  padding: 0 1.2rem 1.15rem;
  border-top: 1px solid var(--alt);
}

/* FORMULARIO INTEGRADO DE SOLICITUD CON ESCALA DE TRAMOS DE 10 EN 10 */
.form-card {
  background: #FFFFFF;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field { margin-bottom: 0.98rem; }

label {
  display: block;
  font-size: 0.85rem;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 0.34rem;
  color: var(--ink);
}

input, select, textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.74rem 0.86rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  line-height: 1.45;
  background: #FFFFFF;
  color: var(--ink);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.form-price-preview {
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.95rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.form-price-preview strong {
  color: var(--brand-deep);
  font-size: 0.96rem;
}

.error {
  color: var(--danger);
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 500;
  margin-top: 0.28rem;
  display: none;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--danger);
  background: #FFF9F8;
}

.field.invalid .error { display: block; }

/* PIE DE PÁGINA SOBRIO CON DATOS DE CONTACTO DIRECTOS */
footer {
  background: #0F1E1C;
  color: #B5C9C4;
  padding: 2.8rem 0 2.2rem;
  font-size: 0.86rem;
  border-top: 1px solid #1E3531;
}

.footer-grid {
  display: grid;
  grid-template-columns: 4.6fr 4.4fr 3fr;
  gap: 1.8rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.48rem 0.9rem;
}

.footer-links button {
  background: none;
  border: none;
  color: #B5C9C4;
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 0.15rem 0;
}

.footer-links button:hover { color: #FFFFFF; text-decoration: underline; }

.footer-mail-link {
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.18s ease;
}

.footer-mail-link:hover {
  color: #A9D8CF;
}

.footer-mail-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.58rem;
}

.mail-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #E6F4F1;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  transition: all 0.18s ease;
}

.mail-chip:hover {
  background: var(--brand);
  border-color: #A9D8CF;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.inline-mail-link {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-mail-link:hover {
  color: var(--accent);
}

.mail-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 31, 28, 0.62);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.mail-modal-backdrop.open {
  display: flex;
}

.mail-modal {
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-top: 5px solid var(--brand);
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  padding: 1.65rem;
  box-shadow: 0 24px 48px rgba(15, 31, 28, 0.24);
  animation: fadeInModal 0.2s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mail-modal-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.mail-modal-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.16s ease;
}

.mail-modal-btn:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-dark);
}

.footer-bottom {
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.79rem;
}

/* RESPONSIVIDAD FLUIDA PARA PANTALLA DIVIDIDA (SPLIT-SCREEN <= 1120px) Y TABLETS */
@media (max-width: 1120px) {
  .menu { display: none; }
  .mobile-pill-bar { display: flex; }
  .hero-grid,
  .page-header-grid,
  .editorial-split,
  .quote-banner,
  .plan-showcase,
  .roi-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .col-7, .col-5, .col-8, .col-4, .col-6 { grid-column: span 12; }
  .sticky-col { position: static; }
}

.btn-text-compact { display: none; }

@media (max-width: 680px) {
  .hero-metrics, .form-grid-2, .radar-legend, .roi-metrics-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none !important; }
  .page { padding: 2.4rem 0; }
  .form-card, .plan-showcase, .roi-box, .quote-banner { padding: 1.3rem; }
  .nav { gap: 0.45rem; }
  .nav-actions { gap: 0.4rem; }
  .nav-actions .btn-primary {
    padding: 0.48rem 0.75rem;
    font-size: 0.82rem;
    min-height: 38px;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .btn-text-full { display: none !important; }
  .btn-text-compact { display: inline !important; }
  .nav-actions .btn-primary {
    padding: 0.42rem 0.65rem;
    font-size: 0.79rem;
    min-height: 36px;
  }
  .brand {
    font-size: 1.08rem;
    gap: 0.45rem;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 1.02rem;
  }
}

/* ==========================================================================
   ESTILOS DE ACCESIBILIDAD AVANZADA (WCAG 2.2 AA)
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  background: var(--brand-dark);
  color: #FFFFFF !important;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  z-index: 999999;
  border-radius: var(--radius-sm);
  text-decoration: underline !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: top 0.2s ease;
}
.skip-link:focus, .skip-link:focus-visible {
  top: 1rem;
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

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

/* ==========================================================================
   BANNER DE CONSENTIMIENTO Y MODAL DE COOKIES (FASE 3)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0E1A18;
  color: #FFFFFF;
  border-top: 2px solid var(--brand);
  padding: 1.25rem 1.5rem;
  z-index: 999999;
  box-shadow: 0 -6px 25px rgba(0,0,0,0.45);
  display: none;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.active {
  display: block !important;
  transform: translateY(0) !important;
}
.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  max-width: 1160px;
  margin: 0 auto;
}
.cookie-banner-text {
  flex: 1 1 520px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #C5D5D1;
}
.cookie-banner-text a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.cookie-banner-actions .btn {
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  min-height: 44px;
}

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 24, 0.75);
  backdrop-filter: blur(4px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cookie-modal-backdrop.active { display: flex; }
.cookie-modal {
  background: #FFFFFF;
  color: var(--ink);
  max-width: 600px;
  width: 100%;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-option {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 0.85rem 0;
}
.cookie-option header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   ESTILOS DE PÁGINAS LEGALES (TÉRMINOS, PRIVACIDAD, COOKIES, RETRACTO, A11Y)
   ========================================================================== */
.legal-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}
.legal-container h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.35rem);
  margin-bottom: 0.85rem;
}
.legal-container h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
}
.legal-container h3 {
  font-size: 1.05rem;
  margin-top: 1.3rem;
  margin-bottom: 0.4rem;
}
.legal-container p, .legal-container li {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}
.legal-container ul {
  padding-left: 1.4rem;
  list-style: disc;
  margin-bottom: 1rem;
}
.legal-badge-review {
  background: #FFF3CD;
  border-left: 4px solid #856404;
  color: #856404;
  padding: 0.75rem 1.1rem;
  font-size: 0.85rem;
  margin: 1.2rem 0;
  border-radius: 4px;
  line-height: 1.5;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.87rem;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.85rem;
  text-align: left;
}
.legal-table th {
  background: var(--alt);
  font-weight: 600;
  color: var(--ink);
}
.footer-legal-btn {
  background: none;
  border: none;
  color: #B5C9C4;
  text-align: left;
  font-size: 0.84rem;
  padding: 0.15rem 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal-btn:hover { color: #FFFFFF; }

/* ==========================================================================
   BLOQUE 2 · ADAPTACIONES PARA EL SITIO DE VARIAS PÁGINAS
   El sitio usa enlaces reales (<a>) en vez de botones de enrutador, no admite
   estilos en línea (CSP) y corrige el contraste y el foco del original.
   ========================================================================== */

a { color: inherit; }
::selection { background: var(--brand); color: #FFFFFF; }

/* Enlaces de navegación con el mismo aspecto que los botones originales */
.brand { text-decoration: none; min-height: 44px; }
.menu a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  padding: 0.45rem 0.15rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.menu a:hover { color: var(--ink); }
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.26s var(--ease-slide);
}
.menu a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.menu a[aria-current="page"]::after { transform: scaleX(1); }

a.mobile-pill { min-height: 36px; display: inline-flex; align-items: center; }
a.mobile-pill[aria-current="page"] { background: var(--brand); color: #FFFFFF; border-color: var(--brand); }

.drawer[hidden] { display: none; }
.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  border-bottom: 1px solid var(--alt);
  padding: 0.76rem 0.78rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.35;
  color: var(--ink);
  transition: background-color 0.2s ease, padding-left 0.22s var(--ease-slide);
}
.drawer-nav a[aria-current="page"],
.drawer-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); padding-left: 1.05rem; }
.brand-mark-sm { width: 32px; height: 32px; font-size: 1rem; }
.drawer-brand-name { font-size: 1.05rem; color: var(--ink); display: block; line-height: 1.2; }
.drawer-brand-sub { font-size: 0.71rem; color: var(--muted); display: block; }
.drawer-box .btn { width: 100%; padding: 0.52rem 0.85rem; font-size: 0.82rem; }

.footer-links a {
  color: #B5C9C4;
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 0.15rem 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-title { color: #FFFFFF; font-size: 1.02rem; display: block; }
.footer-text { color: #9FB5AF; margin-top: 0.48rem; font-size: 0.85rem; max-width: 44ch; }
.footer-heading { color: #FFFFFF; font-weight: 600; margin-bottom: 0.58rem; font-size: 0.85rem; }
.footer-contact { color: #9FB5AF; font-size: 0.85rem; line-height: 1.6; }

/* Foco visible también en campos (el original lo quitaba) */
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
.hero :focus-visible, footer :focus-visible, .cookie-banner :focus-visible { outline-color: #FFFFFF; }

/* Héroe: textos claros con contraste AA sobre todo el degradado */
.hero-narrow { max-width: 920px; }
.hero .eyebrow { color: #DCEFEA; }
.hero-note { color: #DCEFEA; }
.hero .hero-lead { max-width: 68ch; }
.hero-note span { display: inline-flex; align-items: center; gap: 0.35rem; }

/* Utilidades que reemplazan los estilos en línea del original */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.25rem; }
.mt-3 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.75rem; }
.btn-block { width: 100%; }
.lead-sm { font-size: 0.95rem; margin-top: 0.8rem; }
.text-ink { color: var(--ink-soft); }
.small-note { font-size: 0.84rem; color: var(--muted); }
.page-tight { padding-top: 2.8rem; padding-bottom: 3.2rem; }
.quote-cta-title { font-size: 1.32rem; margin-bottom: 0.35rem; }
.quote-cta-text { color: var(--ink-soft); font-size: 0.93rem; }
.quote-cta-actions { display: flex; flex-direction: column; gap: 0.55rem; }
.card-soft-note h4 { margin-bottom: 0.3rem; }
.card-soft-note p { font-size: 0.86rem; }
.check-label { display: flex; gap: 0.58rem; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check-label input { width: 18px; height: 18px; margin-top: 0.18rem; flex-shrink: 0; accent-color: var(--brand); }
.check-label span { font-size: 0.84rem; color: var(--ink-soft); }
.form-intro { margin-bottom: 1.15rem; font-size: 0.88rem; }
.hint { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.28rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Simulador */
.roi-workers { color: var(--brand-dark); font-size: 1.02rem; }
.roi-label-row { margin-top: 0.85rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.4rem; }
.roi-price-banner .tag { background: #FFFFFF; }
.roi-side { display: flex; flex-direction: column; justify-content: space-between; gap: 0.95rem; }
.roi-slider-input:focus-visible + .roi-scale { outline: none; }
.roi-slider-container:focus-within .roi-thumb-visual { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 6px var(--brand); }
.roi-number { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.9rem; font-size: 0.85rem; color: var(--muted); }
.roi-number input { width: 6rem; padding: 0.45rem 0.6rem; text-align: center; font-weight: 600; }

/* Tablas */
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table tr.is-match td { background: var(--brand-soft); font-weight: 700; color: var(--brand-deep); }
.table.table-fit { min-width: 0; }

/* Migas de pan dentro del encabezado de página */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; list-style: none; margin-bottom: 0.9rem; font-size: 0.82rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--muted); }
.breadcrumb a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb [aria-current="page"] { color: var(--muted); }

/* Texto corrido (legales, CEAL-SM, quién soy) */
.legal-container a, .prose-link { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.legal-container ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.legal-container .table-wrap { margin: 1.2rem 0; }
.text-link { color: var(--brand-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Datos pendientes, visibles a propósito */
.placeholder { background: #FDECEA; color: var(--danger); font-weight: 600; padding: 0 0.25rem; border-radius: 3px; }

/* Estado del formulario */
.form-status { display: none; margin-top: 1rem; padding: 0.9rem 1.05rem; border-radius: var(--radius-sm); font-size: 0.88rem; border: 1px solid var(--line-strong); }
.form-status[data-state] { display: block; }
.form-status[data-state="sending"] { background: var(--alt); }
/* Mientras se envía, el progreso se ve en el botón; el texto queda solo para lectores de pantalla */
.form-status[data-state="sending"] {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Botón de envío como barra de progreso: un verde más oscuro lo llena de izquierda a derecha */
.btn-envio { position: relative; isolation: isolate; overflow: hidden; }
.btn-envio::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand-deep));
  transform: scaleX(var(--progreso, 0));
  transform-origin: left center;
  transition: transform 0.4s var(--ease-sheet);
}
.btn-envio.enviando,
.btn-envio.enviando:disabled { opacity: 1; cursor: default; }
.btn-envio.enviado::before { transition-duration: 0.25s; }
.form-status[data-state="ok"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); }
.form-status[data-state="error"] { background: #FFF9F8; border-color: var(--danger); color: var(--danger); }

/* Preguntas: el botón del acordeón original necesita foco y estado accesible */
.faq-q { cursor: pointer; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(180deg); background: var(--brand); color: #FFFFFF; }

/* Aviso de cookies: solo aparece si hay Google Analytics configurado */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner.active { display: block; transform: none; }
.cookie-banner .btn-outline-light { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.55); }
.cookie-banner .btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }
/* Aceptar, Rechazar y Configurar con el mismo peso visual: ninguna opción empuja a la otra */
.cookie-banner .btn-cookie { background: #FFFFFF; color: #0E1A18; border-color: #FFFFFF; min-width: 7.5rem; }
.cookie-banner .btn-cookie:hover { background: #DCEFEA; border-color: #DCEFEA; }
.cookie-banner .btn-cookie[aria-expanded="true"] { background: #DCEFEA; border-color: #DCEFEA; }
.cookie-config { flex: 1 1 100%; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 1rem; }
.cookie-config[hidden] { display: none; }
.cookie-config fieldset { border: 0; padding: 0; margin: 0 0 0.9rem; display: grid; gap: 0.6rem; }
.cookie-config legend { font-weight: 600; margin-bottom: 0.5rem; color: #FFFFFF; }
.cookie-option { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: #C5D5D1; cursor: pointer; }
.cookie-option input { width: 20px; height: 20px; margin-top: 0.1rem; flex-shrink: 0; accent-color: #DCEFEA; }
.cookie-option strong { color: #FFFFFF; }
.footer-links button { min-height: 32px; cursor: pointer; font-family: inherit; }

/* Página 404 y gracias */
.center-box { max-width: 640px; margin: 0 auto; text-align: center; }
.center-box .hero-actions { justify-content: center; }

.footer-heading { font-family: 'Inter', sans-serif; letter-spacing: 0; line-height: 1.4; padding: 0; }

/* Con 7 secciones el menú horizontal necesita más ancho que en el original */
@media (max-width: 1240px) {
  .menu { display: none; }
  .mobile-pill-bar { display: flex; }
}
/* Cabecera como material translúcido: la página se ve pasar por debajo al desplazarse */
header {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
@media (prefers-reduced-transparency: reduce) {
  header { background: #FFFFFF; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Respuesta inmediata al presionar: el control cede apenas se toca, no al soltar */
.burger, .drawer-nav a, a.mobile-pill, .faq-q { transition-property: background-color, border-color, color, padding-left, transform; }
.burger:active, a.mobile-pill:active { transform: scale(0.94); transition-duration: 0.1s; }
.drawer-nav a:active, .faq-q:active { transform: scale(0.985); transition-duration: 0.1s; }
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }

/* Tipografía: los títulos grandes se aprietan, el texto corrido queda neutro */
h1 { letter-spacing: -0.022em; line-height: 1.14; }
h2 { letter-spacing: -0.016em; line-height: 1.2; }

/* En una columna, el formulario de contacto va antes de "Qué pasa después" */
@media (max-width: 1120px) {
  .editorial-split > .form-card { order: -1; }
}
@media (max-width: 680px) {
  .roi-label-row { flex-direction: column; align-items: flex-start; }
}
@media print {
  header, footer, .cookie-banner, .drawer, .drawer-backdrop { display: none !important; }
}

