/* ==========================================================================
   ALCA SISTEMAS SAS - SISTEMA DE IDENTIDAD DE MARCA OFICIAL 2026
   Arquetipo: "El Gobernante" (The Ruler & The Wise)
   Paleta Soberana: Regla 60-30-10 (Sovereign Navy, Imperial Gold, Velvet Surface)
   Tipografía: Cinzel (Display/Headings) & Plus Jakarta Sans (Reading/Body)
   Estándares: WCAG 2.2 AAA para público Senior (+50), TASS 3.0
   ========================================================================== */

:root {
  /* TOKENS MAESTROS DE IDENTIDAD OFICIAL */
  --bg-dark: #070F1A;                      /* Fondo estructural dominante (60% viewport) */
  --bg-surface: #0B192C;                   /* Fondo de tarjetas, secciones y barra con transparencia 0.95 (30%) */
  --bg-surface-elevated: #0F223A;          /* Superficies elevadas y desplegables */
  --gold-noble: #C5A059;                   /* Color acento de autoridad (10%) */
  --gold-glow: rgba(197, 160, 89, 0.40);   /* Resplandor interactivo en bucle */
  --gold-border: rgba(197, 160, 89, 0.35); /* Bordes de contención de 1px en tarjetas y modales */
  --gold-border-subtle: rgba(197, 160, 89, 0.20);
  --text-primary: #FFFFFF;                 /* Títulos H1 y encabezados de alta legibilidad */
  --text-body: #E2E8F0;                    /* Cuerpo de lectura sin fatiga visual (18px-19px, line-height: 1.65) */
  --text-muted: #94A3B8;                   /* Notas legales y aclaraciones al pie */
  --text-secondary: var(--text-body);

  /* JERARQUÍA TIPOGRÁFICA EDITORIAL */
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Roboto Mono', 'Fira Code', Consolas, monospace;

  /* ELEMENTOS DE DISEÑO */
  --radius-btn: 4px;
  --radius-card: 6px;
  --container-width: 1200px;
  --transition: 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 50% -5%, rgba(197, 160, 89, 0.09) 0%, transparent 60%),
    radial-gradient(circle at 90% 70%, rgba(11, 25, 44, 0.65) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   REGLAS GLOBALES DE ENLACES FIDUCIARIOS (CBrO & CQO SSOT)
   ========================================================================== */
a {
  color: #38BDF8;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition);
}

a:visited {
  color: #38BDF8;
}

a:hover {
  color: var(--gold-noble);
}

a:focus-visible {
  outline: 2px solid var(--gold-noble);
  outline-offset: 3px;
}

/* ==========================================================================
   CONTENEDOR FIJO INTEGRAL (TICKER + HEADER SIEMPRE VISIBLES)
   ========================================================================== */
.sticky-top-container {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  z-index: 1000;
  background-color: rgba(7, 15, 26, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* TERMINAL INSTITUCIONAL DE COTIZACIONES EN VIVO */
.market-ticker-bar {
  background: #040910;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.ticker-inner-flex {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
  overflow: hidden;
  box-sizing: border-box;
}

.ticker-lead-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-right: 18px;
  border-right: 1px solid rgba(197, 160, 89, 0.3);
}

.ticker-live-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10B981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.ticker-lead-text {
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.ticker-viewport {
  flex: 1 1 0%;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 38s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #E2E8F0;
  font-weight: 500;
}

.ticker-symbol {
  color: var(--gold-noble);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ticker-price {
  color: #FFFFFF;
}

.ticker-change.up {
  color: #10B981;
  font-size: 0.72rem;
}

.ticker-change.down {
  color: #F87171;
  font-size: 0.72rem;
}

/* ==========================================================================
   HEADER TASS - ARQUITECTURA SOBERANA OFICIAL (UNIFICADA CON LANDING PAGE)
   ========================================================================== */
.header-tass {
  background: rgba(11, 25, 44, 0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-border) !important;
  padding: 10px 0 !important;
  position: relative;
  z-index: 1001;
}

.header-tass .container {
  max-width: 1420px !important;
  padding: 0 32px !important;
  width: 100% !important;
}

.header-flex {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 20px !important;
}

.brand-logo {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.brand-logo-img {
  width: 52px !important;
  height: 52px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.25));
  transition: transform var(--transition);
  flex-shrink: 0 !important;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.04);
}

.brand-text {
  display: flex !important;
  flex-direction: column !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.brand-text-main {
  font-family: var(--font-serif) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: 2.2px !important;
  color: #FFFFFF !important;
  text-transform: uppercase !important;
  display: block !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}

.brand-text-sub {
  font-family: var(--font-sans) !important;
  font-size: 10.5px !important;
  letter-spacing: 1.5px !important;
  color: var(--gold-noble) !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  display: block !important;
  margin-top: 2px !important;
  white-space: nowrap !important;
}

/* MENÚ DE NAVEGACIÓN DESKTOP (FORMATO Y TAMAÑO LANDING) */
.nav-menu {
  display: flex !important;
  list-style: none !important;
  gap: 20px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-item {
  flex-shrink: 0;
}

.nav-item a {
  color: #E2E8F0 !important;
  text-decoration: none !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  font-family: var(--font-sans) !important;
  letter-spacing: 0.03em !important;
  white-space: nowrap !important;
  padding: 6px 4px !important;
  transition: all var(--transition) !important;
  opacity: 0.95 !important;
}

.nav-item a:hover {
  color: var(--gold-noble) !important;
  text-shadow: 0 0 12px rgba(197, 160, 89, 0.5) !important;
  opacity: 1 !important;
}

.nav-item a.active {
  color: var(--gold-noble) !important;
  text-shadow: 0 0 12px rgba(197, 160, 89, 0.5) !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

.nav-badge-pill {
  font-size: 0.68rem;
  background: rgba(197, 160, 89, 0.15);
  color: var(--gold-noble);
  border: 1px solid var(--gold-border);
  padding: 2px 7px;
  border-radius: 12px;
  margin-left: 6px;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

/* GRUPO DE ACCIONES DERECHO (CONMUTADOR + CTA + TOGGLE MÓVIL) */
.header-actions-group,
.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

/* CONMUTADOR DE MONEDA COMPACTO [ USD | COP ] OFICIAL */
.currency-switch {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(7, 15, 26, 0.85) !important;
  border: 1px solid var(--gold-border, rgba(197, 160, 89, 0.35)) !important;
  border-radius: 4px !important;
  padding: 2px !important;
  gap: 2px !important;
  font-family: var(--font-mono) !important;
  font-size: 0.68rem !important;
  flex-shrink: 0 !important;
}

.currency-btn {
  background: transparent !important;
  border: none !important;
  color: #94A3B8 !important;
  padding: 4px 8px !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  border-radius: 3px !important;
  cursor: pointer !important;
  transition: all var(--transition) !important;
  line-height: 1.1 !important;
}

.currency-btn.active {
  background: var(--gold-noble) !important;
  color: #070F1A !important;
  font-weight: 700 !important;
}

/* BOTÓN CTA ENCABEZADO ESBELTO Y PROPORCIONADO */
.header-cta-btn {
  padding: 8px 16px !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.8px !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1.2 !important;
  min-height: auto !important;
  height: auto !important;
  box-shadow: 0 2px 12px rgba(197, 160, 89, 0.18) !important;
  text-decoration: none !important;
}

.menu-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(197, 160, 89, 0.16);
  border: 1.5px solid var(--gold-noble);
  border-radius: 6px;
  color: #FFFFFF;
  padding: 8px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.25);
  transition: all var(--transition);
  flex-shrink: 0;
}

.menu-toggle-btn svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: #FFFFFF;
}

.menu-toggle-btn:hover,
.menu-toggle-btn:active {
  background: rgba(197, 160, 89, 0.35);
  border-color: #F59E0B;
  transform: scale(1.04);
}

/* MENÚ MÓVIL DESPLEGABLE (DRAWER) */
.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(85vw, 350px);
  height: 100vh;
  background-color: #0B192C;
  border-left: 1.5px solid var(--gold-noble);
  z-index: 9999;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  transition: right 320ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85);
  overflow-y: auto;
  box-sizing: border-box;
}

.mobile-nav-panel.open {
  right: 0;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  display: none;
  opacity: 0;
  transition: opacity 300ms ease;
}

.mobile-nav-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gold-border-subtle);
}

