/* ==========================================================================
   ATENUM | POWERED BY DIGITAL CORE
   Sistema de Diseño Editorial de Alta Fidelidad — Ruta A (M1 + A1)
   Paleta Oficial: Marfil Solar Diáfano (#FAF7F2), Azul Bóveda Celeste (#244B6E),
   Oro Ocre Alquímico (#B8860B) y Obsidiana Espacial (#121316)
   ========================================================================== */

:root {
  /* Variables de Áreas Seguras & Viewport Dinámico para Teléfonos */
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --header-height: 72px;

  /* Fondos Basados en Ruta A (M1 Pureza Editorial — Cero Ruido Marrón) */
  --bg-dark: #121316;
  --bg-dark-card: #1a1c20;
  --bg-parchment: #FAF7F2;      /* Marfil Solar Diáfano Continuo */
  --bg-section-alt: #FAF7F2;   /* Fondo continuo: se eliminan las franjas marrones */
  --bg-card: #FFFFFF;           /* Cajas blancas puras: cero marrón sucio */
  --bg-card-hover: #FFFFFF;     /* Elevación pura con resplandor áureo */
  --bg-header: rgba(250, 247, 242, 0.96);
  --bg-white: #ffffff;

  /* Colores Tipográficos */
  --text-dark: #16181b;
  --text-muted: #505663;
  --text-light: #7a8292;
  --text-white: #f5f4f0;

  /* Acentos Cromáticos Solares */
  --gold-primary: #b8860b;
  --gold-hover: #996f08;
  --gold-light: #f6edd9;
  --gold-border: rgba(184, 134, 11, 0.35);

  /* EJE CELESTIAL VINTAGE A1 (Azul Bóveda Celeste) */
  --teal-primary: #244B6E;  /* Azul Bóveda Celeste Vintage */
  --teal-hover: #16324D;    /* Añil Profundo */
  --teal-light: #EBF2F8;    /* Escarcha de Cielo Matutino */
  --teal-border: rgba(36, 75, 110, 0.28);

  --border-subtle: rgba(36, 75, 110, 0.1); /* Línea limpia celestial sin tinte marrón */

  /* Tipografías */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 20px rgba(36, 75, 110, 0.04);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-parchment);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}

/* ==================== HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-header, rgba(250, 247, 242, 0.96));
  backdrop-filter: blur(14px);
  z-index: -1;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 2rem;
  max-width: 1480px;
  margin: 0 auto;
  gap: 1.25rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-dark);
  flex-shrink: 0;
}

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

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  text-transform: uppercase;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  height: 100%;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  line-height: 1;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 22px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--gold-primary);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-highlight {
  color: var(--gold-primary) !important;
  font-weight: 600;
  padding-right: 0.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0.75rem;
  flex-shrink: 0;
  border-left: 1px solid rgba(184, 134, 11, 0.25);
  padding-left: 1.5rem;
  margin-left: 0.5rem;
}

.btn-portal-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 36px;
  padding: 0 1.15rem;
  border-radius: 4px;
  background: linear-gradient(135deg, #D4AF37 0%, #B8860B 60%, #996515 100%);
  color: #0F172A;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  line-height: 1;
  box-shadow: 0 3px 12px rgba(184, 134, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.btn-portal-access:hover {
  background: linear-gradient(135deg, #E5C158 0%, #C7981A 60%, #A87018 100%);
  color: #0B1120;
  box-shadow: 0 5px 16px rgba(184, 134, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.btn-portal-access .access-lock-icon {
  stroke: #0F172A;
  width: 13px;
  height: 13px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
}

/* ==================== HERO SECTION (SLIDE 1) ==================== */
.hero-section {
  position: relative;
  padding: 7.5rem 0 6.5rem;
  background-color: var(--bg-dark);
  color: var(--text-white);
  text-align: center;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(184, 134, 11, 0.18) 0%, rgba(18, 19, 22, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-container {
  max-width: 880px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--gold-border);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  margin-bottom: 2.25rem;
  text-transform: uppercase;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--gold-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-primary);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.9rem;
  font-weight: 400;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}

.hero-title-italic {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-primary);
}

.hero-lead {
  font-size: 1.15rem;
  color: #b0b5c0;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  font-weight: 300;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.hero-divider-line {
  width: 80px;
  height: 3px;
  background: var(--gold-primary);
  margin: 0 auto;
  border-radius: 2px;
}

