/* ═══════════════════════════════════════════════════════════════════
   UNIVERSIDAD INTERNACIONAL VIDA · MODELO 4: SIMPLE E INFORMATIVO
   Concepto: «Rutas de vida» · Estilo Stripe · SimCodec Demo
   ═══════════════════════════════════════════════════════════════════ */

/* Fuentes locales WOFF2 */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('fonts/inter-tight-800-normal.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-serif-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Variables de diseño */
:root {
  --bg-papel: #F5F3EE;
  --bg-card: #FFFFFF;
  --bg-subtle: #ECE8E0;
  --tinta: #14161C;
  --tinta-suave: #484E5B;
  --tinta-muted: #5B6270;
  
  --azul: #1F4E79;
  --azul-hover: #173B5C;
  --azul-noche: #0E2238;
  --dorado: #B07A1E;
  --dorado-texto: #8A5F10;
  --dorado-hover: #966717;
  --dorado-suave: rgba(176, 122, 30, 0.12);
  
  --linea: rgba(20, 22, 28, 0.08);
  --linea-fuerte: rgba(20, 22, 28, 0.16);
  --linea-azul: rgba(31, 78, 121, 0.2);
  
  --shadow-sm: 0 1px 3px rgba(14, 34, 56, 0.04), 0 1px 2px rgba(14, 34, 56, 0.03);
  --shadow-md: 0 4px 14px rgba(14, 34, 56, 0.06), 0 1px 3px rgba(14, 34, 56, 0.04);
  --shadow-lg: 0 16px 36px rgba(14, 34, 56, 0.08), 0 4px 10px rgba(14, 34, 56, 0.03);
  --shadow-dorado: 0 8px 24px rgba(176, 122, 30, 0.18);
  
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Inter Tight', 'Inter', sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --max-w: 1240px;
  --header-h: 70px;
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-papel);
  color: var(--tinta);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  background-color: var(--bg-papel);
  color: var(--tinta);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

/* Enlace accesible para saltar al contenido */
.saltar {
  position: absolute;
  top: -999px;
  left: 16px;
  background: var(--azul-noche);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 500;
  box-shadow: var(--shadow-md);
}
.saltar:focus {
  top: 16px;
}

/* Malla de color animada en el fondo (Stripe style) */
.mesh-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.65;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  animation: floatMesh 24s ease-in-out infinite alternate;
}

.mesh-blob-1 {
  width: 600px;
  height: 600px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(31, 78, 121, 0.12) 0%, rgba(31, 78, 121, 0) 70%);
}

.mesh-blob-2 {
  width: 500px;
  height: 500px;
  top: 300px;
  left: -120px;
  background: radial-gradient(circle, rgba(176, 122, 30, 0.09) 0%, rgba(176, 122, 30, 0) 70%);
  animation-duration: 28s;
  animation-direction: alternate-reverse;
}

.mesh-blob-3 {
  width: 700px;
  height: 700px;
  bottom: -200px;
  right: 15%;
  background: radial-gradient(circle, rgba(14, 34, 56, 0.08) 0%, rgba(14, 34, 56, 0) 70%);
  animation-duration: 32s;
}

@keyframes floatMesh {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.08); }
  100% { transform: translate(-25px, -30px) scale(0.95); }
}