.mobile-nav-close-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid var(--gold-noble);
  border-radius: 6px;
  color: #FFFFFF;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-menu li a {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #E2E8F0;
  text-decoration: none;
  letter-spacing: 0.5px;
  display: block;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.4);
  border-left: 3px solid transparent;
  transition: all var(--transition);
}

.mobile-nav-menu li a:hover,
.mobile-nav-menu li a:active,
.mobile-nav-menu li a.active {
  color: #FFFFFF;
  background: rgba(197, 160, 89, 0.18);
  border-left-color: var(--gold-noble);
}

/* BOTÓN FLOTANTE VOLVER ARRIBA (BACK TO TOP) */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(11, 25, 44, 0.94);
  border: 1.5px solid var(--gold-noble);
  border-radius: 30px;
  color: var(--gold-noble);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 12px rgba(197, 160, 89, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--gold-noble);
  transition: transform 0.2s ease;
}

.back-to-top-btn:hover {
  background: var(--gold-noble);
  color: #070F1A;
  border-color: #F59E0B;
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(197, 160, 89, 0.5);
}

.back-to-top-btn:hover svg {
  fill: #070F1A;
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .back-to-top-btn {
    bottom: 18px;
    right: 16px;
    padding: 8px 12px;
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   ESTRUCTURAS GENERALES Y TIPOGRAFÍA
   ========================================================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.ambient-glow-sphere {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(197, 160, 89, 0.12) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

h1, h2, .display-title, .section-title, .headline-ruler {
  font-family: var(--font-serif);
  color: var(--text-primary);
  letter-spacing: 2px;
  line-height: 1.25;
  font-weight: 700;
}

.display-title {
  font-size: clamp(1.85rem, 2.8vw, 2.75rem);
}

h3 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1.3;
  font-size: 1.15rem;
}

h4 {
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.35;
  font-size: 1.0rem;
}

.highlight-gold {
  color: var(--gold-noble);
}

.eyebrow-badge, .section-label {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-noble);
  background: rgba(197, 160, 89, 0.10);
  border: 1px solid var(--gold-border);
  padding: 6px 16px;
  border-radius: var(--radius-btn);
  margin-bottom: 20px;
}

.lead-paragraph {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #CBD5E1;
}

/* BOTONES MAESTROS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  gap: 10px;
}

.btn-cta-ruler {
  background: linear-gradient(135deg, #D4AF37 0%, #C5A059 100%);
  color: #070F1A !important;
  border: 1px solid #E6C875;
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.25);
  font-weight: 600 !important;
  font-size: 15px !important;
  letter-spacing: 2px !important;
}

.btn-cta-ruler:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(197, 160, 89, 0.45);
  background: linear-gradient(135deg, #E6C875 0%, #D4AF37 100%);
}

.cta-glow-loop {
  position: relative;
  box-shadow: 0 0 14px rgba(197, 160, 89, 0.35);
}
.cta-glow-loop::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 24px rgba(197, 160, 89, 0.65);
  opacity: 0.2;
  pointer-events: none;
  animation: buttonGlowLoop 3.5s infinite alternate ease-in-out;
  will-change: opacity;
}

@keyframes buttonGlowLoop {
  0% { opacity: 0.2; }
  100% { opacity: 0.9; }
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-noble) !important;
  border: 1px solid var(--gold-noble);
}

.btn-outline-gold:hover {
  background: rgba(197, 160, 89, 0.12);
  color: #FFFFFF !important;
  border-color: #E6C875;
  transform: translateY(-2px);
}

.btn-secondary-dark {
  background: var(--bg-surface);
  color: #FFFFFF !important;
  border: 1px solid var(--gold-border);
}

.btn-secondary-dark:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--gold-noble);
  transform: translateY(-2px);
}

/* BLOQUE DE DESCARGO / CONFIANZA INSTITUCIONAL (CLO COMPLIANCE) */
.hero-disclaimer-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 920px;
  margin: 22px auto 0 auto;
  padding: 10px 20px;
  background: rgba(11, 25, 44, 0.85);
  border: 1px solid var(--gold-border, rgba(197, 160, 89, 0.35));
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  text-align: left;
  box-sizing: border-box;
}

.hero-disclaimer-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: var(--gold-noble, #C5A059);
  flex-shrink: 0;
}

.hero-disclaimer-text {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #CBD5E1;
}

@media (max-width: 768px) {
  .hero-disclaimer-box {
    margin-top: 16px;
    padding: 10px 14px;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
  }
  .hero-disclaimer-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-top: 2px;
  }
  .hero-disclaimer-text {
    font-size: 0.76rem;
    line-height: 1.5;
  }
}

/* TARJETAS VELVET Y CONTENEDORES */
.velvet-card {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-card);
  padding: 36px;
  position: relative;
  transition: all var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.velvet-card:hover {
  border-color: var(--gold-noble);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(197, 160, 89, 0.15);
}

/* HERO UNIVERSAL PARA PÁGINAS INTERIORES */
.inner-hero {
  padding: 70px 0 50px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--gold-border-subtle);
  background: radial-gradient(circle at 50% 0%, rgba(197, 160, 89, 0.08) 0%, transparent 70%);
}

.inner-hero-title {
  font-size: clamp(1.85rem, 2.8vw, 2.75rem);
  line-height: 1.25;
  margin-bottom: 18px;
}