/* ==================== BOTONES DE ALTA GAMA ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 2.1rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, #D4AF37 0%, #B8860B 55%, #996515 100%);
  color: #0F172A;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 18px rgba(184, 134, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #DFBE52 0%, #C59A27 55%, #B8860B 100%);
  box-shadow: 0 8px 28px rgba(184, 134, 11, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  color: #0F172A;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--gold-primary);
  background: rgba(184, 134, 11, 0.15);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* En secciones con fondo claro (papiro/blanco): */
.section-cta-bar {
  width: 100%;
  margin: 3.5rem auto 1.5rem;
  text-align: center;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  clear: both;
}

.section-cta-bar .btn {
  margin: 0 auto !important;
  box-shadow: 0 6px 22px rgba(184, 134, 11, 0.28);
}

.btn-block { width: 100%; }
.btn-arrow { transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ==================== VENTANA / MODAL DE SUSCRIPCIÓN & ADMISIÓN ==================== */
.admission-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.admission-modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.admission-modal-window {
  background: #FAF7F2;
  color: #18181B;
  border: 1px solid rgba(184, 134, 11, 0.35);
  border-radius: 8px;
  width: 100%;
  max-width: 980px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  padding: 3rem 2.8rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45), 0 0 40px rgba(184, 134, 11, 0.15);
  animation: modalScaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(24, 24, 27, 0.05);
  border: 1px solid rgba(24, 24, 27, 0.1);
  color: #18181B;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #18181B;
  color: #FAF7F2;
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.modal-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-primary);
  background: rgba(184, 134, 11, 0.1);
  border: 1px solid rgba(184, 134, 11, 0.25);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 500;
  color: #18181B;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.modal-subtitle {
  font-size: 0.92rem;
  color: #52525B;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Tarjetas de Selección en el Modal */
.modal-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 1100px) {
  .modal-tiers-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.modal-tier-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(24, 24, 27, 0.12);
  border-radius: 6px;
  padding: 1.8rem 1.4rem;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-tier-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.12);
}

.modal-tier-card.selected {
  border: 2px solid var(--gold-primary);
  background: #FFFDF9;
  box-shadow: 0 0 20px rgba(184, 134, 11, 0.2);
}

.modal-tier-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-primary);
  color: #0F172A;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
}

.m-tier-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #71717A;
  display: block;
  margin-bottom: 0.25rem;
}

.m-tier-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #18181B;
  line-height: 1.25;
  margin-bottom: 0.8rem;
  min-height: 44px;
}

.m-tier-price {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: #18181B;
  line-height: 1;
}

.m-tier-cur {
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--gold-primary);
}

.m-tier-period {
  font-size: 0.68rem;
  font-weight: 600;
  color: #71717A;
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
  margin-bottom: 1.1rem;
}

.m-tier-specs {
  list-style: none;
  font-size: 0.8rem;
  color: #52525B;
  border-top: 1px solid rgba(24, 24, 27, 0.08);
  padding-top: 0.9rem;
}

.m-tier-specs li {
  padding: 0.35rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.4;
}

.m-tier-specs li::before {
  content: '✦';
  color: var(--gold-primary);
  font-size: 0.68rem;
  margin-top: 2px;
}

/* Formulario dentro del modal */
.modal-intake-form {
  background: #FFFFFF;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 6px;
  padding: 2.2rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #18181B;
  letter-spacing: 0.02em;
}

.form-group input, .form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(24, 24, 27, 0.18);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  background: #FAF7F2;
  color: #18181B;
  transition: all 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.modal-actions-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.btn-modal-submit {
  width: 100%;
  max-width: 480px;
  padding: 1.05rem;
  font-size: 0.95rem;
}

.modal-security-note {
  font-size: 0.75rem;
  color: #71717A;
  text-align: center;
}

.modal-success-screen {
  text-align: center;
  padding: 3rem 1.5rem;
}

.modal-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10B981;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
}

