/* ==========================================================================
   AURELIA PATRIMONIAL — BANCA PRIVADA & TERMINAL FINANCIERO
   Hoja de Estilos Oficial (Arquitectura Ejecutiva de Alto Contraste)
   Paleta: 
     - Fondo Principal Oscuro: #07101E
     - Paneles y Tarjetas: #0D1B30 (con borde 1px solid rgba(197, 155, 39, 0.25))
     - Contraste / Matriz: #F8FAFC (Gris Pizarra Ultra Claro)
     - Acentos: #C59B27 (Dorado Mate), #10B981 (Verde Rendimiento), #1E3A5F (Azul Acero)
     - Textos: #F1F5F9 (Sobre oscuro), #0F172A (Sobre claro)
   Tipografías: Plus Jakarta Sans (Métricas/Cifras) + Inter (Lectura/Controles)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & RESET
   -------------------------------------------------------------------------- */
:root {
  /* Fondos Modo Terminal */
  --bg-terminal-deep: #07101E;    /* Fondo base ultra oscuro */
  --bg-terminal-panel: #0D1B30;   /* Superficie paneles y dashboard */
  --bg-terminal-subtle: #132644;  /* Superficie activa / hover */
  --bg-terminal-ticker: #050B15;  /* Barra horizontal ticker */

  /* Sección Clara de Contraste */
  --bg-light-canvas: #F8FAFC;
  --bg-light-surface: #FFFFFF;
  --bg-light-row-alt: #F1F5F9;

  /* Acentos de Marca */
  --color-gold: #C59B27;          /* Dorado Mate Ejecutivo */
  --color-gold-hover: #AA821A;    /* Dorado Oscuro */
  --color-gold-light: #E0BA55;    /* Dorado Luminoso */
  --color-gold-glow: rgba(197, 155, 39, 0.2);
  --color-gold-border: rgba(197, 155, 39, 0.28);

  --color-emerald: #10B981;       /* Verde Rendimiento / Interés Compuesto */
  --color-emerald-light: #34D399;
  --color-emerald-bg: rgba(16, 185, 129, 0.12);

  --color-steel: #1E3A5F;         /* Azul Acero Institucional */
  --color-steel-light: #2A5182;

  /* Textos */
  --text-light-primary: #F1F5F9;  /* Texto sobre oscuro */
  --text-light-secondary: #CBD5E1;
  --text-light-muted: #94A3B8;

  --text-dark-primary: #0F172A;   /* Texto sobre claro */
  --text-dark-secondary: #475569;
  --text-dark-muted: #64748B;

  /* Bordes */
  --border-terminal: rgba(197, 155, 39, 0.22);
  --border-subtle-dark: rgba(255, 255, 255, 0.08);
  --border-light-matrix: #E2E8F0;

  /* WebOnes Cintilla */
  --webones-dark: #0B3939;
  --webones-teal: #12828A;
  --webones-aqua: #20B2BC;

  /* Tipografías */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Dimensiones y Transiciones */
  --demo-bar-height: 36px;
  --header-height: 72px;
  --ticker-height: 44px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--demo-bar-height) + var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body.terminal-body {
  font-family: var(--font-body);
  background-color: var(--bg-terminal-deep);
  color: var(--text-light-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: calc(36px + var(--header-height));
}

/* Scroll margin compensatorio para anclas bajo doble barra fija */
section[id],
div[id],
article[id],
main[id],
[id] {
  scroll-margin-top: 105px;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.nowrap {
  white-space: nowrap;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --------------------------------------------------------------------------
   2. CINTILLA SUPERIOR WEBONES
   -------------------------------------------------------------------------- */
.webones-demo-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 36px;
  background: var(--webones-dark);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 500;
  z-index: 1100;
  border-bottom: 1px solid rgba(32, 178, 188, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-bar-inner {
  height: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(32, 178, 188, 0.18);
  color: var(--webones-aqua);
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.demo-separator {
  color: rgba(255, 255, 255, 0.4);
}

.demo-credits {
  color: #E2E8F0;
  letter-spacing: 0.01em;
}

.demo-credits strong {
  color: #FFFFFF;
  font-weight: 600;
}

.demo-return-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--webones-aqua);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.demo-return-link:hover {
  color: #FFFFFF;
  background: rgba(32, 178, 188, 0.15);
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   3. MODAL DE AVISO (SESSIONSTORAGE)
   -------------------------------------------------------------------------- */
.demo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 30, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.demo-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.demo-modal-card {
  background: var(--bg-terminal-panel);
  border: 1px solid var(--color-gold);
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  padding: 2.25rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  text-align: center;
  transform: translateY(16px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-light-primary);
}

.demo-modal-backdrop.active .demo-modal-card {
  transform: translateY(0);
}

.modal-icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(197, 155, 39, 0.12);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--border-terminal);
}

.modal-heading {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.modal-body-text {
  font-size: 0.95rem;
  color: var(--text-light-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.modal-body-text strong {
  color: var(--color-gold-light);
  font-weight: 600;
}

.modal-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.btn-primary-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--color-gold);
  color: #07101E;
  padding: 0.85rem 1.65rem;
  border-radius: 6px;
  font-size: 0.925rem;
  font-weight: 700;
  border: 1px solid var(--color-gold-hover);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px var(--color-gold-glow);
  width: 100%;
}

.btn-primary-gold:hover {
  background: var(--color-gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.35);
  color: #07101E;
}

.modal-link-back {
  font-size: 0.85rem;
  color: var(--text-light-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.modal-link-back:hover {
  color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   4. NAVBAR EJECUTIVO
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 36px;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(7, 16, 30, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle-dark);
  z-index: 1000;
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.isotype-box {
  width: 42px;
  height: 42px;
  background: var(--bg-terminal-panel);
  border: 1px solid var(--border-terminal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.isotype-box.small {
  width: 34px;
  height: 34px;
}

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

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links-desktop a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light-secondary);
  position: relative;
  padding: 0.35rem 0;
  white-space: nowrap;
}

.nav-links-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-fast);
}

.nav-links-desktop a:hover {
  color: #FFFFFF;
}

.nav-links-desktop a:hover::after {
  width: 100%;
}

.btn-nav-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold);
  color: #07101E;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--color-gold-hover);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-nav-gold:hover {
  background: var(--color-gold-light);
  box-shadow: 0 4px 12px var(--color-gold-glow);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle-dark);
  width: 42px;
  height: 42px;
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.hamburger-bar {
  width: 22px;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle-btn.open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle-btn.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.mobile-toggle-btn.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: calc(36px + var(--header-height));
  left: 0;
  width: 100%;
  max-height: calc(100vh - 36px - var(--header-height));
  max-height: calc(100dvh - 36px - var(--header-height));
  overflow-y: auto;
  background: var(--bg-terminal-deep);
  border-bottom: 1px solid var(--border-terminal);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.6);
  z-index: 999;
}

.mobile-drawer.active {
  display: flex;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-link {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-light-primary);
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
}

.mobile-nav-link:hover {
  background: var(--bg-terminal-panel);
  color: var(--color-gold);
}

.mobile-nav-link.mobile-btn-highlight {
  background: var(--color-gold);
  color: #07101E;
  text-align: center;
  margin-top: 0.5rem;
}

.mobile-drawer-footer {
  border-top: 1px solid var(--border-subtle-dark);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-light-muted);
}

/* --------------------------------------------------------------------------
   5. CINTA DE INDICADORES DE REFERENCIA (SUB-HEADER TERMINAL)
   -------------------------------------------------------------------------- */
.terminal-ticker-bar {
  background: var(--bg-terminal-ticker);
  border-bottom: 1px solid var(--border-terminal);
  height: var(--ticker-height);
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.terminal-ticker-bar::-webkit-scrollbar {
  display: none;
}

.ticker-inner {
  max-width: 1260px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.775rem;
  color: var(--text-light-secondary);
}

.ticker-item.live-indicator {
  color: #FFFFFF;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 8px var(--color-emerald);
}

.ticker-label {
  color: var(--text-light-muted);
}

.ticker-val {
  color: #FFFFFF;
  font-weight: 700;
}

.ticker-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   6. CABECERA COMPACTA + SIMULADOR COMO NÚCLEO CENTRAL
   -------------------------------------------------------------------------- */
.simulator-core-section {
  padding: 4.5rem 0 5rem;
  background: radial-gradient(circle at 80% 20%, rgba(197, 155, 39, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
              var(--bg-terminal-deep);
  border-bottom: 1px solid var(--border-terminal);
}

.core-header {
  margin-bottom: 3rem;
}

.core-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(197, 155, 39, 0.1);
  border: 1px solid var(--border-terminal);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.core-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
}

.core-badge-text {
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-gold-light);
  text-transform: uppercase;
}

.core-title {
  font-family: var(--font-heading);
  font-size: 2.65rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.core-subtitle {
  font-size: 1.05rem;
  color: var(--text-light-secondary);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Dashboard a 2 Columnas */
.sim-terminal-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.terminal-panel {
  background: var(--bg-terminal-panel);
  border: 1px solid var(--border-terminal);
  border-radius: 12px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.panel-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle-dark);
  padding-bottom: 0.85rem;
  margin-bottom: 1.75rem;
}

.panel-tag {
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-light-muted);
}

.panel-tag.gold {
  color: var(--color-gold);
}

.panel-counter, .panel-status-val {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light-muted);
}

.panel-status-val {
  color: var(--color-emerald-light);
}

/* Sliders */
.control-block {
  margin-bottom: 1.65rem;
}

.control-block.last {
  margin-bottom: 0;
}

.control-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.control-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light-secondary);
}