.inner-hero-lead {
  font-size: 1.15rem;
  max-width: 840px;
  margin: 0 auto;
  color: #CBD5E1;
  line-height: 1.65;
}

/* SECCIONES Y ESPACIADOS */
.section-py {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 50px;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: #CBD5E1;
  line-height: 1.65;
}

/* MANIFIESTO SOBERANO */
.manifiesto-box {
  background: linear-gradient(180deg, rgba(11, 25, 44, 0.9) 0%, rgba(7, 15, 26, 0.95) 100%);
  border: 1px solid var(--gold-noble);
  border-radius: var(--radius-card);
  padding: 48px 40px;
  position: relative;
  margin: 40px 0;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), inset 0 0 25px rgba(197, 160, 89, 0.05);
}

.manifiesto-box::before {
  content: '“';
  font-family: var(--font-serif);
  font-size: 8rem;
  color: rgba(197, 160, 89, 0.12);
  position: absolute;
  top: -20px;
  left: 20px;
  line-height: 1;
  pointer-events: none;
}

.manifiesto-quote {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: #FFFFFF;
  line-height: 1.7;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.manifiesto-signature {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--gold-border);
  padding-top: 20px;
}

.signature-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-noble);
  letter-spacing: 1.5px;
}

.signature-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* METODOLOGÍA ALCA: 4 PILARES // 1 FILA X 4 COLUMNAS PROPORCIONALES */
.grid-methodology {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .grid-methodology {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .grid-methodology {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-card);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-noble);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 16px rgba(197, 160, 89, 0.18);
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-noble);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: inline-block;
}

/* ==========================================================================
   ILUSTRACIONES BLUEPRINT CAD (SISTEMA VISUAL LANDING)
   ========================================================================== */
.blueprint-card-display {
  background: rgba(4, 9, 16, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.22);
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  max-height: 120px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
  position: relative;
}

.blueprint-img {
  width: 100%;
  height: auto;
  max-height: 95px;
  display: block;
  object-fit: contain;
  transition: transform var(--transition);
}

.pillar-card:hover .blueprint-img,
.velvet-card:hover .blueprint-img {
  transform: scale(1.03);
}

.deliverable-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: rgba(4, 9, 16, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.deliverable-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  line-height: 1.35;
}

.pillar-desc {
  font-size: 0.88rem;
  color: #CBD5E1;
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-noble);
  text-decoration: none;
  transition: gap var(--transition);
}

.pillar-link:hover {
  gap: 14px;
  color: #FFFFFF;
}

/* ==========================================================================
   LÍNEA DE TIEMPO (TIMELINE 1987 - 2026) PARA ACERCA-DE
   ========================================================================== */
.timeline-section {
  padding: 60px 0 90px;
}

.timeline-era-block {
  margin-bottom: 60px;
}

.era-banner {
  background: linear-gradient(90deg, rgba(11, 25, 44, 0.95) 0%, rgba(15, 34, 58, 0.8) 100%);
  border: 1px solid var(--gold-border);
  border-left: 4px solid var(--gold-noble);
  padding: 16px 24px;
  border-radius: var(--radius-card);
  margin-bottom: 30px;
}

.era-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold-noble);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.timeline-items-flow {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid rgba(197, 160, 89, 0.35);
  margin-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.timeline-card-node {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  transition: all var(--transition);
}

.timeline-card-node::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 24px;
  width: 14px;
  height: 14px;
  background-color: var(--gold-noble);
  border: 3px solid var(--bg-dark);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-noble);
}

.timeline-card-node:hover {
  border-color: var(--gold-noble);
  transform: translateX(4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(197, 160, 89, 0.15);
}

.timeline-year-label {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-noble);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.timeline-entry-text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
}

.timeline-entry-text strong {
  color: #FFFFFF;
}

.timeline-entry-text em {
  color: var(--gold-noble);
  font-style: normal;
  font-weight: 600;
}

.timeline-entry-text a {
  color: var(--gold-noble);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* BIOGRAFÍA DEL FUNDADOR */
.bio-hero-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 50px;
}

.bio-portrait-box {
  text-align: center;
}

.bio-portrait-img {
  width: 100%;
  max-width: 320px;
  border-radius: 8px;
  border: 1px solid var(--gold-border);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(197, 160, 89, 0.2);
  display: block;
  margin: 0 auto;
}

.bio-portrait-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #FFFFFF;
  margin-top: 18px;
  letter-spacing: 1.5px;
}

.bio-portrait-credentials {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-noble);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* FORMULARIOS Y CONTACTO */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #CBD5E1;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: #040910;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-btn);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-noble);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* FOOTER CORPORATIVO OFICIAL */
.site-footer {
  background-color: #040910;
  border-top: 1px solid var(--gold-border);
  padding: 70px 0 24px;
  margin-top: auto;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 50px;
}

.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #FFFFFF;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--gold-noble);
}

.footer-desc {
  font-size: 0.92rem;
  color: #94A3B8;
  line-height: 1.65;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.92rem;
  color: #CBD5E1;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold-noble);
  padding-left: 4px;
}

.footer-contact-box {
  font-size: 0.90rem;
  color: #CBD5E1;
  line-height: 1.75;
}

.footer-contact-box b {
  color: #FFFFFF;
}

.footer-contact-box strong {
  color: var(--gold-noble);
}

.footer-contact-box a {
  color: var(--gold-noble);
  text-decoration: none;
}

.copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   COMPONENTES ESPECIALIZADOS DEL CURSO DE INVERSIÓN EN EE.UU.
   ========================================================================== */

/* ==========================================================================
   PLAN CURRICULAR: RAYCAST-STYLE CAROUSEL (5 GRUPOS TEMÁTICOS CON GLOW)
   ESTÁNDAR OFICIAL LANDING PAGE - 8 MÓDULOS + 1 ANEXO
   ========================================================================== */
.section-padding {
  padding: 100px 0;
}

.serif-headline {
  font-family: var(--font-serif);
}

.curriculum-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.curriculum-header-info {
  max-width: 560px;
}

/* CONTENEDOR DE PESTAÑAS ALINEADO ESTRICTAMENTE A LA DERECHA */
.carousel-tabs-wrapper {
  margin-left: auto;
}

/* PESTAÑAS SOBERANAS EN LA PARTE SUPERIOR DERECHA */
.carousel-tabs-nav {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: 9999px;
  padding: 4px;
  gap: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  overflow-x: auto;
  max-width: 100%;
}

.carousel-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(197, 160, 89, 0.12);
}

/* PESTAÑA ACTIVA: ACENTO ORO IMPERIAL */
.carousel-tab-btn.active {
  background: var(--gold-noble) !important;
  color: #070F1A !important;
  border: 1px solid var(--gold-noble) !important;
  box-shadow: 0 2px 14px rgba(197, 160, 89, 0.35) !important;
  font-weight: 700 !important;
}