@media (max-width: 860px) {
  .modal-tiers-grid {
    grid-template-columns: 1fr;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .admission-modal-window {
    padding: 2rem 1.5rem;
  }
}

/* ==================== SECCIONES GLOBALES ==================== */
section { padding: 5.5rem 0; }

.section-tag {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.85rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 3.5rem;
  line-height: 1.7;
}

.gold-text { color: var(--gold-primary); }
.teal-text { color: var(--teal-primary); }
.text-center { text-align: center; }

/* ==================== 01 • PREMISA ONTOLÓGICA (SLIDE 2) ==================== */
.premisa-section { background-color: var(--bg-parchment); }

.premisa-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
  align-items: center;
}

.quote-card {
  background: var(--bg-card);
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold-primary);
  position: relative;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 5.5rem;
  color: var(--gold-primary);
  opacity: 0.35;
  line-height: 1;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.quote-footer { display: flex; flex-direction: column; }
.quote-author { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--gold-primary); }
.quote-sub { font-size: 0.75rem; color: var(--text-muted); }

.premisa-content h3 { font-family: var(--font-serif); font-size: 1.75rem; margin-bottom: 1.25rem; }
.premisa-content p { color: var(--text-muted); margin-bottom: 1.2rem; font-size: 1rem; line-height: 1.75; }

.premisa-highlight {
  display: flex;
  gap: 1.2rem;
  background: var(--bg-card);
  padding: 1.35rem 1.6rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--teal-primary);
  margin-top: 1.5rem;
}

.highlight-icon-wrap { margin-top: 2px; }

/* ==================== 02 • ARQUITECTURA: 4 PILARES (SLIDE 3) ==================== */
.metodo-section { background-color: var(--bg-section-alt); }

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pilar-card {
  background: #ffffff;
  padding: 2.25rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(36, 75, 110, 0.1);
  box-shadow: 0 4px 16px rgba(36, 75, 110, 0.03);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pilar-card:hover {
  background: #ffffff;
  transform: translateY(-4px);
  border-color: rgba(184, 134, 11, 0.35);
  box-shadow: 0 10px 28px rgba(36, 75, 110, 0.08);
}

.pilar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
}

.gold-icon { border-color: var(--gold-border); }
.teal-icon { border-color: var(--teal-border); }

.pilar-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.pilar-sub {
  font-size: 0.78rem;
  color: var(--gold-primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  display: block;
}

.pilar-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.pilar-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-primary);
  border-top: 1px solid rgba(28, 61, 61, 0.15);
  padding-top: 0.85rem;
}

/* ==================== 03 • METODOLOGÍA: 3 FASES (SLIDE 4) ==================== */
.fases-section { background-color: var(--bg-parchment); }

.fases-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1rem;
}

.fase-step {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  flex: 1;
  border: 1px solid rgba(36, 75, 110, 0.1);
  box-shadow: 0 4px 16px rgba(36, 75, 110, 0.03);
  transition: var(--transition-smooth);
}

.fase-step:hover {
  transform: translateY(-3px);
  background: #ffffff;
  border-color: rgba(184, 134, 11, 0.35);
  box-shadow: 0 10px 28px rgba(36, 75, 110, 0.08);
}

.fase-label {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 0.6rem;
  line-height: 1;
}