/* Transición entre páginas: Rama dorada */
.page-transition {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-transition .pt-curtain {
  position: absolute;
  inset: 0;
  background: var(--bg-papel);
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.3s ease;
}

.page-transition .pt-branch-wrap {
  position: absolute;
  width: 100vw;
  height: 180px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.pt-branch-svg {
  width: 100%;
  height: 100%;
}

.pt-branch-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Estados de transición */
.page-transition.is-leaving .pt-curtain {
  opacity: 1;
  transform: translateY(0);
}

.page-transition.is-leaving .pt-branch-wrap {
  opacity: 1;
}

.page-transition.is-leaving .pt-branch-path {
  stroke-dashoffset: 0;
}

/* Entrada de página */
html.page-entering body {
  animation: pageEnterFade 0.45s ease-out forwards;
}

@keyframes pageEnterFade {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Contenedores generales */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ═══════════════════════════════════════════════════════════════════
   BARRA DE AVISO Y SELECTOR DE MODELOS (COMPACTO EN 1 LÍNEA)
   ═══════════════════════════════════════════════════════════════════ */
.demo-bar {
  background: var(--azul-noche);
  color: #E2E8F0;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 100;
  padding: 6px 0;
}

.demo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  white-space: nowrap;
}

.demo-bar__msg {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #CBD5E1;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.8125rem;
}

.ico-info {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: var(--dorado);
}

.demo-bar__msg .aviso-mobile {
  display: none;
}

.demo-bar__models {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.demo-bar__models-label {
  color: #94A3B8;
  font-size: 0.75rem;
  margin-right: 2px;
}

.model-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.model-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.24);
}

.model-pill.actual {
  background: var(--dorado-texto);
  color: #FFFFFF;
  border-color: var(--dorado-texto);
  cursor: default;
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER PRINCIPAL
   ═══════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(245, 243, 238, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea);
  z-index: 90;
}

.main-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-monogram {
  width: 36px;
  height: 36px;
  background: var(--azul-noche);
  color: var(--bg-papel);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  border: 1px solid rgba(176, 122, 30, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--azul-noche);
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.6875rem;
  color: var(--tinta-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--tinta-suave);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--azul);
}

.nav-link.actual {
  color: var(--azul-noche);
  font-weight: 600;
}

.nav-link.actual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--dorado);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Botones estilo Stripe */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--azul-noche);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--azul);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--azul-noche);
  border: 1px solid var(--linea-fuerte);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #FDFDFD;
  border-color: var(--azul);
  color: var(--azul);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--dorado-texto);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background: #744E0C;
  transform: translateY(-1px);
  box-shadow: var(--shadow-dorado);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
}

/* Hamburguesa móvil */
.btn-menu {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  color: var(--azul-noche);
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════════════════════
   HERO: CONCEPTO «RUTAS DE VIDA» (ESTILO STRIPE)
   ═══════════════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 64px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(31, 78, 121, 0.08);
  border: 1px solid rgba(31, 78, 121, 0.18);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--azul);
  width: fit-content;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dorado);
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(176, 122, 30, 0.2);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 4.6vw, 4.125rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--azul-noche);
}

.hero-title em {
  font-style: italic;
  color: var(--azul);
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--tinta-suave);
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--linea);
  margin-top: 8px;
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--azul-noche);
  line-height: 1.1;
}

.trust-label {
  font-size: 0.75rem;
  color: var(--tinta-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════
   PIEZA VISUAL HERO: DIAGRAMA SVG INTERACTIVO «RUTAS DE VIDA»
   ═══════════════════════════════════════════════════════════════════ */
.hero-visual {
  position: relative;
  width: 100%;
}

.route-card {
  background: var(--bg-card);
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.route-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #FAF8F5;
  border-bottom: 1px solid var(--linea);
}

.route-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tinta-suave);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.route-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  color: var(--dorado-texto);
  font-weight: 600;
}

.route-card__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dorado);
  box-shadow: 0 0 6px rgba(176, 122, 30, 0.6);
}

/* Selector de caminos en el visor */
.route-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #F4F1EA;
  border-bottom: 1px solid var(--linea);
}

.route-tab {
  padding: 10px 8px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tinta-suave);
  border-right: 1px solid var(--linea);
  transition: all 0.2s ease;
  background: transparent;
}

.route-tab:last-child {
  border-right: none;
}

.route-tab:hover {
  background: #FFFFFF;
  color: var(--azul);
}

.route-tab.active {
  background: #FFFFFF;
  color: var(--azul-noche);
  border-bottom: 2px solid var(--dorado);
}