/* CONTENEDOR DEL CARRUSEL DENTRO DE CONTAINER (ALINEACIÓN EXACTA A LA IZQUIERDA Y DESBORDE A LA DERECHA) */
.carousel-viewport-wrapper {
  position: relative;
  width: auto;
  /* Se desborda hacia ambos bordes del viewport */
  margin-left: calc(-1 * (100vw - 100%) / 2);
  margin-right: calc(-1 * (100vw - 100%) / 2);
  padding-right: 0;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: auto; /* Controlado por animación fluida JS */
  scroll-snap-type: x mandatory;
  padding-top: 12px;
  padding-bottom: 24px;
  /* Padding dinámico base (móviles/tablets) */
  padding-left: 24px;
  padding-right: 24px;
  /* El scroll-padding evita que el scroll-snap se salte el padding inicial al cargar la página */
  scroll-padding-left: 24px;
  scroll-padding-right: 24px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

@media (min-width: 1200px) {
  .carousel-track {
    /* Padding dinámico para alinear el primer módulo con el contenedor en pantallas grandes */
    padding-left: calc((100vw - var(--container-width, 1200px)) / 2 + 24px);
    padding-right: calc((100vw - var(--container-width, 1200px)) / 2 + 24px);
    scroll-padding-left: calc((100vw - var(--container-width, 1200px)) / 2 + 24px);
    scroll-padding-right: calc((100vw - var(--container-width, 1200px)) / 2 + 24px);
  }
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* TARJETAS SOBERANAS DE CADA MÓDULO */
.raycast-module-card {
  flex: 0 0 360px;
  width: 360px;
  min-width: 360px;
  scroll-snap-align: start;
  border-radius: var(--radius-card);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(16px);
  border: 1px solid var(--gold-border);
  background: var(--bg-surface);
  box-shadow: 0 0 25px rgba(197, 160, 89, 0.08);
  overflow: hidden;
}

.raycast-module-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-noble);
  box-shadow: 0 0 35px rgba(197, 160, 89, 0.25);
}

/* TEMAS CONTRASTANTES CON EFECTOS GLOW Y BORDES DIFERENCIADOS */

/* --- GRUPO 1: MORADOS (FUNDAMENTOS) --- */
/* Módulo 01: Morado Sobrio / Base */
.theme-purple-subtle {
  background: linear-gradient(180deg, #160f24 0%, #0c0913 100%);
  border-color: rgba(168, 85, 247, 0.18);
  box-shadow: inset 0 1px 0 rgba(168, 85, 247, 0.20), 0 10px 30px rgba(0, 0, 0, 0.4);
}
.theme-purple-subtle:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: inset 0 1px 0 rgba(168, 85, 247, 0.30), 0 14px 40px rgba(168, 85, 247, 0.12);
}
.theme-purple-subtle .module-icon-badge {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

/* Módulo 02: Morado Más Intenso y Brillante */
.theme-purple-intense {
  background: linear-gradient(180deg, #2a1647 0%, #120921 100%);
  border-color: rgba(192, 132, 252, 0.42);
  box-shadow: inset 0 1px 0 rgba(216, 180, 254, 0.35), 0 12px 34px rgba(168, 85, 247, 0.18);
}
.theme-purple-intense:hover {
  border-color: rgba(192, 132, 252, 0.65);
  box-shadow: inset 0 1px 0 rgba(216, 180, 254, 0.5), 0 16px 44px rgba(168, 85, 247, 0.28);
}
.theme-purple-intense .module-icon-badge {
  background: rgba(168, 85, 247, 0.28);
  color: #e9d5ff;
  border: 1px solid rgba(192, 132, 252, 0.5);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
}

/* --- GRUPO 2: AZULES (ACTIVOS REALES) --- */
/* Módulo 03: Azul Más Intenso y Brillante */
.theme-blue-intense {
  background: linear-gradient(180deg, #0e2d52 0%, #061529 100%);
  border-color: rgba(96, 165, 250, 0.42);
  box-shadow: inset 0 1px 0 rgba(147, 197, 253, 0.35), 0 12px 34px rgba(59, 130, 246, 0.20);
}
.theme-blue-intense:hover {
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow: inset 0 1px 0 rgba(147, 197, 253, 0.5), 0 16px 44px rgba(59, 130, 246, 0.30);
}
.theme-blue-intense .module-icon-badge {
  background: rgba(59, 130, 246, 0.28);
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.35);
}

/* Módulo 04: Azul Sobrio / Base */
.theme-blue-subtle {
  background: linear-gradient(180deg, #0a1726 0%, #050c14 100%);
  border-color: rgba(59, 130, 246, 0.18);
  box-shadow: inset 0 1px 0 rgba(59, 130, 246, 0.20), 0 10px 30px rgba(0, 0, 0, 0.4);
}
.theme-blue-subtle:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: inset 0 1px 0 rgba(59, 130, 246, 0.30), 0 14px 40px rgba(59, 130, 246, 0.12);
}
.theme-blue-subtle .module-icon-badge {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* --- GRUPO 3: VERDES (VALUACIÓN & GRÁFICOS) --- */
/* Módulo 05: Verde Sobrio / Base */
.theme-green-subtle {
  background: linear-gradient(180deg, #091a13 0%, #040d0a 100%);
  border-color: rgba(34, 197, 94, 0.18);
  box-shadow: inset 0 1px 0 rgba(34, 197, 94, 0.20), 0 10px 30px rgba(0, 0, 0, 0.4);
}
.theme-green-subtle:hover {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: inset 0 1px 0 rgba(34, 197, 94, 0.30), 0 14px 40px rgba(34, 197, 94, 0.12);
}
.theme-green-subtle .module-icon-badge {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

/* Módulo 06: Verde Más Intenso y Brillante */
.theme-green-intense {
  background: linear-gradient(180deg, #0f3521 0%, #06180f 100%);
  border-color: rgba(74, 222, 128, 0.42);
  box-shadow: inset 0 1px 0 rgba(134, 239, 172, 0.35), 0 12px 34px rgba(34, 197, 94, 0.20);
}
.theme-green-intense:hover {
  border-color: rgba(74, 222, 128, 0.65);
  box-shadow: inset 0 1px 0 rgba(134, 239, 172, 0.5), 0 16px 44px rgba(34, 197, 94, 0.30);
}
.theme-green-intense .module-icon-badge {
  background: rgba(34, 197, 94, 0.28);
  color: #bbf7d0;
  border: 1px solid rgba(74, 222, 128, 0.5);
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.35);
}

/* --- GRUPO 4: GRISES (BRÓKERS & CUSTODIA) --- */
/* Módulo 07: Gris Más Intenso y Brillante (Platino Refinado) */
.theme-gray-intense {
  background: linear-gradient(180deg, #2b3038 0%, #15181d 100%);
  border-color: rgba(226, 232, 240, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 12px 34px rgba(148, 163, 184, 0.18);
}
.theme-gray-intense:hover {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 16px 44px rgba(148, 163, 184, 0.28);
}
.theme-gray-intense .module-icon-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.20);
}

/* Módulo 08: Gris Sobrio / Base */
.theme-gray-subtle {
  background: linear-gradient(180deg, #16181b 0%, #0d0e10 100%);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.18), 0 10px 30px rgba(0, 0, 0, 0.4);
}
.theme-gray-subtle:hover {
  border-color: rgba(148, 163, 184, 0.32);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.25), 0 14px 40px rgba(148, 163, 184, 0.12);
}
.theme-gray-subtle .module-icon-badge {
  background: rgba(148, 163, 184, 0.10);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.20);
}

/* --- GRUPO 5: AMARILLO / ORO (BLINDAJE LEGAL - ANEXO ESPECIAL) --- */
/* Módulo 09: Oro Más Intenso, Cálido y Brillante */
.theme-gold-intense {
  background: linear-gradient(180deg, #3d2c0e 0%, #1c1305 100%);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: inset 0 1px 0 rgba(254, 240, 138, 0.38), 0 14px 38px rgba(245, 158, 11, 0.22);
}
.theme-gold-intense:hover {
  border-color: rgba(251, 191, 36, 0.70);
  box-shadow: inset 0 1px 0 rgba(254, 240, 138, 0.55), 0 18px 48px rgba(245, 158, 11, 0.32);
}
.theme-gold-intense .module-icon-badge {
  background: rgba(245, 158, 11, 0.28);
  color: #fef08a;
  border: 1px solid rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.38);
}

/* CABECERA INTERNA DE CADA TARJETA */
.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.module-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.module-index-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.raycast-module-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 8px;
}

.raycast-module-desc {
  font-size: 0.84rem;
  color: #9ca3af;
  line-height: 1.5;
  margin-bottom: 20px;
  min-height: 40px;
}

/* LISTA DE TEMAS CLAVE EN LA TARJETA */
.raycast-lessons-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.raycast-lessons-list li {
  font-size: 0.82rem;
  color: #d1d5db;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.raycast-lessons-list li span.bullet {
  color: #94a3b8;
  font-size: 0.75rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* BOTONES DE NAVEGACIÓN INFERIOR DERECHA */
.carousel-bottom-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 24px;
  padding: 0 4px;
}

.carousel-nav-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
}

.carousel-arrow-btn:hover {
  background: var(--gold-noble);
  color: #070F1A;
  border-color: var(--gold-noble);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(197, 160, 89, 0.35);
}

.carousel-arrow-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  background: rgba(255, 255, 255, 0.02);
  color: #64748b;
  border-color: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1024px) {
  .raycast-module-card {
    flex: 0 0 calc((100% - 24px) / 2);
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .carousel-viewport-wrapper {
    margin-left: -24px !important;
    margin-right: -24px !important;
    padding-right: 0 !important;
  }
  .carousel-track {
    gap: 14px !important;
    padding-bottom: 16px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .raycast-module-card {
    flex: 0 0 82vw !important;
    width: 82vw !important;
    min-width: 82vw !important;
    padding: 18px 16px !important;
    border-radius: 14px !important;
  }
  .card-top-row {
    margin-bottom: 12px !important;
  }
  .module-icon-badge {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }
  .raycast-module-title {
    font-size: 1.02rem !important;
    margin-bottom: 6px !important;
  }
  .raycast-module-desc {
    font-size: 0.78rem !important;
    margin-bottom: 12px !important;
    min-height: auto !important;
  }
  .raycast-lessons-list {
    gap: 6px !important;
    padding-top: 10px !important;
  }
  .raycast-lessons-list li {
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
  }
}

@media (max-width: 640px) {
  .raycast-module-card {
    flex: 0 0 85vw;
    min-width: 260px;
  }
}

/* PLAN CURRICULAR: GRID DE MÓDULOS (CANON MAESTRO 3 COLUMNAS) */
.grid-modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 40px 0;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .grid-modules {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.grid-modules .raycast-module-card {
  flex: 1 1 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100%;
}

.module-card {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-noble);
  box-shadow: 0 14px 35px rgba(0,0,0,0.6), 0 0 20px rgba(197, 160, 89, 0.18);
}

.module-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.module-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-noble);
  letter-spacing: 1.5px;
}

.module-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  background: rgba(197, 160, 89, 0.12);
  color: var(--gold-noble);
  border: 1px solid var(--gold-border-subtle);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

.module-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-bottom: 14px;
  letter-spacing: 0.8px;
  line-height: 1.35;
}