.fase-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.fase-detail { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.fase-arrow { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ==================== 04 • CARTOGRAFÍA NATAL (SLIDE 5) ==================== */
.cartografia-section { background-color: var(--bg-section-alt); }

.cartografia-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
  align-items: center;
}

.diagram-canvas-card {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(36, 75, 110, 0.12);
  box-shadow: 0 10px 30px rgba(36, 75, 110, 0.05);
}

.astrolabe-svg { display: block; border-radius: var(--radius-sm); }

.cartografia-lead { font-size: 1.25rem; color: var(--teal-primary); margin-bottom: 2rem; line-height: 1.5; }

.eje-item { display: flex; gap: 1.25rem; margin-bottom: 1.5rem; align-items: flex-start; }

.eje-badge {
  background: #ffffff;
  border: 1px solid var(--teal-border);
  color: var(--teal-primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.gold-badge { border-color: var(--gold-border); color: var(--gold-primary); background: var(--gold-light); }

.eje-info h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--text-dark); }
.eje-info p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

.highlight-eje {
  background: #ffffff;
  padding: 1.35rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(184, 134, 11, 0.22);
  border-left: 3.5px solid var(--gold-primary);
  box-shadow: 0 4px 18px rgba(36, 75, 110, 0.04);
}

/* ==================== 05 • BÓVEDA SGB (ESPACIO ESOTÉRICO SOSTENIDO) ==================== */
.sgb-section { background-color: var(--bg-parchment); }

.sgb-manifesto-card {
  background: #ffffff;
  border: 1px solid rgba(184, 134, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 2.75rem 3rem;
  margin-bottom: 2.75rem;
  box-shadow: 0 6px 24px rgba(184, 134, 11, 0.08);
  position: relative;
  overflow: hidden;
}

.sgb-manifesto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #D4AF37 0%, #B8860B 100%);
}

.sgb-manifesto-quote {
  position: relative;
}

.manifesto-mark {
  color: var(--gold-primary);
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.85rem;
}

.manifesto-text {
  font-family: var(--font-serif);
  font-size: 1.38rem;
  line-height: 1.75;
  color: var(--text-dark);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.manifesto-text strong {
  font-style: normal;
  color: var(--gold-primary);
  font-weight: 600;
}

.manifesto-author {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--teal-primary);
  text-transform: uppercase;
}

.sgb-tridente-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.sgb-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.sgb-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: rgba(184, 134, 11, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.sgb-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.gold-wrap {
  background: rgba(184, 134, 11, 0.12);
  border: 1px solid rgba(184, 134, 11, 0.35);
}

.teal-wrap {
  background: rgba(28, 61, 61, 0.12);
  border: 1px solid rgba(28, 61, 61, 0.3);
}

.sgb-card-num {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold-primary);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.sgb-card-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.sgb-card-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.sgb-card-sub {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-primary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
}

.sgb-footer-banner {
  background: var(--teal-primary);
  color: #ffffff;
  padding: 1.35rem 2rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  text-align: center;
}

.banner-star { color: var(--gold-primary); font-size: 1.25rem; }

@media (max-width: 900px) {
  .sgb-tridente-grid {
    grid-template-columns: 1fr;
  }
  .sgb-manifesto-card {
    padding: 2rem 1.5rem;
  }
  .manifesto-text {
    font-size: 1.2rem;
  }
}

/* ==================== 06 • INTERFAZ DEL CLIENTE: 4 MÓDULOS (SLIDE 8) ==================== */
.interfaz-section { background-color: var(--bg-section-alt); }

.modulos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.modulo-card {
  background: #ffffff;
  padding: 2.35rem 2.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(36, 75, 110, 0.1);
  box-shadow: 0 4px 20px rgba(36, 75, 110, 0.03);
  transition: var(--transition-smooth);
}

.modulo-card:hover {
  background: #ffffff;
  transform: translateY(-3px);
  border-color: rgba(184, 134, 11, 0.4);
  box-shadow: 0 12px 32px rgba(36, 75, 110, 0.08);
}

.mod-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.mod-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--teal-border);
}

.mod-number {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold-primary);
  font-weight: 600;
}

.modulo-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-dark); }
.modulo-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }

/* ==================== 07 • PROTOCOLO DE CALIBRACIÓN EN VIVO (SLIDE 10) ==================== */
.sos-protocol-section { background-color: var(--bg-parchment); }

.sos-protocol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.sos-card {
  background: var(--bg-card);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.user-action-card { border-top: 4px solid var(--teal-primary); }
.system-response-card { border-top: 4px solid var(--gold-primary); }

.sos-pill-badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

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

.sos-card h3 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  margin-bottom: 1.75rem;
  color: var(--text-dark);
}

.sos-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.sos-steps-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-left: 2px solid var(--border-subtle);
  padding-left: 1rem;
}

.sos-steps-list li strong {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.sos-steps-list li span {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==================== 08 • TABLERO DE EVOLUCIÓN (SLIDE 11) ==================== */
.ejes-section { background-color: var(--bg-section-alt); }

.ejes-dashboard-card {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 900px;
  margin: 0 auto;
}

.eje-bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.eje-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}

.eje-bar-name { font-weight: 600; color: var(--text-dark); }
.eje-bar-val { font-weight: 700; color: var(--gold-primary); }

.bar-track {
  width: 100%;
  height: 8px;
  background: #ffffff;
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-primary) 0%, var(--gold-primary) 100%);
  border-radius: 50px;
  transition: width 1s ease-in-out;
}

/* ==================== 08 • NIVELES DE ACCESO / PLANES (SLIDE 12) ==================== */
.precios-section { background-color: var(--bg-parchment); }