.control-reading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-gold-light);
}

.terminal-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #162842;
  outline: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.terminal-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 12px var(--color-gold-glow);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.terminal-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--color-gold-light);
}

.terminal-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 12px var(--color-gold-glow);
  cursor: pointer;
}

.slider-endpoints {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-light-muted);
  margin-top: 0.35rem;
}

/* Perfiles de Riesgo Pills */
.control-name-block {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light-secondary);
  margin-bottom: 0.65rem;
}

.risk-pills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.risk-pill-btn {
  background: var(--bg-terminal-subtle);
  border: 1px solid var(--border-subtle-dark);
  border-radius: 8px;
  padding: 0.85rem 0.5rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: all var(--transition-fast);
}

.risk-pill-btn:hover {
  background: #183359;
  border-color: var(--border-terminal);
}

.risk-pill-btn.active {
  background: rgba(197, 155, 39, 0.15);
  border-color: var(--color-gold);
  box-shadow: 0 0 10px rgba(197, 155, 39, 0.25);
}

.p-name {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-light-secondary);
}

.p-rate {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
}

.p-hint {
  font-size: 0.65rem;
  color: var(--text-light-muted);
  line-height: 1.2;
}

/* Panel Derecho: Métricas & SVG */
.kpi-hero-box {
  margin-bottom: 1.5rem;
}