/* Lienzo SVG */
.route-svg-wrap {
  position: relative;
  width: 100%;
  padding: 20px 20px 14px;
  background: radial-gradient(circle at 50% 90%, rgba(31, 78, 121, 0.05) 0%, rgba(255, 255, 255, 0) 70%), #FFFFFF;
}

.route-svg {
  width: 100%;
  height: auto;
  max-height: 380px;
}

/* Trazos de ramas */
.tree-trunk {
  stroke: var(--azul-noche);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke 0.3s ease;
}

.tree-branch {
  stroke: rgba(31, 78, 121, 0.35);
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tree-branch.active,
.tree-branch:hover {
  stroke: var(--dorado);
  stroke-width: 3.5;
  filter: drop-shadow(0 2px 8px rgba(176, 122, 30, 0.45));
}

.tree-node {
  cursor: pointer;
  transition: all 0.25s ease;
}

.tree-node circle.core {
  fill: #FFFFFF;
  stroke: var(--azul-noche);
  stroke-width: 2.5;
  transition: all 0.3s ease;
}

.tree-node circle.glow {
  fill: rgba(31, 78, 121, 0.15);
  transition: all 0.3s ease;
}

.tree-node:hover circle.core,
.tree-node.active circle.core {
  fill: var(--dorado-texto);
  stroke: #FFFFFF;
  stroke-width: 3;
}

.tree-node:hover circle.glow,
.tree-node.active circle.glow {
  fill: rgba(176, 122, 30, 0.3);
  r: 16;
}

.tree-label {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  fill: var(--azul-noche);
  pointer-events: none;
  transition: fill 0.3s ease;
}

.tree-label.sub {
  font-size: 11px;
  font-weight: 400;
  fill: var(--tinta-muted);
}

.tree-node:hover .tree-label,
.tree-node.active .tree-label {
  fill: var(--dorado-texto);
  font-weight: 700;
}

/* Tarjeta informativa flotante al pie del SVG */
.route-footer-preview {
  padding: 14px 20px;
  background: #FAF8F5;
  border-top: 1px solid var(--linea);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.route-desc-text {
  font-size: 0.84375rem;
  color: var(--tinta-suave);
  line-height: 1.45;
}

.route-desc-text strong {
  color: var(--azul-noche);
  font-weight: 600;
}

.route-desc-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--azul);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.route-desc-link:hover {
  color: var(--dorado-texto);
}

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN: 4 ÁREAS ACADÉMICAS (ESTILO TARJETAS STRIPE)
   ═══════════════════════════════════════════════════════════════════ */
.section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.section-alt {
  background: rgba(236, 232, 224, 0.45);
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head.left {
  text-align: left;
  margin: 0 0 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dorado-texto);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--azul-noche);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--tinta-suave);
  line-height: 1.6;
}

/* Grid de 4 tarjetas */
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card-area {
  background: var(--bg-card);
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.card-area:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 78, 121, 0.28);
  box-shadow: var(--shadow-lg);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(31, 78, 121, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azul);
  transition: all 0.2s ease;
}

.card-area:hover .card-icon {
  background: var(--azul-noche);
  color: #FFFFFF;
}

.card-num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--dorado-texto);
  letter-spacing: 0.04em;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--azul-noche);
  margin-bottom: 12px;
  line-height: 1.25;
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--tinta-suave);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--azul);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.card-link svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.card-area:hover .card-link {
  color: var(--dorado-texto);
  gap: 9px;
}

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN: NOSOTROS / PROPUESTA INSTITUCIONAL
   ═══════════════════════════════════════════════════════════════════ */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-card {
  background: var(--bg-card);
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
}

.feature-item {
  display: flex;
  gap: 16px;
}

.feature-bullet {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(176, 122, 30, 0.12);
  color: var(--dorado-texto);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--azul-noche);
  margin-bottom: 4px;
}