.planes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
  margin-top: 1rem;
}

.plan-card {
  background: var(--bg-card);
  padding: 3rem 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.plan-featured {
  background: #ffffff;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 10px 30px rgba(184, 134, 11, 0.15);
}

.featured-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-primary);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
}

.plan-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-primary);
  margin-bottom: 0.85rem;
}

.plan-name {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.plan-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.plan-type {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal-primary);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.88rem;
  color: var(--text-dark);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.plan-features li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold-primary);
  font-size: 0.75rem;
  top: 2px;
}

/* ==================== BRÚJULA & POSTULACIÓN ==================== */
.brujula-section { background-color: var(--bg-parchment); }

.brujula-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gold-border);
  max-width: 820px;
  margin: 0 auto;
}

.quiz-container { margin-top: 2rem; }
.quiz-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.quiz-progress { height: 100%; background: var(--gold-primary); transition: width 0.3s ease; }
.question-number { font-size: 0.78rem; font-weight: 700; color: var(--gold-primary); text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 0.5rem; }
.question-text { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 500; line-height: 1.3; margin-bottom: 1.75rem; }

.options-grid { display: flex; flex-direction: column; gap: 0.9rem; }
.option-btn {
  background: var(--bg-parchment);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.option-btn:hover {
  background: #ffffff;
  border-color: var(--gold-primary);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.quiz-result-box { animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.result-badge {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-primary);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.result-title { font-family: var(--font-serif); font-size: 2rem; line-height: 1.25; margin-bottom: 1rem; color: var(--text-dark); }
.result-analysis { font-size: 1.05rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1.5rem; }

.result-recommendation {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-primary);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.result-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ==================== POSTULACIÓN CONCIERGE ==================== */
.postulacion-section { background-color: var(--bg-parchment); }

.postulacion-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.postulacion-intro p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; }
.concierge-features { display: flex; flex-direction: column; gap: 1.5rem; }
.c-feature { display: flex; gap: 1.1rem; }

.c-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.c-feature strong { display: block; font-size: 0.95rem; color: var(--text-dark); margin-bottom: 0.2rem; }
.c-feature span { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.postulacion-form-card {
  background: #ffffff;
  padding: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-border);
  box-shadow: var(--shadow-card);
}

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-dark); }

.form-group input, .form-group select, .form-group textarea {
  font-family: var(--font-sans);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-parchment);
  font-size: 0.92rem;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.form-privacy-note { font-size: 0.78rem; color: var(--text-light); text-align: center; margin-top: 0.75rem; line-height: 1.4; }