.kpi-hero-label {
  font-size: 0.825rem;
  color: var(--text-light-secondary);
  display: block;
  margin-bottom: 0.25rem;
}

.kpi-hero-value {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.kpi-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.kpi-sub-card {
  background: var(--bg-terminal-subtle);
  border: 1px solid var(--border-subtle-dark);
  border-radius: 8px;
  padding: 0.95rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.kpi-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.kpi-dot.steel {
  background: var(--color-steel-light);
}

.kpi-dot.emerald {
  background: var(--color-emerald);
}

.kpi-text-col {
  display: flex;
  flex-direction: column;
}

.kpi-sub-label {
  font-size: 0.7rem;
  color: var(--text-light-muted);
  line-height: 1.25;
}

.kpi-sub-val {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 3px;
}

.kpi-sub-val.green {
  color: var(--color-emerald-light);
}

/* Gráfica SVG */
.terminal-chart-box {
  background: #050B15;
  border: 1px solid var(--border-subtle-dark);
  border-radius: 8px;
  padding: 1.15rem;
  margin-bottom: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.chart-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chart-legend-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light-secondary);
}

.chart-indicators {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.7rem;
  color: var(--text-light-muted);
}

.c-ind {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.c-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.c-swatch.steel {
  background: var(--color-steel-light);
}

.c-swatch.emerald {
  background: var(--color-emerald);
}

.svg-chart-wrapper {
  width: 100%;
  height: 130px;
  display: flex;
  align-items: flex-end;
}

.terminal-action-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.terminal-note {
  font-size: 0.7rem;
  color: var(--text-light-muted);
  text-align: center;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   7. ESTRATEGIAS PATRIMONIALES POR PESTAÑAS (TABS EN JS)
   -------------------------------------------------------------------------- */
.strategies-tabs-section {
  padding: 5.5rem 0;
  background-color: var(--bg-terminal-deep);
  border-bottom: 1px solid var(--border-terminal);
}

.section-rule-header {
  margin-bottom: 3rem;
}

.section-pretitle {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--color-gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
}

.title-underline.gold {
  width: 56px;
  height: 3px;
  background: var(--color-gold);
  margin: 1rem 0 1.25rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light-secondary);
  max-width: 680px;
  line-height: 1.6;
}

.tabs-terminal-container {
  background: var(--bg-terminal-panel);
  border: 1px solid var(--border-terminal);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.tabs-nav-bar {
  display: flex;
  background: #050B15;
  border-bottom: 1px solid var(--border-terminal);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-nav-bar::-webkit-scrollbar {
  display: none;
}

.tab-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-light-muted);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-nav-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #FFFFFF;
}

.tab-nav-btn.active {
  background: var(--bg-terminal-panel);
  color: #FFFFFF;
  border-top: 3px solid var(--color-gold);
}

.tab-idx {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-gold);
}

.tab-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.tabs-display-viewport {
  padding: 3rem 2.5rem;
}

.tab-pane-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.pane-badge {
  display: inline-block;
  background: rgba(197, 155, 39, 0.12);
  border: 1px solid var(--border-terminal);
  color: var(--color-gold-light);
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.pane-badge.green {
  background: var(--color-emerald-bg);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--color-emerald-light);
}

.pane-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.pane-desc {
  font-size: 0.975rem;
  color: var(--text-light-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.btn-select-strategy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--border-terminal);
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-select-strategy:hover {
  background: var(--color-gold);
  color: #07101E;
}

.pane-specs-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--bg-terminal-subtle);
  border: 1px solid var(--border-subtle-dark);
  border-radius: 10px;
  padding: 1.75rem;
}