.module-desc {
  font-size: 0.84rem;
  color: #CBD5E1;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.module-topics-list {
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-topics-list li {
  font-size: 0.82rem;
  color: #94A3B8;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.module-topics-list li::before {
  content: '▸';
  color: var(--gold-noble);
  flex-shrink: 0;
}

/* CAJA DE OFERTA Y MATRÍCULA ($499 USD) */
.pricing-master-box {
  background: linear-gradient(180deg, rgba(11, 25, 44, 0.98) 0%, rgba(7, 15, 26, 0.99) 100%);
  border: 2px solid var(--gold-noble);
  border-radius: 8px;
  padding: 48px 40px;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(197, 160, 89, 0.25);
  text-align: center;
  position: relative;
}

.pricing-header {
  margin-bottom: 30px;
}

.price-tag-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 10px;
}

.price-main {
  font-family: var(--font-serif);
  font-size: 2.7rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: 1px;
}

.price-currency {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--gold-noble);
  font-weight: 700;
}

.price-caption {
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.deliverables-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  text-align: left;
  margin: 32px 0;
  padding: 24px;
  background: rgba(4, 9, 16, 0.6);
  border-radius: var(--radius-card);
  border: 1px solid var(--gold-border-subtle);
}

.deliverables-checklist li {
  font-size: 0.88rem;
  color: #E2E8F0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.deliverables-checklist li span.check-icon {
  color: #10B981;
  font-weight: bold;
  flex-shrink: 0;
}

/* FAQ ITEMS */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 860px;
  margin: 40px auto 0;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border-subtle);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--gold-noble);
}

.faq-question {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: #FFFFFF;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.faq-answer {
  font-size: 0.95rem;
  color: #CBD5E1;
  line-height: 1.65;
}

/* FEEDBACK FORMULARIO */
.form-feedback {
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6EE7B7;
}

.form-feedback.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #FCA5A5;
}

/* ==========================================================================
   FORM CONTROLS & LUXURY INPUTS
   ========================================================================== */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.80rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #CBD5E1;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #040910;
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #FFFFFF;
  transition: all var(--transition);
  outline: none;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold-noble);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.35);
  background: #060D17;
}