.form-success-box { text-align: center; padding: 2rem 1rem; }
.success-icon { font-size: 2.5rem; color: var(--gold-primary); margin-bottom: 1rem; }
.form-success-box h3 { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 0.75rem; }
.form-success-box p { color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.success-prayer {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-primary);
  font-size: 1.15rem;
  padding: 1.25rem;
  background: var(--gold-light);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

/* ==================== BANNER FINAL (SLIDE 13) ==================== */
.banner-cierre-section {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 6.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cierre-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.cierre-sub {
  font-size: 1.35rem;
  color: var(--gold-primary);
  font-weight: 300;
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
}

.cierre-logo-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cierre-symbol {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: #ffffff;
  font-weight: 600;
}

.cierre-subtext {
  font-size: 0.75rem;
  color: var(--gold-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ==================== FOOTER ==================== */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 4.5rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.5fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.footer-tagline { font-size: 0.88rem; color: #a0a5b2; line-height: 1.7; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-primary); margin-bottom: 1.25rem; }

.links-col { display: flex; flex-direction: column; gap: 0.65rem; }
.links-col a { color: #a0a5b2; text-decoration: none; font-size: 0.88rem; transition: var(--transition-smooth); }
.links-col a:hover { color: #ffffff; padding-left: 4px; }

.portal-col p { font-size: 0.88rem; color: #a0a5b2; margin-bottom: 1rem; line-height: 1.5; }

.btn-footer-portal {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: var(--bg-dark-card);
  border: 1px solid var(--gold-border);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.btn-footer-portal:hover {
  background: var(--teal-primary);
  border-color: var(--gold-primary);
}

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 2rem; }
.footer-bottom-content { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: #6b7280; }

/* ==================== SISTEMA DE ICONOGRAFÍA & GLIFOS CANÓNICOS (1.2px) ==================== */
.glifo-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid rgba(36, 75, 110, 0.15);
  box-shadow: 0 4px 14px rgba(36, 75, 110, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition-smooth);
  position: relative;
  flex-shrink: 0;
}

.glifo-box.glifo-gold {
  border-color: rgba(184, 134, 11, 0.25);
  background: #ffffff;
}

.glifo-box.glifo-sm {
  width: 42px;
  height: 42px;
  margin-bottom: 0;
  border-radius: var(--radius-sm);
}

.glifo-box:hover {
  transform: translateY(-2px);
  border-color: var(--teal-primary);
  box-shadow: 0 6px 20px rgba(36, 75, 110, 0.12);
}

.glifo-box.glifo-gold:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.18);
}

.glifo-svg {
  display: block;
  transition: var(--transition-smooth);
}

.glifo-box:hover .glifo-svg {
  transform: scale(1.06);
}

.node-witness {
  transform-origin: center;
  transition: var(--transition-smooth);
}

.glifo-box:hover .node-witness {
  filter: drop-shadow(0 0 5px rgba(184, 134, 11, 0.75));
}

/* Micro-tarjetas de Factores de Fricción en Premisa */
.premisa-factors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.75rem 0 1.5rem 0;
}

.premisa-factor-card {
  background: #ffffff;
  border: 1px solid rgba(36, 75, 110, 0.12);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.premisa-factor-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(36, 75, 110, 0.05);
}

.factor-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.factor-glifo-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-light);
  border: 1px solid rgba(36, 75, 110, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.factor-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.factor-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.etymology-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(184, 134, 11, 0.3);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-primary);
  margin-top: 1rem;
  box-shadow: 0 2px 8px rgba(36, 75, 110, 0.04);
}

.etymology-badge strong {
  color: var(--gold-primary);
}

/* Fases con Glifo Integrado */
.fase-glifo-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(36, 75, 110, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(36, 75, 110, 0.04);
  transition: var(--transition-smooth);
}

.fase-step:hover .fase-glifo-box {
  border-color: var(--gold-primary);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.2);
  transform: scale(1.08);
}

/* Ejes de Cartografía con Glifos Integrados */
.eje-item {
  display: flex;
  gap: 1.15rem;
  margin-bottom: 1.15rem;
  align-items: flex-start;
  background: #ffffff;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(36, 75, 110, 0.1);
  box-shadow: 0 3px 12px rgba(36, 75, 110, 0.02);
  transition: var(--transition-smooth);
}

.eje-item:hover {
  transform: translateX(4px);
  border-color: rgba(184, 134, 11, 0.35);
  box-shadow: 0 6px 20px rgba(36, 75, 110, 0.06);
}

.eje-glifo-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--teal-light);
  border: 1px solid rgba(36, 75, 110, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.eje-item:hover .eje-glifo-wrap {
  background: #ffffff;
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(184, 134, 11, 0.25);
}

.eje-header-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

/* Cabina Flight Deck Telemetría (Slide 9 & 10) */
.telemetry-cockpit-bar {
  background: #121316;
  border: 1px solid rgba(184, 134, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.cockpit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cockpit-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cockpit-status {
  font-size: 0.72rem;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot-pulse {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.cockpit-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cockpit-metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: var(--transition-smooth);
}

.cockpit-metric-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(184, 134, 11, 0.4);
}

.metric-val-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-val {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: #ffffff;
  font-weight: 600;
  line-height: 1;
}

.metric-val.gold-val {
  color: var(--gold-primary);
}

.metric-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e5e7eb;
}

.metric-sub {
  font-size: 0.72rem;
  color: #9ca3af;
  line-height: 1.4;
}

/* Pasos SOS con Glifo Integrado */
.sos-step-item {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(36, 75, 110, 0.08);
}

.sos-step-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sos-step-glifo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-light);
  border: 1px solid rgba(36, 75, 110, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sos-step-glifo.gold-step {
  background: var(--gold-light);
  border-color: var(--gold-border);
}

.sos-step-content strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.sos-step-content span {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Plan Glifo Header */
.plan-glifo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.plan-glifo-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid rgba(36, 75, 110, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(36, 75, 110, 0.05);
  transition: var(--transition-smooth);
}

.plan-card:hover .plan-glifo-icon {
  border-color: var(--gold-primary);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.2);
  transform: scale(1.06);
}

.plan-price-tag {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.plan-price-period {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
}

.plan-feature-glifo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .pilares-grid, .sgb-metrics-grid, .planes-grid { grid-template-columns: repeat(2, 1fr); }
  .cockpit-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .fases-track { flex-direction: column; }
  .fase-arrow { transform: rotate(90deg); margin: 0.5rem 0; }
  .cartografia-grid, .sos-protocol-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .hero-title { font-size: 2.5rem; }
  .hero-lead { font-size: 1rem; }
  .premisa-grid, .modulos-grid, .postulacion-grid, .planes-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pilares-grid, .sgb-metrics-grid { grid-template-columns: 1fr; }
  .cockpit-metrics-grid { grid-template-columns: 1fr; }
  .premisa-factors-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .brujula-card, .postulacion-form-card, .ejes-dashboard-card { padding: 2rem 1.5rem; }
  .footer-container { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom-content { flex-direction: column; gap: 0.5rem; text-align: center; }
  .cierre-title { font-size: 2.2rem; }
}


/* ==========================================================================
   SISTEMA MÓVIL AVANZADO: RECONOCIMIENTO TÁCTIL, GESTIÓN DE ROTACIÓN & GAVETA
   ========================================================================== */

/* Botón Hamburguesa Moderno con Transformación a 'X' 1.2px */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid rgba(36, 75, 110, 0.16);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(36, 75, 110, 0.05);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  z-index: 1002;
  flex-shrink: 0;
}

.mobile-toggle .bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--teal-primary, #244B6E);
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.2s ease;
  transform-origin: center;
}

.mobile-toggle:hover, .mobile-toggle:focus-visible {
  border-color: var(--gold-primary);
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(184, 134, 11, 0.2);
}

.mobile-toggle.is-active {
  background: #ffffff;
  border-color: var(--gold-primary);
}

.mobile-toggle.is-active .bar-1 {
  transform: translateY(6.5px) rotate(45deg);
  background: var(--gold-primary);
}

.mobile-toggle.is-active .bar-2 {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.is-active .bar-3 {
  transform: translateY(-6.5px) rotate(-45deg);
  background: var(--gold-primary);
}

/* Telón de fondo (Backdrop) para Navegación Móvil */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 19, 22, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.nav-backdrop.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Bloqueo de Scroll al Abrir Gaveta */
body.nav-locked {
  overflow: hidden;
  touch-action: none;
}

/* Toast Elegante de Calibración al Rotar la Pantalla */
.orientation-toast {
  position: fixed;
  bottom: max(24px, calc(var(--sab) + 16px));
  left: 50%;
  transform: translateX(-50%) translateY(24px) scale(0.96);
  background: rgba(18, 19, 22, 0.95);
  color: #FAF7F2;
  border: 1px solid var(--gold-border);
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 25000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 18px rgba(184, 134, 11, 0.2);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
  white-space: nowrap;
}

.orientation-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.toast-glifo {
  animation: spinSlow 8s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   ADAPTACIÓN RESPONSIVA GENERAL (TABLETS & TELÉFONOS EN VERTICAL: <= 900px)
   ========================================================================== */
@media (max-width: 900px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    height: var(--header-height);
  }

  .header-container {
    height: var(--header-height);
    padding: 0 max(1.25rem, var(--sal));
  }

  .brand-name {
    font-size: 1.2rem;
  }

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

  .header-actions {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    gap: 0.65rem;
  }

  .btn-portal-access {
    height: 34px;
    padding: 0 0.85rem;
    font-size: 0.72rem;
  }

  .btn-portal-access .access-text {
    display: none; /* Icono en teléfonos para ahorrar espacio */
  }

  .btn-portal-access::after {
    content: 'Portal';
    margin-left: 4px;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Gaveta Desplegable de Navegación */
  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: auto;
    height: calc(100dvh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.5rem 1.5rem calc(2rem + var(--sab));
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px rgba(36, 75, 110, 0.12);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
    gap: 0;
  }

  .main-nav.is-active {
    display: flex;
    animation: drawerSlideDown 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

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

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(36, 75, 110, 0.08);
    border-radius: var(--radius-sm);
  }

  .nav-link:hover, .nav-link:active {
    background: rgba(36, 75, 110, 0.05);
    color: var(--teal-primary);
  }

  .nav-link::after {
    display: none;
  }

  .nav-highlight {
    color: var(--gold-primary) !important;
    background: var(--gold-light);
    margin-top: 0.5rem;
    border-bottom: none;
  }

  /* Secciones y Grillas en Móvil */
  section {
    padding: 4rem 0;
  }

  .hero-section {
    padding: 4.5rem 0 3.5rem;
  }

  .hero-title {
    font-size: 2.35rem;
    line-height: 1.15;
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .pilares-grid, .sgb-metrics-grid, .planes-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .premisa-factors-grid {
    grid-template-columns: 1fr;
  }

  .cockpit-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .cartografia-grid, .sos-protocol-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .fases-track {
    flex-direction: column;
    gap: 1rem;
  }

  .fase-arrow {
    transform: rotate(90deg);
    margin: 0.5rem 0;
  }

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

  .admission-modal-window {
    padding: 2rem 1.25rem;
    max-height: 90dvh;
    border-radius: var(--radius-md);
  }

  .modal-tiers-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ROTACIÓN HORIZONTAL: TELÉFONOS EN MODO LANDSCAPE (ALTURA CORTA <= 520px)
   ========================================================================== */
@media (max-height: 520px) and (orientation: landscape) {
  :root {
    --header-height: 52px;
  }

  .site-header {
    height: var(--header-height);
  }

  .header-container {
    height: var(--header-height);
    padding: 0 max(1.25rem, var(--sal));
  }

  .brand-logo svg {
    width: 28px;
    height: 28px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-sub {
    font-size: 0.52rem;
  }

  .hero-section {
    padding: 2.5rem 0 2rem;
  }

  .hero-badge {
    margin-bottom: 1rem;
    padding: 0.25rem 0.85rem;
    font-size: 0.7rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6vh, 2.3rem);
    margin-bottom: 0.75rem;
  }

  .hero-lead {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
  }

  .hero-stats-strip {
    grid-template-columns: repeat(4, 1fr);
    padding: 0.85rem;
    margin-top: 1.5rem;
  }

  .stat-item .stat-num {
    font-size: 1.4rem;
  }

  .stat-item .stat-label {
    font-size: 0.65rem;
  }

  section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2.1rem;
  }

  /* Premisa 3 factores en Landscape se distribuyen horizontalmente */
  .premisa-factors-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .premisa-factor-card {
    padding: 0.85rem;
  }

  /* Cockpit Bar en Landscape se ve como consola de cabina continua */
  .telemetry-cockpit-bar {
    padding: 1rem 1.25rem;
  }

  .cockpit-metrics-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }

  .cockpit-metric-card {
    padding: 0.65rem 0.75rem;
  }

  .metric-val {
    font-size: 1.05rem;
  }

  /* Fases en Landscape se leen de izquierda a derecha sin desbordar */
  .fases-track {
    flex-direction: row;
    gap: 0.75rem;
  }

  .fase-arrow {
    transform: none;
    margin: 0;
  }

  /* Modal de Admisión en Landscape se adapta verticalmente sin atascarse */
  .admission-modal-backdrop {
    padding: 0.75rem max(1rem, var(--sal));
  }

  .admission-modal-window {
    max-height: 92dvh;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-sm);
  }

  .modal-header {
    margin-bottom: 1rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .modal-tiers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .modal-tier-card {
    padding: 1rem 0.85rem;
  }

  .m-tier-title {
    font-size: 0.95rem;
  }

  .m-tier-price {
    font-size: 1.2rem;
  }

  .m-tier-specs {
    display: none; /* En horizontal compacto, se resume la lista para que el formulario quede inmediatamente accesible */
  }

  .modal-intake-form {
    margin-top: 1rem;
  }

  .form-row-2 {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .form-group input, .form-group textarea {
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
  }

  /* Gaveta Móvil en Landscape */
  .main-nav.is-active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 1rem max(1.5rem, var(--sal)) calc(1.5rem + var(--sab));
  }

  .nav-link {
    min-height: 42px;
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    border-bottom: none;
    border: 1px solid rgba(36, 75, 110, 0.1);
  }
}