.spec-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-value {
  font-size: 0.875rem;
  color: #FFFFFF;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   8. MATRIZ COMPARATIVA DE MANDATOS (TABLA EJECUTIVA EN FONDO CLARO)
   -------------------------------------------------------------------------- */
.mandates-matrix-section {
  padding: 5.5rem 0;
  background-color: var(--bg-light-canvas);
  color: var(--text-dark-primary);
}

.mandates-matrix-section .section-title {
  color: var(--text-dark-primary);
}

.mandates-matrix-section .section-subtitle {
  color: var(--text-dark-secondary);
}

.matrix-table-container {
  margin-top: 3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #FFFFFF;
  border: 1px solid var(--border-light-matrix);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  font-size: 0.9rem;
}

.matrix-table thead tr {
  background: #0D1B30;
  color: #FFFFFF;
}

.th-feature {
  width: 26%;
  padding: 1.75rem 1.5rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.th-mandate {
  width: 24.6%;
  padding: 1.75rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.th-mandate.highlighted {
  background: #132644;
  border-top: 3px solid var(--color-gold);
}

.mandate-col-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mandate-pill {
  font-size: 0.675rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #94A3B8;
  text-transform: uppercase;
}

.mandate-pill.gold {
  color: var(--color-gold-light);
}

.mandate-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
}

.mandate-target {
  font-size: 0.775rem;
  color: #CBD5E1;
}

/* Filas del cuerpo */
.matrix-table tbody tr {
  border-bottom: 1px solid var(--border-light-matrix);
  transition: background-color var(--transition-fast);
}

.matrix-table tbody tr:hover {
  background-color: rgba(241, 245, 249, 0.6);
}

.td-feature-title {
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark-primary);
  background: #FAFBFD;
  border-right: 1px solid var(--border-light-matrix);
}

.td-val {
  padding: 1.25rem;
  color: var(--text-dark-secondary);
  border-right: 1px solid var(--border-light-matrix);
  line-height: 1.45;
}

.td-val.highlighted {
  background: rgba(197, 155, 39, 0.04);
  font-weight: 600;
  color: var(--text-dark-primary);
}

.tr-action-row td {
  padding: 1.5rem 1.25rem;
}

.btn-matrix-choose {
  background: transparent;
  border: 1px solid #CBD5E1;
  color: var(--text-dark-primary);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  width: 100%;
}

.btn-matrix-choose:hover {
  background: var(--text-dark-primary);
  color: #FFFFFF;
  border-color: var(--text-dark-primary);
}

.btn-matrix-choose.gold {
  background: var(--color-gold);
  border-color: var(--color-gold-hover);
  color: #07101E;
}

.btn-matrix-choose.gold:hover {
  background: var(--color-gold-light);
}

/* --------------------------------------------------------------------------
   9. SOLICITUD DE SESIÓN DE DIAGNÓSTICO PRIVADO
   -------------------------------------------------------------------------- */
.diagnostic-request-section {
  padding: 5.5rem 0;
  background-color: var(--bg-terminal-deep);
  border-top: 1px solid var(--border-terminal);
}

.request-layout-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.request-heading {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
}

.title-underline.left {
  margin-left: 0;
}

.request-text {
  font-size: 1rem;
  color: var(--text-light-secondary);
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

.cert-guarantee-block {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-bottom: 2rem;
}

.cert-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cert-shield-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(197, 155, 39, 0.1);
  border: 1px solid var(--border-terminal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-detail strong {
  display: block;
  font-size: 0.925rem;
  color: #FFFFFF;
  font-weight: 700;
}

.cert-detail span {
  font-size: 0.825rem;
  color: var(--text-light-muted);
  line-height: 1.4;
}

.btn-whatsapp-terminal {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #25D366;
  color: #FFFFFF;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-whatsapp-terminal:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  color: #FFFFFF;
}

/* Formulario Terminal */
.terminal-form-card {
  background: var(--bg-terminal-panel);
  border: 1px solid var(--border-terminal);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.form-subtitle {
  font-size: 0.8rem;
  color: var(--color-gold-light);
  margin-bottom: 1.75rem;
}

.terminal-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.f-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light-secondary);
}

.f-input {
  background: #050B15;
  border: 1px solid var(--border-terminal);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #FFFFFF;
  outline: none;
  transition: all var(--transition-fast);
}

.f-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.2);
}