.form-select option {
  background: #070F1A;
  color: #FFFFFF;
}

/* ==========================================================================
   SIMULADOR / CALCULADORA DIAGNÓSTICA A 10 AÑOS
   ========================================================================== */
.calc-card {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-card);
  padding: 36px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.calc-range-wrapper {
  margin-bottom: 28px;
}

.calc-range-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.calc-range-label {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: #FFFFFF;
}

.calc-range-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-noble);
}

.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: #1E293B;
  outline: none;
  transition: background .2s;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-noble);
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.6);
}

.calc-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-noble);
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.6);
}

.sim-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.sim-scenario-box {
  background: #040910;
  border-radius: var(--radius-card);
  padding: 26px 22px;
  border: 1px solid var(--gold-border-subtle);
  position: relative;
  text-align: left;
}

.sim-scenario-box.winner {
  border-color: var(--gold-noble);
  background: linear-gradient(180deg, rgba(11, 25, 44, 0.9) 0%, rgba(4, 9, 16, 0.95) 100%);
  box-shadow: 0 8px 30px rgba(197, 160, 89, 0.15);
}

.sim-scenario-badge {
  display: inline-block;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.sim-scenario-badge.bank {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.sim-scenario-badge.sovereign {
  background: rgba(197, 160, 89, 0.2);
  color: var(--gold-noble);
  border: 1px solid var(--gold-noble);
}

.sim-big-number {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.2vw, 2.2rem);
  font-weight: 700;
  color: #FFFFFF;
  margin: 10px 0 6px;
}

.sim-big-number.gold {
  color: var(--gold-noble);
}

.sim-sub-number {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.sim-metrics-list {
  list-style: none;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #CBD5E1;
  border-top: 1px solid rgba(197, 160, 89, 0.15);
  padding-top: 14px;
}

.sim-metrics-list li {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   CLASES AUXILIARES DE GRID RESPONSIVO
   ========================================================================== */
.grid-2col-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.checkout-grid-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ==========================================================================
   RESPONSIVIDAD Y CONSULTAS DE MEDIOS (MOBILE FIRST ADAPTIVE)
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-menu {
    display: none !important;
  }
  .menu-toggle-btn {
    display: flex !important;
  }
  /* OCULTAR BOTÓN MATRÍCULA Y CONMUTADOR USD/COP DEL HEADER EN TABLETS Y MÓVILES */
  .header-actions .btn-cta-ruler,
  .header-actions .header-enroll-btn,
  .header-actions .header-cta-btn,
  .header-actions .btn,
  .header-actions .currency-switch,
  .header-actions-group .btn-cta-ruler,
  .header-actions-group .header-enroll-btn,
  .header-actions-group .header-cta-btn,
  .header-actions-group .btn,
  .header-actions-group .currency-switch {
    display: none !important;
  }
  .header-actions,
  .header-actions-group {
    gap: 0 !important;
    flex-shrink: 0 !important;
  }
  .header-flex {
    justify-content: space-between !important;
    width: 100% !important;
    gap: 12px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .grid-2col-responsive,
  .checkout-grid-responsive {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

@media (max-width: 820px) {
  /* PREVENCIÓN ESTRICTA DE DESBORDE HORIZONTAL */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  section, header, footer, main {
    max-width: 100vw !important;
    overflow-x: clip !important;
    box-sizing: border-box !important;
  }

  .container {
    padding: 0 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HEADER COMPACTO Y SIN DESBORDE EN MÓVILES */
  .header-tass {
    padding: 8px 0 !important;
  }

  .header-flex {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box !important;
  }

  .brand-logo {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    text-decoration: none !important;
  }

  .brand-logo-img {
    height: 48px !important;
    width: auto !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
  }

  .brand-text {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    justify-content: center !important;
  }

  .brand-text-main {
    font-size: 1.10rem !important;
    letter-spacing: 0.8px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  /* Ocultar subtítulo en header móvil para dar 100% de espacio al menú hamburguesa */
  .brand-text-sub {
    display: none !important;
  }

  .header-actions,
  .header-actions-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  /* Ocultar botón CTA y conmutador USD/COP en el header móvil */
  .header-actions .btn-cta-ruler,
  .header-actions .header-enroll-btn,
  .header-actions .header-cta-btn,
  .header-actions .btn,
  .header-actions .currency-switch,
  .header-actions-group .btn-cta-ruler,
  .header-actions-group .header-enroll-btn,
  .header-actions-group .header-cta-btn,
  .header-actions-group .btn,
  .header-actions-group .currency-switch {
    display: none !important;
  }

  .drawer-enroll-btn {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .mobile-currency-switch-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid var(--gold-border-subtle) !important;
    border-radius: 6px !important;
    margin-bottom: 20px !important;
  }

  .currency-btn {
    padding: 3px 6px !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
  }

  .menu-toggle-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 6px !important;
    background: rgba(197, 160, 89, 0.18) !important;
    border: 1.5px solid var(--gold-noble) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.3) !important;
    flex-shrink: 0 !important;
  }

  .menu-toggle-btn svg {
    width: 20px !important;
    height: 20px !important;
    fill: #FFFFFF !important;
  }

  /* TICKER BURSÁTIL MÓVIL COMPACTO */
  .market-ticker-bar {
    padding: 5px 0 !important;
    font-size: 0.72rem !important;
  }

  .ticker-inner-flex {
    padding: 0 10px !important;
  }

  .ticker-lead-text {
    display: none !important;
  }

  .ticker-lead-badge {
    padding-right: 8px !important;
    border-right: none !important;
  }

  .ticker-content {
    gap: 20px !important;
    padding-right: 20px !important;
  }

  /* TIPOGRAFÍAS Y ESPACIADOS MÓVILES */
  body {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  .section-py {
    padding: 50px 0 !important;
  }

  .inner-hero {
    padding: 44px 0 30px !important;
  }

  .inner-hero-title {
    font-size: clamp(1.5rem, 5vw, 1.85rem) !important;
    line-height: 1.25 !important;
  }

  .inner-hero-lead {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }

  .section-title {
    font-size: clamp(1.4rem, 4.5vw, 1.75rem) !important;
    line-height: 1.25 !important;
  }

  .section-desc {
    font-size: 0.90rem !important;
    line-height: 1.55 !important;
  }

  .velvet-card, .calc-card, .pricing-master-box, .manifiesto-box {
    padding: 24px 18px !important;
    border-radius: 6px !important;
  }

  .bio-hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 28px !important;
  }

  .contact-container {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .grid-modules {
    grid-template-columns: 1fr !important;
  }

  .pillar-grid {
    grid-template-columns: 1fr !important;
  }

  .deliverables-checklist {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
    gap: 12px !important;
  }

  .sim-results-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .form-row-2col {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .ambient-glow-sphere {
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    transform: none !important;
  }
}

@media (max-width: 480px) {
  .brand-logo-img {
    height: 36px !important;
  }

  .brand-text-main {
    font-size: 0.92rem !important;
    letter-spacing: 0.8px !important;
  }

  .brand-text-sub {
    font-size: 0.54rem !important;
    max-width: 140px;
  }

  .currency-switch {
    padding: 2px !important;
  }

  .currency-btn {
    padding: 3px 6px !important;
    font-size: 0.65rem !important;
  }

  .menu-toggle-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 6px !important;
  }

  .container {
    padding: 0 12px !important;
  }

  .velvet-card, .calc-card, .pricing-master-box, .manifiesto-box {
    padding: 20px 14px !important;
  }

  .price-main {
    font-size: 2.1rem !important;
  }
}

/* ==========================================================================
   MODAL DE ANÁLISIS COMPARATIVO A 10 AÑOS Y CAPTURA DE LEADS (SSOT OFICIAL)
   ========================================================================== */
:root {
  --border-angle: 0deg;
}

@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes raycastBorderBeamRotate {
  0% { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}

dialog.native-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: 620px;
  width: 92%;
  background: var(--bg-surface, #0B192C);
  border: 1px solid var(--gold-border, rgba(197, 160, 89, 0.35));
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.9), 0 0 40px rgba(197, 160, 89, 0.2);
  border-radius: var(--radius-card, 16px);
  color: var(--text-body, #E2E8F0);
  padding: 32px;
  z-index: 9999;
}

dialog.native-modal.modal-wide {
  max-width: 1100px;
  width: 95%;
  max-height: 92vh;
  overflow-y: auto;
}

dialog.native-modal::backdrop {
  background: rgba(7, 15, 26, 0.92);
  backdrop-filter: blur(16px);
}

.lead-capture-box {
  --beam-color: rgba(197, 160, 89, 0.95);
  --beam-bg: #0B192C;
  --beam-radius: 6px;
  --beam-duration: 4.5s;
  --beam-border-width: 1.5px;

  position: relative;
  border-radius: var(--beam-radius);
  padding: 24px 28px;
  margin-top: 10px;
  border: var(--beam-border-width) solid transparent;
  background:
    linear-gradient(var(--beam-bg), var(--beam-bg)) padding-box,
    conic-gradient(
      from var(--border-angle),
      rgba(197, 160, 89, 0.1) 0deg,
      rgba(197, 160, 89, 0.1) 315deg,
      var(--beam-color) 340deg,
      rgba(197, 160, 89, 0.1) 360deg
    ) border-box;

  animation: raycastBorderBeamRotate var(--beam-duration) linear infinite;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(197, 160, 89, 0.15), inset 0 1px 0 rgba(197, 160, 89, 0.1);
}

.lead-input {
  width: 100%;
  background: #070F1A;
  border: 1.5px solid var(--gold-border, rgba(197, 160, 89, 0.35));
  border-radius: var(--radius-btn, 8px);
  color: #FFFFFF;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: all var(--transition, 0.25s ease);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.lead-input::placeholder {
  color: var(--text-muted, #94A3B8);
  font-weight: 400;
}

.lead-input:focus {
  outline: none;
  background: #0B192C;
  border-color: var(--gold-noble, #C5A059);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.25), inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.modal-tab-btn {
  background: rgba(11, 25, 44, 0.8);
  border: 1px solid var(--gold-border, rgba(197, 160, 89, 0.35));
  color: var(--text-body, #E2E8F0);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-btn, 8px);
  cursor: pointer;
  transition: all var(--transition, 0.25s ease);
}

.modal-tab-btn:hover {
  border-color: var(--gold-noble, #C5A059);
  color: #FFFFFF;
}

.modal-tab-btn.active {
  background: var(--gold-noble, #C5A059);
  border-color: var(--gold-noble, #C5A059);
  color: #070F1A;
  font-weight: 700;
}

.comp-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .comp-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .comp-matrix-grid {
    grid-template-columns: 1fr;
  }
}

.cap-selector-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
  background: #070F1A;
  padding: 10px 14px;
  border-radius: var(--radius-btn, 8px);
  border: 1px solid var(--gold-border, rgba(197, 160, 89, 0.35));
}

.comp-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}

.comp-card {
  background: var(--bg-surface, #0B192C);
  border: 1px solid var(--gold-border, rgba(197, 160, 89, 0.35));
  box-shadow: 0 0 25px rgba(197, 160, 89, 0.08);
  border-radius: var(--radius-card, 16px);
  padding: 20px;
  transition: all var(--transition, 0.25s ease);
}

.comp-card.winner-card {
  border: 1px solid var(--gold-noble, #C5A059);
  background: rgba(197, 160, 89, 0.05);
  box-shadow: 0 0 35px rgba(197, 160, 89, 0.25);
}

.comp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 8px;
  flex-wrap: wrap;
}

.comp-card-title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: #FFFFFF;
}

.comp-card-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted, #94A3B8);
  margin-top: 2px;
}

.comp-tag {
  font-size: 0.70rem;
  font-family: var(--font-sans);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.tag-danger { background: rgba(239, 68, 68, 0.12); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.tag-warning { background: rgba(197, 160, 89, 0.12); color: var(--gold-noble, #C5A059); border: 1px solid var(--gold-border, rgba(197, 160, 89, 0.35)); }
.tag-winner { background: rgba(197, 160, 89, 0.18); color: var(--gold-noble, #C5A059); border: 1px solid var(--gold-noble, #C5A059); font-weight: 800; }

.comp-boxes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  .comp-boxes-grid {
    grid-template-columns: 1fr;
  }
}

.comp-period-box {
  background: rgba(7, 15, 26, 0.6);
  border: 1px solid var(--gold-border, rgba(197, 160, 89, 0.35));
  border-radius: var(--radius-btn, 8px);
  padding: 12px 14px;
}

.comp-period-label {
  font-size: 0.72rem;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--gold-noble, #C5A059);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.comp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.comp-row-sub {
  font-size: 0.74rem;
  color: var(--text-muted, #94A3B8);
  margin-top: 1px;
}

.comp-label {
  color: var(--text-body, #E2E8F0);
}

.comp-value {
  font-family: var(--font-mono);
  font-weight: 600;
}

.val-green { color: var(--gold-noble, #C5A059); font-weight: 700; }
.val-red { color: #f87171; }

.comp-divider {
  height: 1px;
  background: var(--gold-border, rgba(197, 160, 89, 0.35));
  margin: 8px 0;
}

.comp-total-row {
  font-size: 0.90rem;
  font-weight: 700;
  margin-top: 2px;
}

.comp-total-label {
  color: #FFFFFF;
}

.comp-total-value {
  font-family: var(--font-mono);
  font-size: 1.18rem;
  font-weight: 800;
}

.comp-verdict-box {
  background: #070F1A;
  border: 1px solid var(--gold-border, rgba(197, 160, 89, 0.35));
  border-left: 3px solid var(--gold-noble, #C5A059);
  border-radius: var(--radius-btn, 8px);
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}

.winner-card .comp-verdict-box {
  border-left-color: var(--gold-noble, #C5A059);
  background: rgba(197, 160, 89, 0.08);
}

.comp-verdict-icon {
  font-size: 1.0rem;
  line-height: 1;
}

.comp-verdict-text {
  font-size: 0.84rem;
  font-style: italic;
  color: var(--text-body, #E2E8F0);
  line-height: 1.5;
}

.comp-card-svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: inline-block;
  vertical-align: middle;
  color: #94A3B8;
}

.comp-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid var(--gold-border, rgba(197, 160, 89, 0.35));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comp-svg-gold {
  stroke: var(--gold-noble, #C5A059) !important;
  color: var(--gold-noble, #C5A059) !important;
}

.btn-emerald {
  background: #10b981;
  color: #070F1A;
  border: none;
  font-weight: 700;
  transition: all var(--transition, 0.25s ease);
  cursor: pointer;
  border-radius: var(--radius-btn, 8px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-emerald:hover {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-svg-icon {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 4px;
}

/* ESTRUCTURA FLEXIBLE Y RESPONSIVA DEL FORMULARIO DE DIAGNÓSTICO */
.lead-capture-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.lead-form-group {
  width: 100% !important;
  box-sizing: border-box !important;
}

.lead-amount-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.lead-amount-input-box {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.lead-currency-switch {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  background: #15181E !important;
  padding: 3px !important;
  border: 1px solid rgba(197, 160, 89, 0.35) !important;
  border-radius: 8px !important;
  height: 48px !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.lead-curr-btn {
  padding: 8px 12px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  height: 40px !important;
  min-width: 48px !important;
  background: transparent !important;
  color: #94A3B8 !important;
  transition: all 0.2s ease !important;
}

.lead-curr-btn.active {
  background: #D4AF37 !important;
  color: #070F1A !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
}

.lead-consent-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 4px 2px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.lead-consent-checkbox {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  accent-color: #38BDF8 !important;
  margin-top: 2px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.lead-consent-label {
  font-size: 0.80rem !important;
  color: #CBD5E1 !important;
  line-height: 1.45 !important;
  cursor: pointer !important;
  font-weight: 400 !important;
  user-select: none !important;
}

.lead-brand-highlight {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

.lead-submit-btn {
  width: 100% !important;
  min-height: 50px !important;
  padding: 13px 18px !important;
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

@media (min-width: 768px) {
  .lead-capture-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px 14px !important;
  }
  .lead-name-group {
    grid-column: 1 / 2 !important;
  }
  .lead-email-group {
    grid-column: 2 / 3 !important;
  }
  .lead-full-col {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 767px) {
  dialog.native-modal.modal-wide {
    width: 96% !important;
    max-width: 96% !important;
    padding: 12px 12px 16px !important;
    max-height: 94vh !important;
    border-radius: 12px !important;
  }
  dialog.native-modal .serif-headline {
    font-size: 1.15rem !important;
    line-height: 1.25 !important;
  }
  dialog.native-modal p {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }
  .lead-capture-box {
    padding: 12px 12px 14px !important;
    margin-top: 6px !important;
    margin-bottom: 10px !important;
    border-radius: 8px !important;
  }
  .lead-capture-form {
    gap: 9px !important;
  }
  .lead-input {
    height: 44px !important;
    min-height: 44px !important;
    padding: 8px 12px !important;
    font-size: 15px !important;
  }
  .lead-currency-switch {
    height: 44px !important;
  }
  .lead-curr-btn {
    height: 38px !important;
    padding: 6px 10px !important;
    font-size: 0.80rem !important;
  }
  .lead-consent-wrapper {
    padding: 2px 0 !important;
    gap: 8px !important;
  }
  .lead-consent-label {
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
  }
  .lead-submit-btn {
    min-height: 46px !important;
    padding: 11px 14px !important;
    font-size: 0.90rem !important;
  }
  .modal-tab-btn {
    padding: 6px 10px !important;
    font-size: 0.74rem !important;
  }
  .comp-card {
    padding: 14px 12px !important;
  }
}

/* Optimización de Rendimiento Core Web Vitals: Renderizado Just-in-Time */
.content-auto {
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

/* ==========================================================================
   SIMULADOR ACTUARIAL 6 OPCIONES // LAYOUT EXPANDIDO PC & 2 FILAS X 3 COLUMNAS
   ========================================================================== */
.sim-wide-container {
  max-width: 1360px !important;
  width: 95% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.sim-sliders-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  align-items: start !important;
}

@media (max-width: 992px) {
  .sim-sliders-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

.sim-6cards-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 18px !important;
  margin-top: 24px !important;
}

@media (max-width: 992px) {
  .sim-6cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .sim-6cards-grid {
    grid-template-columns: 1fr !important;
  }
}

.sim-card {
  background: #0B192C !important;
  border: 1px solid rgba(197, 160, 89, 0.35) !important;
  border-radius: 12px !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
  box-sizing: border-box !important;
}

.sim-card:hover {
  border-color: rgba(212, 175, 55, 0.6) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7) !important;
}

.sim-card.winner-card {
  border: 1.5px solid var(--gold-noble, #D4AF37) !important;
  background: radial-gradient(ellipse at top, rgba(212, 175, 55, 0.12) 0%, rgba(11, 25, 44, 0.96) 80%) !important;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.22) !important;
}

.sim-period-badge {
  font-size: 0.70rem !important;
  font-family: var(--font-mono) !important;
  font-weight: 700 !important;
  color: #38BDF8 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  margin: 10px 0 12px !important;
  background: rgba(56, 189, 248, 0.08) !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  display: inline-block !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
}

.sim-metric-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  font-size: 0.88rem !important;
  gap: 8px !important;
}

.sim-metric-label {
  color: #CBD5E1 !important;
  font-weight: 500 !important;
}

.sim-metric-val {
  font-family: var(--font-mono) !important;
  font-weight: 700 !important;
  font-size: 0.96rem !important;
  white-space: nowrap !important;
}

.sim-metric-equiv {
  font-family: var(--font-mono) !important;
  font-size: 0.74rem !important;
  color: #94A3B8 !important;
  margin-top: 1px !important;
  white-space: nowrap !important;
}

.sim-total-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  margin-top: 4px !important;
  gap: 8px !important;
}

.sim-total-label {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 0.86rem !important;
  letter-spacing: 0.02em !important;
}

.sim-total-val {
  font-family: var(--font-mono) !important;
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.sim-total-equiv {
  font-family: var(--font-mono) !important;
  font-size: 0.80rem !important;
  color: #38BDF8 !important;
  font-weight: 600 !important;
  margin-top: 2px !important;
  white-space: nowrap !important;
}