.feature-text {
  font-size: 0.9375rem;
  color: var(--tinta-suave);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN: PROCESO EN 3 PASOS
   ═══════════════════════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-num-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--azul-noche);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(176, 122, 30, 0.4);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--azul-noche);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--tinta-suave);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════
   FORMULARIO DE ADMISIONES DE DEMOSTRACIÓN
   ═══════════════════════════════════════════════════════════════════ */
.admission-box {
  background: var(--bg-card);
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  margin: 0 auto;
}

.admission-header {
  text-align: center;
  margin-bottom: 32px;
}

.form-demo-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #FEF9EE;
  border: 1px solid rgba(176, 122, 30, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: #8C5F13;
  margin-bottom: 24px;
  width: 100%;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--azul-noche);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--linea-fuerte);
  background: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--tinta);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.12);
  outline: none;
}

.form-input::placeholder {
  color: #9CA3AF;
}

/* Modal simulado de confirmación */
.form-success-banner {
  display: none;
  padding: 16px 20px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-sm);
  color: #166534;
  font-size: 0.875rem;
  margin-top: 16px;
}

.form-success-banner.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════
   BANNER CTA AL PIE DE PÁGINAS INTERNAS
   ═══════════════════════════════════════════════════════════════════ */
.cta-banner {
  background: var(--azul-noche);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 40px;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(176, 122, 30, 0.2) 0%, rgba(176, 122, 30, 0) 70%);
  pointer-events: none;
}

.cta-banner-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 3.8vw, 3.25rem);
  font-weight: 400;
  margin-bottom: 14px;
}

.cta-banner-lead {
  font-size: 1.0625rem;
  color: #CBD5E1;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--linea-fuerte);
  padding: 64px 0 36px;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--azul-noche);
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--tinta-suave);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--azul-noche);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--tinta-suave);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--azul);
}

.footer-disclaimer {
  background: #FAF8F5;
  border: 1px solid var(--linea);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 0.8125rem;
  color: var(--tinta-muted);
  line-height: 1.5;
}

.footer-disclaimer strong {
  color: var(--azul-noche);
}

/* Fila inferior del footer */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--linea);
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--tinta-muted);
}

.footer-models-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-models-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tinta-suave);
}

.footer-model-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--tinta-suave);
  background: #F4F1EA;
  border: 1px solid var(--linea);
  transition: all 0.2s ease;
}

.footer-model-pill:hover {
  background: #FFFFFF;
  color: var(--azul-noche);
  border-color: var(--azul);
}

.footer-model-pill.actual {
  background: var(--azul-noche);
  color: #FFFFFF;
  border-color: var(--azul-noche);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN (1440, 1280, 768, 390)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-content {
    text-align: center;
    align-items: center;
  }
  
  .hero-lead {
    margin: 0 auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-trust {
    justify-content: center;
  }
  
  .cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 840px) {
  .demo-bar {
    padding: 8px 0;
  }

  .demo-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    white-space: normal;
  }
  
  .demo-bar__msg .aviso-desktop {
    display: none;
  }
  
  .demo-bar__msg .aviso-mobile {
    display: inline;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .demo-bar__models {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    width: 100%;
  }

  .model-pill {
    padding: 2px 7px;
    font-size: 0.6875rem;
    white-space: nowrap;
  }
  
  .nav-links {
    display: none;
  }

  .header-actions .btn-sm {
    display: none;
  }
  
  .btn-menu {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .brand-title {
    font-size: 0.9375rem;
  }
  
  /* Menú móvil abierto */
  body.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--linea-fuerte);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
  }
  
  .split-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .cards-grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .route-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .admission-box {
    padding: 24px 18px;
  }
  
  .cta-banner {
    padding: 40px 20px;
  }
}

@media (max-width: 640px) {
  .tree-label { font-size: 16px; }
  .tree-label.sub { font-size: 14px; }
}

/* Soporte para prefers-reduced-motion */
@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;
  }
  
  .mesh-blob {
    animation: none !important;
  }
  
  .pt-branch-path {
    stroke-dashoffset: 0 !important;
  }
}