textarea.f-textarea {
  resize: vertical;
  min-height: 95px;
}

.form-success-notice {
  font-size: 0.775rem;
  color: #34D399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  margin-top: 0.35rem;
}

.form-checkbox-row {
  margin-top: 0.25rem;
}

.checkbox-box {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.775rem;
  color: var(--text-light-muted);
  line-height: 1.4;
  cursor: pointer;
}

.checkbox-box input {
  margin-top: 2px;
  accent-color: var(--color-gold);
}

.btn-submit-terminal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--color-gold);
  color: #07101E;
  border: 1px solid var(--color-gold-hover);
  padding: 0.95rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 0.5rem;
  box-shadow: 0 4px 14px var(--color-gold-glow);
}

.btn-submit-terminal:hover {
  background: var(--color-gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.35);
}

/* --------------------------------------------------------------------------
   10. PIE EDITORIAL
   -------------------------------------------------------------------------- */
.terminal-footer {
  background: #040810;
  border-top: 1px solid var(--border-terminal);
  padding: 4.5rem 0 0;
  color: var(--text-light-secondary);
}

.footer-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  padding-bottom: 3.5rem;
}

.f-brand-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.f-brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.05em;
}

.f-brand-desc {
  font-size: 0.875rem;
  color: var(--text-light-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 500px;
}

.f-brand-cert {
  font-size: 0.775rem;
  color: var(--color-gold-light);
  display: block;
  font-weight: 600;
}

.f-col-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.f-disclaimer-text {
  font-size: 0.825rem;
  color: var(--text-light-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.f-webones-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(32, 178, 188, 0.12);
  color: var(--webones-aqua);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(32, 178, 188, 0.3);
  transition: all var(--transition-fast);
}

.f-webones-btn:hover {
  background: rgba(32, 178, 188, 0.25);
  color: #FFFFFF;
}

.footer-legal-bar {
  border-top: 1px solid var(--border-subtle-dark);
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--text-light-muted);
}

.legal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.webones-attribution a {
  color: var(--webones-aqua);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   11. RESPONSIVE / MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .sim-terminal-dashboard {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tab-pane-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .request-layout-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-content-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
    --demo-bar-height: 36px;
  }

  body.terminal-body {
    padding-top: 104px; /* 36px + 68px */
  }

  .webones-demo-bar {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.75rem;
    font-size: 0.78rem;
  }

  .demo-bar-inner {
    width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.78rem;
  }

  .demo-credits, .demo-separator {
    display: none;
  }

  .site-header {
    position: fixed;
    top: 36px;
    left: 0;
    width: 100%;
    height: 68px;
  }

  .mobile-drawer {
    top: 104px;
    max-height: calc(100vh - 104px);
    max-height: calc(100dvh - 104px);
  }

  .nav-links-desktop,
  .btn-nav-gold {
    display: none;
  }

  .mobile-toggle-btn {
    display: flex;
  }

  .core-title {
    font-size: 2.15rem;
  }

  .kpi-hero-value {
    font-size: 2.25rem;
  }

  .kpi-duo-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .terminal-panel {
    padding: 1.75rem 1.25rem;
  }

  .tabs-display-viewport {
    padding: 2rem 1.25rem;
  }

  .form-row-duo {
    grid-template-columns: 1fr;
  }

  .terminal-form-card {
    padding: 1.75rem 1.25rem;
  }

  .legal-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .core-title {
    font-size: 1.85rem;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-subtitle {
    font-size: 0.58rem;
  }

  .demo-bar-inner {
    padding: 0 1rem;
    font-size: 0.75rem;
  }

  .demo-credits, .demo-separator {
    display: none;
  }

  .risk-pills-row {
    grid-template-columns: 1fr;
  }

  .tab-nav-btn {
    padding: 1rem 0.85rem;
    font-size: 0.8rem;
  }
}
