/* ==========================================================================
   DUGUI SPACE — Sistema de Diseño Oficial «Dugui Cyber-Creator»
   Chasis Técnico CSP Nivel 3 Estricta · Fuentes Variables .woff2 100% Locales
   Cero CDNs · Cero Inline Scripts/Styles · Dark Glassmorphism & Bento Grids
   ========================================================================== */

/* 1. Tipografías Variables Locales (.woff2) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Design Tokens Oficiales «Dugui Cyber-Creator» */
:root {
  --bg-deep: #0B0D14;
  --surface-glass: rgba(18, 22, 36, 0.78);
  --surface-elevated: #181D2E;
  --accent-cyan: #00E5FF;
  --accent-purple: #A855F7;
  --accent-magenta: #D946EF;
  --ring-gradient: linear-gradient(135deg, #00E5FF 0%, #3B82F6 50%, #A855F7 100%);
  --text-primary: #F3F6FC;
  --text-muted: #8E98B0;
  --status-consolidated: #10B981;
  --status-wip: #F59E0B;
  --ease-cyber: cubic-bezier(0.16, 1, 0.3, 1);

  /* Tokens complementarios del sistema */
  --status-danger: #EF4444;
  --border-glass: rgba(243, 246, 252, 0.09);
  --border-glow-cyan: rgba(0, 229, 255, 0.36);
  --glow-cyan: 0 0 28px rgba(0, 229, 255, 0.18);
  --glow-purple: 0 0 28px rgba(168, 85, 247, 0.22);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 15% 15%, rgba(0, 229, 255, 0.09), transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(168, 85, 247, 0.11), transparent 45%);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

code, pre, .font-mono {
  font-family: var(--font-mono);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s var(--ease-cyber), opacity 0.2s var(--ease-cyber);
}

a:hover {
  color: var(--accent-magenta);
}

.is-hidden {
  display: none !important;
}

.bento-glass {
  background: var(--surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: 0 24px 56px -16px rgba(0, 0, 0, 0.65), var(--glow-cyan);
}

.cyber-avatar-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 9999px;
  background: var(--ring-gradient);
  box-shadow: var(--glow-cyan), var(--glow-purple);
}

.cyber-avatar-core {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: var(--bg-deep);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--accent-cyan);
}

/* ==========================================================================
   Fase 3 — Accesibilidad WCAG AA y Mobile (≤390px)
   ========================================================================== */

/* Indicador de foco visible unificado: se muestra solo al navegar con
   teclado (Tab/Shift+Tab) y al emitir datos de wcag */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Clase de utilidad estándar para texto oculto visualmente (WCAG) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Respeto del movimiento reducido declarado por el sistema operativo */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .status-dot-emerald {
    animation: none;
  }
}

/* ==========================================================================
   DUGUI CAMPUS — Portada Académica, Ficha de Programa & Verificador QR
   Sistema «Dugui Cyber-Creator» · CSP Nivel 3 Estricta · Cero CDNs / Inline
   ========================================================================== */

body {
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

/* ==========================================================================
   1. NAVBAR DESPEJADA EN UNA SOLA FILA (> 1100px) + MENÚ MÓVIL ACCESIBLE
   ========================================================================== */
.campus-header {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  background: rgba(11, 13, 20, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.42);
}

.campus-header-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

.campus-brand-cluster {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.campus-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.campus-brand-link:hover {
  color: var(--accent-cyan);
}

.campus-brand-glyph {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-glow-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  flex-shrink: 0;
}

.campus-brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: nowrap;
}

.campus-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.campus-nav-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.42rem 0.72rem;
  border-radius: 9px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.18s var(--ease-cyber), background 0.18s var(--ease-cyber);
}

.campus-nav-link:hover,
.campus-nav-link.is-current {
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.09);
}

.campus-header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.campus-session-menu {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.campus-session-link {
  padding: 0.42rem 0.68rem;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(24, 29, 46, 0.78);
  border: 1px solid var(--border-glass);
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.18s var(--ease-cyber), color 0.18s var(--ease-cyber);
}

.campus-session-link:hover {
  border-color: var(--border-glow-cyan);
  color: var(--accent-cyan);
}

.campus-session-profile {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.28);
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.campus-session-profile:hover {
  background: rgba(0, 229, 255, 0.18);
}

.campus-session-link-logout {
  color: var(--text-muted);
}

.btn-joincode-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.46rem 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-cyber), color 0.2s var(--ease-cyber), transform 0.2s var(--ease-cyber);
}

.btn-joincode-pill:hover {
  border-color: var(--border-glow-cyan);
  color: var(--accent-cyan);
  transform: translateY(-1px);
}

.mobile-nav-menu {
  display: none;
}

/* Botones reutilizables */
.pulse-dot-emerald {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--status-consolidated);
  box-shadow: 0 0 10px var(--status-consolidated);
  flex-shrink: 0;
}

.pulse-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--status-danger);
  box-shadow: 0 0 10px var(--status-danger);
  flex-shrink: 0;
}

.btn-primary-cyan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 1.2rem;
  border-radius: 11px;
  border: none;
  background: var(--accent-cyan);
  color: #03191e;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.3);
  transition: transform 0.2s var(--ease-cyber), box-shadow 0.2s var(--ease-cyber);
}

.btn-primary-cyan:hover {
  color: #03191e;
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.52);
}

.btn-secondary-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 1.15rem;
  border-radius: 11px;
  border: 1px solid var(--border-glass);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-cyber), color 0.2s var(--ease-cyber);
}

.btn-secondary-glass:hover {
  border-color: var(--border-glow-cyan);
  color: var(--accent-cyan);
}

.btn-purple-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 1.15rem;
  border-radius: 11px;
  border: 1px solid rgba(168, 85, 247, 0.48);
  background: rgba(168, 85, 247, 0.14);
  color: #e9d5ff;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease-cyber), color 0.2s var(--ease-cyber);
}

.btn-purple-outline:hover {
  background: var(--accent-purple);
  color: #0b0d14;
}

.btn-compact {
  padding: 0.46rem 0.92rem;
  font-size: 0.82rem;
  border-radius: 999px;
}

.btn-sm {
  padding: 0.52rem 0.92rem;
  font-size: 0.82rem;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
  white-space: normal;
  text-align: center;
}

/* Barra de progreso semántica (<progress>) */
.cyber-progress {
  width: 100%;
  height: 8px;
  border: none;
  border-radius: 9999px;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(243, 246, 252, 0.12);
  display: block;
}

.cyber-progress::-webkit-progress-bar {
  background-color: rgba(243, 246, 252, 0.12);
  border-radius: 9999px;
}

.cyber-progress-cyan::-webkit-progress-value {
  background: linear-gradient(90deg, #00e5ff 0%, #a855f7 100%);
  border-radius: 9999px;
}

.cyber-progress-cyan::-moz-progress-bar {
  background: linear-gradient(90deg, #00e5ff 0%, #a855f7 100%);
  border-radius: 9999px;
}

/* ==========================================================================
   2. SECCIONES Y HERO DE 2 COLUMNAS (TARJETA EJECUTIVA ACADÉMICA)
   ========================================================================== */
.campus-section {
  width: 100%;
  padding: 4rem 1.5rem;
}

.hero-section {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.campus-section-alt {
  background: rgba(12, 14, 21, 0.72);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.9rem;
  border-radius: 9999px;
  background: rgba(24, 29, 46, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6ee7b7;
  width: fit-content;
}

.hero-title {
  font-size: clamp(2rem, 3.7vw, 3.1rem);
  line-height: 1.14;
  margin-top: 1rem;
  color: var(--text-primary);
}

.hero-gradient-span {
  background: var(--ring-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin-top: 1.05rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 610px;
}

.hero-cta-row {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-trust-strip {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.hero-trust-item strong {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* Tarjeta Ejecutiva de Vista Previa Académica (cero elementos superpuestos) */
.academic-preview-card {
  border-radius: 22px;
  background: rgba(18, 22, 36, 0.92);
  border: 1px solid rgba(0, 229, 255, 0.28);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.58), var(--glow-cyan);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.academic-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-glass);
}

.academic-preview-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.rubric-score-pill,
.rubric-floating-score {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.68rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.38);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #6ee7b7;
}

.academic-preview-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.academic-preview-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--text-primary);
}

.academic-preview-sub {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.academic-preview-units {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.academic-unit-row {
  padding: 0.75rem 0.9rem;
  border-radius: 13px;
  background: rgba(11, 13, 20, 0.68);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.academic-unit-num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.academic-unit-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.academic-unit-info strong {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
}

.academic-unit-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.academic-preview-progress-box {
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: rgba(24, 29, 46, 0.72);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.academic-preview-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.academic-preview-footer {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ide-mentor-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ide-mentor-avatar {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  object-fit: cover;
  border: 1.5px solid var(--accent-cyan);
  flex-shrink: 0;
}

/* ==========================================================================
   3. CABECERAS DE SECCIÓN, TOOLBAR DE CATÁLOGO Y TARJETAS DE PROGRAMAS
   ========================================================================== */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-cyan);
}

.section-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.85rem;
}

.section-title {
  font-size: clamp(1.6rem, 2.7vw, 2.25rem);
  margin-top: 0.3rem;
}

.section-lead {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 500px;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.roadmap-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-glass);
}

.roadmap-tab {
  padding: 0.48rem 0.88rem;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease-cyber), color 0.2s var(--ease-cyber);
}

.roadmap-tab:hover {
  color: var(--text-primary);
}

.roadmap-tab.is-active {
  background: var(--accent-cyan);
  color: #03191e;
  font-weight: 700;
}

.catalog-search-wrap {
  flex: 1 1 280px;
  max-width: 390px;
}

.catalog-search-input {
  width: 100%;
  padding: 0.64rem 0.95rem;
  border-radius: 11px;
  border: 1px solid var(--border-glass);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  transition: border-color 0.2s var(--ease-cyber), box-shadow 0.2s var(--ease-cyber);
}

.catalog-search-input::placeholder {
  color: var(--text-muted);
}

.catalog-search-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14);
}

.catalog-empty-state {
  padding: 2rem;
  border-radius: 16px;
  background: var(--surface-glass);
  border: 1px dashed var(--border-glass);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.zero-catalog-card {
  padding: 2.25rem;
  border-radius: 22px;
  background: var(--surface-glass);
  border: 1px dashed rgba(0, 229, 255, 0.36);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.learning-paths-grid,
.featured-live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.35rem;
}

.learning-path-card,
.featured-live-card {
  padding: 1.6rem;
  border-radius: 20px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  min-width: 0;
  transition: border-color 0.24s var(--ease-cyber), transform 0.24s var(--ease-cyber);
}

.learning-path-card:hover,
.featured-live-card:hover {
  border-color: var(--border-glow-cyan);
  transform: translateY(-2px);
}

.learning-path-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.35rem;
}

.learning-path-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  background: rgba(11, 13, 20, 0.72);
  border: 1px solid rgba(0, 229, 255, 0.28);
  color: var(--text-primary);
  font-size: 0.78rem;
  text-decoration: none;
  transition: border-color 0.18s var(--ease-cyber), color 0.18s var(--ease-cyber);
}

.learning-path-step-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.course-card {
  padding: 1.6rem;
  border-radius: 20px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  min-width: 0;
  transition: border-color 0.24s var(--ease-cyber), transform 0.24s var(--ease-cyber);
}

.course-card:hover {
  border-color: var(--border-glow-cyan);
  transform: translateY(-2px);
}

.course-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.course-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.course-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.68rem;
  border-radius: 9999px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.course-card-heading {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.32;
}

.course-title-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.18s var(--ease-cyber);
}

.course-title-link:hover {
  color: var(--accent-cyan);
}

.course-card-code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.course-card-summary {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.course-metrics-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(11, 13, 20, 0.65);
  border: 1px solid var(--border-glass);
}

.metric-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.cyber-chip {
  padding: 0.22rem 0.56rem;
  border-radius: 6px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-glass);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.cyber-chip-cyan {
  color: var(--accent-cyan);
  border-color: rgba(0, 229, 255, 0.3);
}

.cyber-chip-green {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.12);
}

.cyber-chip-purple {
  color: #e9d5ff;
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.12);
}

.course-card-footer {
  padding-top: 0.95rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.course-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.course-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.course-price-sub {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================================================
   4. MODALIDADES, INCUBADORA, 3 VÍAS REALES DE ACCESO Y FAQ
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.pillar-card {
  padding: 1.65rem;
  border-radius: 20px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  transition: transform 0.24s var(--ease-cyber), border-color 0.24s var(--ease-cyber);
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow-cyan);
}

.pillar-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-glass);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.modality-card-title {
  margin: 0.35rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modality-card-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--text-muted);
}

/* Incubadora */
.incubator-banner {
  padding: 2.4rem;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(24, 29, 46, 0.95) 0%,
    rgba(18, 22, 36, 0.92) 60%,
    rgba(44, 18, 68, 0.55) 100%
  );
  border: 1px solid var(--border-glow-cyan);
  box-shadow: var(--glow-cyan), var(--glow-purple);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.incubator-content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.incubator-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.4rem;
}

/* 3 Vías Reales de Acceso */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  padding: 1.8rem;
  border-radius: 22px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  min-width: 0;
}

.pricing-card-featured {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 36px rgba(0, 229, 255, 0.16);
}

.pricing-card-thesis {
  border-color: rgba(168, 85, 247, 0.42);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.14);
}

.pricing-ribbon {
  align-self: flex-start;
  display: inline-block;
  margin-bottom: -0.5rem;
  padding: 0.24rem 0.78rem;
  border-radius: 9999px;
  background: var(--accent-cyan);
  color: #03191e;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-amount-box {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(11, 13, 20, 0.7);
  border: 1px solid var(--border-glass);
  margin: 0.95rem 0;
}

.pricing-amount-big {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.check-cyan {
  color: var(--accent-cyan);
  font-weight: 700;
}

.check-purple {
  color: var(--accent-purple);
  font-weight: 700;
}

.payment-methods-strip {
  margin-top: 1.75rem;
  padding: 1.15rem 1.4rem;
  border-radius: 18px;
  background: rgba(18, 22, 36, 0.84);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.payment-badge {
  padding: 0.42rem 0.78rem;
  border-radius: 10px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-glass);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-primary);
}

/* FAQ */
.faq-wrapper {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-radius: 14px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  overflow: hidden;
}

.faq-toggle {
  width: 100%;
  padding: 1.15rem 1.35rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.faq-toggle:hover {
  color: var(--accent-cyan);
}

.faq-chevron {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  transition: transform 0.2s var(--ease-cyber);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 1.35rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ==========================================================================
   5. FICHA INDIVIDUAL DE PROGRAMA (GET /programa/:slug)
   ========================================================================== */
.program-shell {
  flex: 1;
  padding: 2.25rem 1.5rem 4rem;
}

.program-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.program-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.program-breadcrumb a:hover {
  color: var(--accent-cyan);
}

.program-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 2rem;
  align-items: start;
}

.program-main-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

.program-hero-header {
  padding: 1.85rem;
  border-radius: 22px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.program-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.program-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  line-height: 1.2;
  color: var(--text-primary);
}

.program-subtitle {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
}

.program-summary {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.68;
  color: #d4dcf0;
}

.program-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.program-metric-cell {
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: rgba(11, 13, 20, 0.68);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.program-tags-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.4rem;
}

.program-syllabus-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.program-syllabus-block {
  padding: 1.35rem 1.5rem;
  border-radius: 18px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.program-syllabus-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.program-syllabus-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 240px;
}

.program-unit-index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
}

.program-syllabus-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-primary);
}

.program-syllabus-summary {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.program-lesson-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.program-lesson-row {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(11, 13, 20, 0.6);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.program-lesson-title {
  font-size: 0.88rem;
  color: var(--text-primary);
}

.program-lesson-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.program-highlights-list {
  margin: 0.2rem 0 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.program-methodology-card {
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(24, 29, 46, 0.72);
  border: 1px solid var(--border-glass);
}

.program-methodology-title {
  margin: 0.3rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-primary);
}

/* Columna Derecha Sticky de Inscripción */
.program-enroll-sidebar {
  position: sticky;
  top: 92px;
  min-width: 0;
}

.program-enroll-card {
  padding: 1.6rem;
  border-radius: 22px;
  background: rgba(18, 22, 36, 0.94);
  border: 1px solid rgba(0, 229, 255, 0.34);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.6), var(--glow-cyan);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.program-enroll-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.program-enroll-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.program-enroll-price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
}

.program-enroll-note {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.58;
  color: var(--text-muted);
}

.program-perks-list {
  list-style: none;
  padding: 0.85rem 0 0;
  margin: 0;
  border-top: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #cbd5e1;
}

.program-perks-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.program-packages-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.program-package-card {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(11, 13, 20, 0.72);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.program-package-card.is-featured {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.06);
}

.program-package-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.program-package-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.program-package-hours {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  margin-top: 0.15rem;
}

.program-package-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-cyan);
  white-space: nowrap;
}

.program-package-price span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.program-package-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.program-bundle-callout {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.program-bundle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.program-bundle-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.program-bundle-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #6ee7b7;
}

.btn-joincode-inline {
  width: 100%;
  padding: 0.58rem 0.85rem;
  border-radius: 10px;
  border: 1px dashed var(--border-glass);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-joincode-inline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.program-payment-mini {
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.program-payment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.program-payment-pills span {
  padding: 0.25rem 0.52rem;
  border-radius: 7px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-glass);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-primary);
}

/* ==========================================================================
   6. FOOTER HUMANO, MODAL JOIN CODE Y VERIFICADOR QR
   ========================================================================== */
.campus-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-glass);
  background: #080a10;
  padding: 3rem 1.5rem 2rem;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 1.75rem;
}

.footer-desc {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 400px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Modal Join Code */
.cyber-modal {
  margin: auto;
  max-width: 500px;
  width: calc(100% - 2rem);
  border: 1px solid var(--border-glow-cyan);
  border-radius: 20px;
  background: #101422;
  color: var(--text-primary);
  padding: 1.65rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85), var(--glow-cyan);
}

.cyber-modal::backdrop {
  background: rgba(6, 8, 14, 0.78);
  backdrop-filter: blur(8px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.modal-close-btn {
  border: 1px solid var(--border-glass);
  background: var(--surface-elevated);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  font-family: var(--font-mono);
}

.joincode-input {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: #0b0d14;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.joincode-alert {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
}

.joincode-alert-info {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--accent-cyan);
}

.joincode-alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.joincode-result-box {
  padding: 1rem;
  border-radius: 14px;
  background: var(--surface-elevated);
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.joincode-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  font-size: 0.78rem;
}

/* Verificador Público de Certificados */
.verify-main {
  max-width: 840px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.verify-card {
  padding: 2.2rem;
}

.verify-search-form {
  margin: 1.5rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.verify-search-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.verify-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.verify-search-input {
  flex: 1 1 260px;
  min-width: 0;
  font-family: var(--font-mono, monospace);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.verify-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
}

.verify-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.verify-qr-frame {
  padding: 0.75rem;
  border-radius: 18px;
  background: #0b0d14;
  border: 1px solid var(--border-glow-cyan);
}

/* ==========================================================================
   7. RESPONSIVO LIMPIO (≤ 1100px MENÚ COLAPSABLE · ≤ 980px · ≤ 640px 0 OVERFLOW)
   ========================================================================== */
@media (max-width: 1100px) {
  .campus-nav {
    display: none;
  }

  .mobile-nav-menu {
    display: inline-block;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-glass);
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
  }

  .mobile-nav-toggle::-webkit-details-marker {
    display: none;
  }

  .mobile-nav-toggle::marker {
    content: none;
  }

  .mobile-nav-panel {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 1rem;
    left: 1rem;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem;
    border-radius: 16px;
    background: rgba(11, 13, 20, 0.98);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);
  }

  .mobile-nav-panel a {
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
  }

  .mobile-nav-panel a:hover {
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.08);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .pillars-grid,
  .courses-grid,
  .pricing-grid,
  .footer-grid,
  .incubator-stats,
  .verify-grid,
  .program-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .program-enroll-sidebar {
    position: static;
  }

  .program-metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .campus-header-inner {
    padding: 0.55rem 0.9rem;
    gap: 0.5rem;
  }

  .btn-joincode-pill {
    display: none;
  }

  .campus-session-link {
    display: none;
  }
}

@media (max-width: 640px) {
  .campus-section {
    padding: 2.75rem 1rem;
  }

  .program-shell {
    padding: 1.5rem 1rem 3rem;
  }

  .hero-cta-row a,
  .hero-cta-row button {
    width: 100%;
  }

  .catalog-search-wrap {
    max-width: 100%;
  }

  .course-card-footer,
  .course-card-actions {
    width: 100%;
  }

  .course-card-actions a {
    flex: 1 1 auto;
  }

  .pricing-card,
  .course-card,
  .pillar-card,
  .program-hero-header,
  .program-enroll-card {
    min-width: 0;
    padding: 1.3rem;
  }

  .pricing-amount-big,
  .hero-title,
  .hero-subtitle,
  .hero-badge-pill,
  .program-h1 {
    overflow-wrap: anywhere;
  }
}

/* ==========================================================================
   8. ARQUITECTURA EXTERNA v5.0.0 (ESTILO HACK4U + ROADMAP FDE + DUGUI STAGE A+B)
   ========================================================================== */

.h4u-hero {
  padding-top: 4.25rem;
  padding-bottom: 3.5rem;
  text-align: center;
}

.h4u-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.h4u-hero-title {
  margin: 0;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.h4u-hero-subtitle,
.h4u-page-subtitle {
  margin: 0;
  max-width: 720px;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.h4u-hero-ctas {
  justify-content: center;
  margin-top: 0.4rem;
}

.h4u-subhero {
  padding-top: 3rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(142, 152, 176, 0.14);
}

.h4u-page-title {
  margin: 0.45rem 0 0.75rem;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-primary);
}

.h4u-subhero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.h4u-section-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}

/* Destacado Horizontal Escuela FDE */
.h4u-spotlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: center;
  padding: 1.85rem;
  border-radius: 22px;
  background: var(--surface-glass);
  border: 1px solid rgba(0, 229, 255, 0.25);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
}

.h4u-spotlight-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.28);
  aspect-ratio: 16 / 9;
  background: #0b0d14;
}

.h4u-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.h4u-spotlight-media .h4u-badge-soon {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
}

.h4u-spotlight-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.h4u-spotlight-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
}

/* Badges de estado estilo Hack4u + Cyber-Creator */
.h4u-badge-soon,
.h4u-badge-live,
.h4u-badge-free,
.h4u-badge-hours {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.72rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.h4u-badge-soon {
  background: rgba(168, 85, 247, 0.24);
  border: 1px solid rgba(168, 85, 247, 0.6);
  color: #e9d5ff;
  backdrop-filter: blur(8px);
}

.h4u-badge-live {
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #6ee7b7;
  backdrop-filter: blur(8px);
}

.h4u-badge-free {
  background: rgba(0, 229, 255, 0.18);
  border: 1px solid rgba(0, 229, 255, 0.55);
  color: #67e8f9;
  backdrop-filter: blur(8px);
}

.h4u-badge-hours {
  background: rgba(11, 13, 20, 0.82);
  border: 1px solid rgba(142, 152, 176, 0.3);
  color: var(--text-primary);
}

/* Tarjetas de Cursos con Portada 16:9 */
.h4u-courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.h4u-courses-grid.is-list-view {
  grid-template-columns: 1fr;
}

.h4u-courses-grid.is-list-view .h4u-course-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
}

.h4u-courses-grid.is-list-view .h4u-card-media {
  grid-row: 1 / -1;
  height: 100%;
  aspect-ratio: auto;
}

.h4u-course-card {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.h4u-course-card:hover {
  border-color: var(--border-glow-cyan);
  transform: translateY(-3px);
}

.h4u-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0d14;
  border-bottom: 1px solid rgba(142, 152, 176, 0.14);
}

.h4u-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.h4u-course-card:hover .h4u-card-media img {
  transform: scale(1.03);
}

.h4u-card-media-overlay {
  position: absolute;
  inset: 0.75rem 0.75rem auto 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.h4u-card-body {
  padding: 1.25rem 1.35rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.h4u-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.h4u-card-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

.h4u-card-level {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.h4u-card-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.h4u-card-title a {
  color: inherit;
  text-decoration: none;
}

.h4u-card-title a:hover {
  color: var(--accent-cyan);
}

.h4u-card-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.h4u-card-build {
  margin: 0.25rem 0 0;
  font-size: 0.83rem;
  line-height: 1.45;
  color: #cbd5e1;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.14);
}

.h4u-card-footer {
  padding: 0.95rem 1.35rem 1.2rem;
  border-top: 1px solid rgba(142, 152, 176, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Sección Próximos Cursos estilo Hack4u */
.h4u-proximos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.h4u-proximos-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: #0b0d14;
  text-decoration: none;
}

.h4u-proximos-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.75);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.h4u-proximos-card:hover img {
  transform: scale(1.04);
  filter: brightness(0.92);
}

.h4u-proximos-overlay {
  position: absolute;
  inset: 0;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(11, 13, 20, 0.2) 0%, rgba(11, 13, 20, 0.88) 100%);
}

.h4u-proximos-caption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.h4u-proximos-caption strong {
  color: var(--text-primary);
  font-size: 1.05rem;
}

/* Orientación Rápida (4 Quick Links) & Stats */
.h4u-quick-grid,
.h4u-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.h4u-quick-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.3rem;
  border-radius: 16px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.h4u-quick-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.h4u-quick-icon {
  font-size: 1.65rem;
  line-height: 1;
  flex-shrink: 0;
}

.h4u-quick-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.h4u-quick-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.h4u-stat-box {
  padding: 1.5rem 1.2rem;
  border-radius: 16px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.h4u-stat-box strong {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.h4u-stat-box span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Comparativa de Mentorías (3 Planes) */
.h4u-plans-grid,
.h4u-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.h4u-plan-card {
  position: relative;
  padding: 1.75rem;
  border-radius: 20px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.h4u-plan-card.is-featured {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 18px 44px rgba(0, 229, 255, 0.12);
}

.h4u-plan-ribbon {
  align-self: flex-start;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-cyan);
  color: #081018;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.h4u-plan-title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.h4u-plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.h4u-plan-price strong {
  font-size: 1.85rem;
  color: var(--text-primary);
}

.h4u-plan-price span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.h4u-plan-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
}

.h4u-text-link {
  font-size: 0.83rem;
  color: var(--accent-cyan);
  text-decoration: none;
}

/* Barra de Filtros /cursos */
.h4u-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  margin-bottom: 1.1rem;
}

.h4u-search-wrap {
  flex: 1 1 260px;
  min-width: 0;
}

.h4u-search-input {
  width: 100%;
  padding: 0.65rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(142, 152, 176, 0.25);
  background: #0b0d14;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.h4u-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.h4u-pill,
.h4u-route-btn,
.h4u-view-btn {
  padding: 0.45rem 0.88rem;
  border-radius: 999px;
  border: 1px solid rgba(142, 152, 176, 0.28);
  background: rgba(24, 29, 46, 0.85);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.h4u-pill.is-active,
.h4u-route-btn.is-active,
.h4u-view-btn.is-active {
  background: rgba(0, 229, 255, 0.16);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.h4u-view-toggles {
  display: inline-flex;
  gap: 0.35rem;
}

.h4u-results-counter {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.h4u-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(168, 85, 247, 0.12) 100%);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

/* Roadmap FDE (/roadmap) */
.h4u-roadmap-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.h4u-roadmap-kpi {
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.h4u-roadmap-kpi strong {
  color: var(--accent-cyan);
  font-size: 1.15rem;
}

.h4u-roadmap-kpi span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.h4u-cert-selector {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 1.4rem;
  border-radius: 16px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  margin-bottom: 1.5rem;
}

.h4u-cert-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.h4u-route-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fde-route-overview-card {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
  padding: 1.6rem;
  border-radius: 20px;
  background: var(--surface-glass);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.fde-route-overview-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0b0d14;
}

.fde-route-overview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fde-route-overview-media .h4u-badge-soon {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
}

.fde-route-overview-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fde-overview-title {
  margin: 0;
  font-size: 1.4rem;
  color: var(--text-primary);
}

.fde-overview-meta {
  margin: 0;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.fde-balance-box {
  margin-top: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fde-balance-bar {
  display: flex;
  width: 100%;
  height: 24px;
  border-radius: 999px;
  overflow: hidden;
  background: #0b0d14;
  border: 1px solid rgba(142, 152, 176, 0.24);
}

.fde-seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  color: #081018;
  white-space: nowrap;
}

.fde-seg-ia { background: #10b981; }
.fde-seg-biz { background: #f59e0b; }
.fde-seg-auto { background: #00e5ff; }
.fde-seg-eng { background: #a855f7; color: #f8fafc; }

.w-pct-5 { width: 5%; }
.w-pct-10 { width: 10%; }
.w-pct-15 { width: 15%; }
.w-pct-20 { width: 20%; }
.w-pct-25 { width: 25%; }
.w-pct-30 { width: 30%; }
.w-pct-35 { width: 35%; }
.w-pct-40 { width: 40%; }
.w-pct-45 { width: 45%; }
.w-pct-50 { width: 50%; }

.fde-balance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.fde-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 0.3rem;
}
.fde-dot-ia { background: #10b981; }
.fde-dot-biz { background: #f59e0b; }
.fde-dot-auto { background: #00e5ff; }
.fde-dot-eng { background: #a855f7; }

/* Timeline Vertical Paso a Paso */
.h4u-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.h4u-timeline-stage-banner {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(18, 22, 36, 0.9);
  border-left: 4px solid var(--accent-cyan);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.h4u-timeline-stage-banner h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.h4u-timeline-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.h4u-timeline-node {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.14);
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.h4u-timeline-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.15rem;
  border-radius: 16px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
}

.h4u-timeline-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0b0d14;
}

.h4u-timeline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.h4u-timeline-thumb .h4u-badge-soon,
.h4u-timeline-thumb .h4u-badge-live {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
}

.h4u-timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.h4u-timeline-title {
  margin: 0;
  font-size: 1.08rem;
}

.h4u-timeline-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.h4u-timeline-title a:hover {
  color: var(--accent-cyan);
}

/* Página /mentorias */
.h4u-mentorships-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.h4u-mentorship-card {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 1.75rem;
  padding: 1.6rem;
  border-radius: 20px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  align-items: start;
}

.h4u-mentorship-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0b0d14;
}

.h4u-mentorship-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.h4u-mentorship-media .h4u-badge-live {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
}

.h4u-mentorship-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.h4u-mentorship-title {
  margin: 0;
  font-size: 1.38rem;
}

.h4u-mentorship-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.h4u-pkg-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.h4u-pkg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(11, 13, 20, 0.75);
  border: 1px solid rgba(142, 152, 176, 0.2);
}

.h4u-pkg-row.is-featured {
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.06);
}

.h4u-pkg-info {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  flex: 1 1 240px;
}

.h4u-pkg-info strong {
  color: var(--text-primary);
  font-size: 0.94rem;
}

.h4u-pkg-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.h4u-pkg-cta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.h4u-pkg-price {
  font-size: 1.15rem;
  color: var(--accent-cyan);
  white-space: nowrap;
}

.h4u-pkg-price span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.h4u-step-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.h4u-step-num {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

/* Dugui Stage & Frequency Deck + Speaker VIP Pass + Mini-Player (/conferencias) */
.stage-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.stage-console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(290px, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.stage-cinema-col {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.stage-player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(0, 229, 255, 0.16), #0b0d14 68%);
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.stage-player-frame.is-podcast-mode {
  background: radial-gradient(circle at 70% 25%, rgba(168, 85, 247, 0.25), #0b0d14 70%);
  border-color: rgba(168, 85, 247, 0.5);
}

.stage-facade {
  position: absolute;
  inset: 0;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.85rem;
}

.stage-facade-title {
  margin: 0;
  max-width: 620px;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  color: var(--text-primary);
}

.stage-facade-event {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stage-embed-host,
.stage-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.stage-eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 5px;
  height: 30px;
}

.stage-eq-bars span {
  width: 5px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #00e5ff, #a855f7);
  animation: duguiEqPulse 1.2s ease-in-out infinite;
}

.stage-eq-bars span:nth-child(2n) { animation-delay: 0.2s; height: 24px; }
.stage-eq-bars span:nth-child(3n) { animation-delay: 0.45s; height: 18px; }
.stage-eq-bars span:nth-child(5n) { animation-delay: 0.65s; height: 28px; }

@keyframes duguiEqPulse {
  0%, 100% { transform: scaleY(0.45); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-eq-bars span { animation: none; }
}

.stage-meta-panel {
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.stage-meta-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.stage-active-title {
  margin: 0.25rem 0 0;
  font-size: 1.32rem;
  color: var(--text-primary);
}

.stage-chapters-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.stage-chapters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stage-chapter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background: rgba(11, 13, 20, 0.85);
  color: var(--text-primary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.stage-chapter-chip:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.14);
}

.stage-chapter-time {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
}

.stage-bridge-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  border-radius: 14px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  font-size: 0.88rem;
}

.stage-setlist-col {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stage-setlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(142, 152, 176, 0.16);
}

.stage-setlist-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 540px;
  overflow-y: auto;
}

.stage-setlist-item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.78rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(142, 152, 176, 0.16);
  background: rgba(11, 13, 20, 0.72);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.stage-setlist-item.is-active,
.stage-setlist-item:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
}

.stage-setlist-num {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  padding-top: 0.12rem;
}

.stage-setlist-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.stage-setlist-kind,
.stage-setlist-event {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.stage-setlist-title {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Speaker Backstage Passes (Idea B) */
.stage-passes-section {
  margin-top: 2.5rem;
}

.speaker-passes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.speaker-pass-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-glass);
  border: 1px solid rgba(0, 229, 255, 0.24);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.speaker-pass-card.is-podcast-pass {
  border-color: rgba(168, 85, 247, 0.34);
}

.speaker-pass-lanyard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.15rem;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.14), rgba(168, 85, 247, 0.16));
  border-bottom: 1px dashed rgba(142, 152, 176, 0.28);
}

.speaker-pass-hole {
  width: 28px;
  height: 7px;
  border-radius: 999px;
  background: #0b0d14;
  border: 1px solid rgba(142, 152, 176, 0.35);
}

.speaker-pass-stamp {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}

.speaker-pass-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.speaker-pass-title {
  margin: 0;
  font-size: 1.04rem;
  color: var(--text-primary);
}

.speaker-pass-event {
  margin: 0;
  font-size: 0.84rem;
  color: #d8b4fe;
}

.speaker-pass-footer {
  padding: 0.9rem 1.2rem;
  border-top: 1px solid rgba(142, 152, 176, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.speaker-pass-role {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.stage-empty-deck {
  padding: 2.8rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

/* Mini-Player Flotante Persistente */
.stage-mini-player {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9500;
  width: min(360px, calc(100vw - 2rem));
  border-radius: 16px;
  overflow: hidden;
  background: #111625;
  border: 1.5px solid var(--accent-cyan);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.8);
}

.stage-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  background: rgba(11, 13, 20, 0.95);
}

.stage-mini-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-mini-controls {
  display: inline-flex;
  gap: 0.35rem;
}

.stage-mini-embed {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
}

/* Conócenos, FAQ y Soporte */
.h4u-about-mission {
  padding: 2rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.h4u-founder-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  margin-bottom: 1.75rem;
}

.h4u-founder-avatar {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.25);
  display: block;
  margin: 0 auto;
}

.h4u-founder-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.h4u-faq-group {
  margin-bottom: 2rem;
}

.h4u-faq-group-title {
  margin: 0 0 0.9rem;
  font-size: 1.28rem;
  color: var(--text-primary);
}

.h4u-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin-bottom: 1.75rem;
}

.h4u-support-card {
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

/* Responsive v5 (1024px / 768px / 390px — 0px overflow) */
@media (max-width: 1024px) {
  .h4u-courses-grid,
  .h4u-plans-grid,
  .h4u-steps-grid,
  .speaker-passes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .h4u-quick-grid,
  .h4u-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .h4u-spotlight-card,
  .fde-route-overview-card,
  .h4u-mentorship-card,
  .stage-console-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .h4u-courses-grid,
  .h4u-courses-grid.is-list-view .h4u-course-card,
  .h4u-proximos-grid,
  .h4u-plans-grid,
  .h4u-steps-grid,
  .h4u-roadmap-kpi-strip,
  .h4u-timeline-card,
  .speaker-passes-grid,
  .h4u-founder-card,
  .h4u-support-grid {
    grid-template-columns: 1fr;
  }

  .h4u-quick-grid,
  .h4u-stats-grid {
    grid-template-columns: 1fr;
  }

  .h4u-timeline-item {
    grid-template-columns: 1fr;
  }

  .h4u-spotlight-card,
  .fde-route-overview-card,
  .h4u-mentorship-card,
  .h4u-cta-banner {
    padding: 1.25rem;
  }

  html,
  body,
  .h4u-public-body,
  .h4u-main,
  .h4u-header,
  .h4u-footer {
    max-width: 100%;
    overflow-x: clip;
  }

  .h4u-header-inner,
  .h4u-nav-links,
  .h4u-header-actions {
    flex-wrap: wrap;
    max-width: 100%;
    min-width: 0;
  }

  .h4u-brand-text,
  .h4u-nav-link,
  .h4u-footer-grid {
    min-width: 0;
    max-width: 100%;
  }

  .h4u-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Embudo FDE: Caja de Lista Prioritaria (#lista-fde)
   ========================================================================== */
.fde-waitlist-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background: linear-gradient(135deg, rgba(18, 22, 36, 0.92), rgba(11, 13, 20, 0.96));
}

.fde-waitlist-copy {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.fde-waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fde-waitlist-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.fde-waitlist-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fde-waitlist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.fde-waitlist-feedback {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.08);
  color: var(--accent-cyan);
}

.fde-waitlist-feedback.is-ok {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

.fde-waitlist-feedback.is-error {
  border-color: rgba(244, 63, 94, 0.45);
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
}

@media (max-width: 960px) {
  .fde-waitlist-card {
    grid-template-columns: 1fr;
    padding: 1.35rem;
    gap: 1.35rem;
  }
}

@media (max-width: 640px) {
  .fde-waitlist-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Rediseño UX v5.2.1 — Identidad Visual Diferenciada por Ruta FDE
   ========================================================================== */
.route-theme-core {
  --route-accent: #38bdf8;
  --route-bg: rgba(56, 189, 248, 0.12);
  --route-border: rgba(56, 189, 248, 0.38);
}

.route-theme-amber {
  --route-accent: #f59e0b;
  --route-bg: rgba(245, 158, 11, 0.14);
  --route-border: rgba(245, 158, 11, 0.45);
}

.route-theme-cyan {
  --route-accent: #00e5ff;
  --route-bg: rgba(0, 229, 255, 0.13);
  --route-border: rgba(0, 229, 255, 0.45);
}

.route-theme-emerald {
  --route-accent: #10b981;
  --route-bg: rgba(16, 185, 129, 0.13);
  --route-border: rgba(16, 185, 129, 0.45);
}

.route-theme-purple {
  --route-accent: #a855f7;
  --route-bg: rgba(168, 85, 247, 0.15);
  --route-border: rgba(168, 85, 247, 0.46);
}

.route-theme-capstone {
  --route-accent: #d946ef;
  --route-bg: rgba(217, 70, 239, 0.14);
  --route-border: rgba(217, 70, 239, 0.45);
}

.fde-route-badge,
.fde-stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--route-accent, var(--accent-cyan));
  background: var(--route-bg, rgba(0, 229, 255, 0.12));
  border: 1px solid var(--route-border, rgba(0, 229, 255, 0.38));
  white-space: nowrap;
}

.fde-route-ribbon {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.92);
  color: #061019;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.fde-code-level-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.22rem 0.6rem;
  border-radius: 8px;
  background: rgba(11, 13, 20, 0.78);
  border: 1px solid rgba(142, 152, 176, 0.25);
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 700;
}

.h4u-pill.route-theme-amber.is-active,
.h4u-pill.route-theme-cyan.is-active,
.h4u-pill.route-theme-emerald.is-active,
.h4u-pill.route-theme-purple.is-active {
  background: var(--route-bg);
  border-color: var(--route-accent);
  color: var(--route-accent);
}

/* Mapa Visual 3 Fases (/roadmap hero) */
.fde-journey-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 1.75rem;
}

.fde-journey-step {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem 1.3rem;
  border-radius: 16px;
  background: var(--surface-glass);
  border: 1px solid var(--route-border, var(--border-glass));
  border-top: 3px solid var(--route-accent, var(--accent-cyan));
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.fde-journey-step:hover {
  transform: translateY(-2px);
  border-color: var(--route-accent, var(--accent-cyan));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.fde-journey-step h3 {
  margin: 0.15rem 0 0;
  font-size: 1.06rem;
  color: var(--text-primary);
}

.fde-journey-step p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.fde-journey-link {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--route-accent, var(--accent-cyan));
}

/* Comparador 4 Rutas (/roadmap) */
.fde-comparator-header {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
}

.fde-selector-heading {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.65rem;
  color: var(--text-primary);
}

.fde-route-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.fde-route-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.65rem;
  padding: 1.15rem;
  border-radius: 16px;
  background: rgba(18, 22, 36, 0.82);
  border: 1.5px solid rgba(142, 152, 176, 0.24);
  border-top: 3px solid var(--route-accent);
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  min-width: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.fde-route-card:hover {
  transform: translateY(-2px);
  border-color: var(--route-accent);
}

.fde-route-card.is-active {
  background: linear-gradient(180deg, var(--route-bg) 0%, rgba(18, 22, 36, 0.96) 100%);
  border-color: var(--route-accent);
  box-shadow: 0 0 0 1px var(--route-accent), 0 16px 36px rgba(0, 0, 0, 0.36);
}

.fde-route-card-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.fde-route-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.fde-route-card-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.42;
  color: var(--text-muted);
}

.fde-route-card-facts strong {
  color: #e2e8f0;
}

.fde-route-card-cta {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--route-accent);
}

.fde-active-route-stage {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(11, 13, 20, 0.65);
  border: 1.5px solid var(--route-border);
}

.fde-active-route-stage .fde-route-overview-card {
  padding: 0;
  background: transparent;
  border: none;
}

.fde-route-stage-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.fde-panel-ctas {
  margin-top: 0.45rem;
}

.fde-spec-courses-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(142, 152, 176, 0.18);
}

.h4u-timeline-stage-banner.route-theme-core,
.h4u-timeline-stage-banner.route-theme-amber,
.h4u-timeline-stage-banner.route-theme-cyan,
.h4u-timeline-stage-banner.route-theme-emerald,
.h4u-timeline-stage-banner.route-theme-purple,
.h4u-timeline-stage-banner.route-theme-capstone {
  border-left: 4px solid var(--route-accent);
}

.h4u-timeline-stage-banner h4 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--text-primary);
}

.h4u-timeline-item.route-theme-core .h4u-timeline-node,
.h4u-timeline-item.route-theme-amber .h4u-timeline-node,
.h4u-timeline-item.route-theme-cyan .h4u-timeline-node,
.h4u-timeline-item.route-theme-emerald .h4u-timeline-node,
.h4u-timeline-item.route-theme-purple .h4u-timeline-node,
.h4u-timeline-item.route-theme-capstone .h4u-timeline-node {
  background: var(--route-bg);
  border-color: var(--route-border);
  color: var(--route-accent);
}

/* Cabecera Tronco Común */
.fde-core-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.4rem;
}

.fde-core-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Portada Campus (#proximos — Tronco Común + 4 Rutas Completas) */
.h4u-core-strip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: var(--surface-glass);
  border: 1px solid var(--route-border);
  border-left: 4px solid var(--route-accent);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.h4u-core-strip-card:hover {
  transform: translateY(-2px);
  border-color: var(--route-accent);
}

.h4u-core-strip-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.h4u-core-strip-left h3 {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.h4u-core-strip-left p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.h4u-routes-4grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.h4u-route-showcase-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-glass);
  border: 1.5px solid var(--route-border);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.h4u-route-showcase-card:hover {
  transform: translateY(-3px);
  border-color: var(--route-accent);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.h4u-route-showcase-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b0d14;
  overflow: hidden;
}

.h4u-route-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.h4u-route-showcase-media-top {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  right: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.h4u-route-showcase-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem;
  flex: 1 1 auto;
}

.h4u-route-showcase-body h3 {
  margin: 0;
  font-size: 1.06rem;
  color: var(--text-primary);
}

.h4u-route-showcase-who {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.h4u-route-showcase-who strong {
  color: #e2e8f0;
}

.h4u-route-showcase-foot {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(142, 152, 176, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.h4u-routes-footer-cta {
  margin-top: 1.65rem;
  display: flex;
  justify-content: center;
}

@media (max-width: 1120px) {
  .fde-route-cards-grid,
  .h4u-routes-4grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .fde-journey-map {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fde-route-cards-grid,
  .h4u-routes-4grid {
    grid-template-columns: 1fr;
  }

  .fde-active-route-stage {
    padding: 1rem;
  }
}

/* ==========================================================================
   v6.0.0 — DUGUI SPACE: Ruta Única FDE Lineal (4 Niveles Progresivos)
   ========================================================================== */
.fde-levels-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.05rem;
  margin-top: 1.5rem;
}

.fde-level-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--surface-glass);
  border: 1px solid var(--route-border, var(--border-glass));
  border-top: 3px solid var(--route-accent, var(--accent-cyan));
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.fde-level-card:hover {
  transform: translateY(-2px);
  border-color: var(--route-accent, var(--accent-cyan));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.fde-level-card h3 {
  margin: 0.15rem 0 0;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--text-primary);
}

.fde-level-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.fde-level-outcomes {
  margin: 0.25rem 0 0;
  padding-left: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #cbd5e1;
}

.fde-objective-strip {
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
  border-radius: 16px;
  background: rgba(18, 22, 36, 0.82);
  border: 1px solid rgba(0, 229, 255, 0.28);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fde-objective-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.fde-level-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fde-landing-path-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.65rem;
  border-radius: 20px;
  background: var(--surface-glass);
  border: 1px solid rgba(0, 229, 255, 0.28);
}

.fde-landing-levels-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.fde-landing-level-pill {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(11, 13, 20, 0.72);
  border: 1px solid var(--route-border, rgba(142, 152, 176, 0.24));
  border-left: 3px solid var(--route-accent, var(--accent-cyan));
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.fde-landing-level-pill strong {
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text-primary);
}

@media (max-width: 1120px) {
  .fde-levels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fde-landing-path-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fde-levels-grid,
  .fde-landing-levels-mini {
    grid-template-columns: 1fr;
  }

  .fde-objective-strip {
    padding: 1rem;
  }
}




/* === Dugui Space Universal Help Center & Guided Tour (CSP Level 3 Strict) === */
.dugui-help-hidden {
  display: none !important;
}

.dugui-help-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.32);
  background: rgba(18, 22, 36, 0.85);
  color: #F3F6FC;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dugui-help-trigger:hover {
  border-color: #00E5FF;
  background: rgba(0, 229, 255, 0.12);
}

.dugui-help-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.18);
  color: #00E5FF;
  font-size: 0.74rem;
  font-weight: 800;
}

.dugui-help-dialog {
  width: min(760px, calc(100vw - 2rem));
  max-height: min(86vh, 760px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 20px;
  background: #111625;
  color: #F3F6FC;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.78);
}

.dugui-help-dialog::backdrop {
  background: rgba(6, 8, 15, 0.78);
  backdrop-filter: blur(6px);
}

.dugui-help-shell {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: min(84vh, 740px);
  overflow-y: auto;
}

.dugui-help-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(142, 152, 176, 0.18);
}

.dugui-help-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00E5FF;
  margin-bottom: 0.3rem;
}

.dugui-help-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: #F3F6FC;
  margin: 0;
}

.dugui-help-sub {
  font-size: 0.88rem;
  color: #8E98B0;
  margin: 0.3rem 0 0;
}

.dugui-help-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(142, 152, 176, 0.25);
  background: rgba(24, 29, 46, 0.9);
  color: #F3F6FC;
  cursor: pointer;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.dugui-help-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 640px) {
  .dugui-help-options-grid {
    grid-template-columns: 1fr;
  }
}

.dugui-help-option-card {
  text-align: left;
  padding: 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(142, 152, 176, 0.22);
  background: #181D2E;
  color: #F3F6FC;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.dugui-help-option-card:hover {
  border-color: #00E5FF;
  transform: translateY(-2px);
}

.dugui-help-option-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.14);
  color: #00E5FF;
}

.dugui-help-option-badge-purple {
  background: rgba(168, 85, 247, 0.18);
  color: #D8B4FE;
}

.dugui-help-option-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #F3F6FC;
}

.dugui-help-option-desc {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #8E98B0;
}

.dugui-help-option-cta {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #00E5FF;
}

.dugui-help-manual-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.dugui-help-back-btn,
.dugui-help-tour-inline-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(142, 152, 176, 0.28);
  background: #181D2E;
  color: #F3F6FC;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.dugui-help-tour-inline-btn {
  border-color: rgba(0, 229, 255, 0.4);
  color: #00E5FF;
}

.dugui-help-manual-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.dugui-help-manual-card {
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: #181D2E;
  border: 1px solid rgba(142, 152, 176, 0.16);
}

.dugui-help-manual-h4 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #00E5FF;
}

.dugui-help-manual-p {
  margin: 0 0 0.45rem;
  font-size: 0.87rem;
  line-height: 1.55;
  color: #D4DCF0;
}

.dugui-help-manual-list {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #8E98B0;
}

.dugui-tour-highlight {
  outline: 2px solid #00E5FF !important;
  outline-offset: 6px !important;
  box-shadow: 0 0 0 6px rgba(0, 229, 255, 0.18), 0 0 28px rgba(0, 229, 255, 0.32) !important;
  border-radius: 12px;
  transition: outline 0.2s ease, box-shadow 0.2s ease;
}

.dugui-tour-coachmark {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  width: min(390px, calc(100vw - 2rem));
  padding: 1.15rem 1.25rem;
  border-radius: 18px;
  background: #111625;
  border: 1.5px solid #00E5FF;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.82), 0 0 24px rgba(0, 229, 255, 0.22);
  color: #F3F6FC;
}

.dugui-tour-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.dugui-tour-counter {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #00E5FF;
}

.dugui-tour-close-btn {
  border: none;
  background: transparent;
  color: #8E98B0;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.dugui-tour-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: #F3F6FC;
}

.dugui-tour-desc {
  margin: 0 0 0.9rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #C7D0E4;
}

.dugui-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.dugui-tour-nav-btn {
  padding: 0.48rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(142, 152, 176, 0.3);
  background: #181D2E;
  color: #F3F6FC;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.dugui-tour-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dugui-tour-nav-btn-primary {
  background: #00E5FF;
  border-color: #00E5FF;
  color: #081018;
}


/* === DUGUI SPACE — Páginas Legales & Aviso de Cookies CSP Nivel 3 === */
.dugui-legal-page {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
  box-sizing: border-box;
}

.dugui-legal-hero {
  background: rgba(18, 22, 36, 0.78);
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 18px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(14px);
}

.dugui-legal-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #00E5FF;
  margin-bottom: 0.65rem;
}

.dugui-legal-title {
  margin: 0 0 0.75rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.18;
  color: #F3F6FC;
}

.dugui-legal-lead {
  margin: 0 0 1.25rem;
  color: #CBD5E1;
  font-size: 1.02rem;
  line-height: 1.6;
}

.dugui-legal-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.dugui-legal-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(24, 29, 46, 0.9);
  border: 1px solid rgba(243, 246, 252, 0.12);
  color: #94A3B8;
  font-size: 0.82rem;
}

.dugui-legal-crosslink {
  color: #00E5FF;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.dugui-legal-crosslink:hover {
  text-decoration: underline;
}

.dugui-legal-stack {
  display: grid;
  gap: 1.25rem;
}

.dugui-legal-card {
  background: rgba(18, 22, 36, 0.78);
  border: 1px solid rgba(243, 246, 252, 0.1);
  border-radius: 16px;
  padding: 1.65rem;
  box-sizing: border-box;
  min-width: 0;
}

.dugui-legal-card h2 {
  margin: 0 0 0.85rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.25rem;
  color: #F3F6FC;
}

.dugui-legal-card p {
  margin: 0 0 0.85rem;
  color: #CBD5E1;
  line-height: 1.68;
}

.dugui-legal-card p:last-child {
  margin-bottom: 0;
}

.dugui-legal-card a {
  color: #00E5FF;
  word-break: break-word;
}

.dugui-legal-list {
  margin: 0.4rem 0 0.85rem;
  padding-left: 1.25rem;
  color: #CBD5E1;
  line-height: 1.65;
}

.dugui-legal-list li {
  margin-bottom: 0.55rem;
}

.dugui-legal-list ul {
  margin-top: 0.45rem;
  padding-left: 1.15rem;
}

.dugui-legal-note {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.18);
  color: #E2E8F0;
}

.dugui-legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-top: 0.75rem;
}

.dugui-legal-mini-card {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(11, 13, 20, 0.65);
  border: 1px solid rgba(243, 246, 252, 0.08);
}

.dugui-legal-mini-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  color: #F3F6FC;
}

.dugui-legal-mini-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #94A3B8;
  line-height: 1.55;
}

.dugui-legal-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin-top: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(243, 246, 252, 0.1);
}

.dugui-legal-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.dugui-legal-table th,
.dugui-legal-table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid rgba(243, 246, 252, 0.08);
  color: #CBD5E1;
  vertical-align: top;
}

.dugui-legal-table th {
  background: rgba(24, 29, 46, 0.95);
  color: #00E5FF;
  font-weight: 600;
}

.dugui-legal-control-panel {
  border-color: rgba(168, 85, 247, 0.3);
}

.dugui-legal-control-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.2rem;
  margin-top: 1rem;
}

.dugui-legal-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.14);
  color: #F3F6FC;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.dugui-legal-reset-btn:hover {
  background: rgba(0, 229, 255, 0.24);
  transform: translateY(-1px);
}

.dugui-legal-secondary-link {
  color: #CBD5E1;
  font-size: 0.9rem;
  text-decoration: none;
}

.dugui-legal-secondary-link:hover {
  color: #00E5FF;
  text-decoration: underline;
}

.dugui-legal-reset-status {
  margin-top: 0.85rem;
  padding: 0.7rem 0.95rem;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #A7F3D0;
  font-size: 0.9rem;
}

.dugui-legal-reset-status.is-hidden {
  display: none;
}

.dugui-cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 950;
  margin: 0 auto;
  width: auto;
  max-width: min(760px, calc(100vw - 2rem));
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 0.95rem 1.15rem;
  border-radius: 14px;
  background: rgba(11, 13, 20, 0.94);
  border: 1px solid rgba(0, 229, 255, 0.28);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
}

.dugui-cookie-banner.is-hidden {
  display: none;
}

.dugui-cookie-banner-copy {
  flex: 1 1 320px;
  min-width: 0;
}

.dugui-cookie-banner-title {
  display: block;
  font-size: 0.92rem;
  color: #F3F6FC;
  margin-bottom: 0.22rem;
}

.dugui-cookie-banner-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.48;
  color: #94A3B8;
}

.dugui-cookie-banner-text a {
  color: #00E5FF;
  text-decoration: underline;
}

.dugui-cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.dugui-cookie-btn-ghost {
  padding: 0.52rem 0.9rem;
  border-radius: 9px;
  border: 1px solid rgba(243, 246, 252, 0.2);
  background: rgba(24, 29, 46, 0.88);
  color: #E2E8F0;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.dugui-cookie-btn-ghost:hover {
  border-color: rgba(243, 246, 252, 0.42);
}

.dugui-cookie-btn-primary {
  padding: 0.52rem 1rem;
  border-radius: 9px;
  border: none;
  background: #00E5FF;
  color: #0B0D14;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.dugui-cookie-btn-primary:hover {
  filter: brightness(1.06);
}

@media (max-width: 640px) {
  .dugui-legal-page {
    padding: 1.5rem 0 2.5rem;
  }

  .dugui-legal-hero,
  .dugui-legal-card {
    padding: 1.2rem;
  }

  .dugui-cookie-banner {
    padding: 0.85rem 0.95rem;
  }

  .dugui-cookie-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}


/* === DUGUI SPACE — Concierge Flotante WhatsApp Business CSP Nivel 3 === */
.dugui-wa-root,
.dugui-wa-root * {
  box-sizing: border-box;
}

.dugui-wa-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 960;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  max-width: calc(100vw - 2rem);
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
  transition: bottom 0.25s ease, opacity 0.25s ease;
}

.dugui-wa-root.is-hidden,
.dugui-wa-panel.is-hidden,
.dugui-wa-form.is-hidden,
.dugui-wa-done.is-hidden,
.dugui-wa-form-error.is-hidden {
  display: none;
}

body:has(#dugui-cookie-banner:not(.is-hidden)) .dugui-wa-root {
  bottom: 112px;
}

.dugui-wa-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 211, 102, 0.45);
  background: rgba(11, 13, 20, 0.94);
  color: #F3F6FC;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.52), 0 0 22px rgba(37, 211, 102, 0.22);
  backdrop-filter: blur(14px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.dugui-wa-fab:hover {
  transform: translateY(-2px);
  border-color: #00E5FF;
}

.dugui-wa-fab:focus-visible {
  outline: 2px solid #00E5FF;
  outline-offset: 2px;
}

.dugui-wa-fab-icon {
  color: #25D366;
  flex-shrink: 0;
}

.dugui-wa-fab-text {
  white-space: nowrap;
}

.dugui-wa-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.dugui-wa-status-pill.is-open {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6EE7B7;
}

.dugui-wa-status-pill.is-away {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FCD34D;
}

.dugui-wa-panel {
  width: min(360px, calc(100vw - 2rem));
  max-width: min(360px, calc(100vw - 2rem));
  max-height: calc(100vh - 6.5rem);
  overflow-y: auto;
  border-radius: 18px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  background: rgba(11, 13, 20, 0.96);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.65), 0 0 28px rgba(0, 229, 255, 0.14);
  backdrop-filter: blur(16px);
  color: #F3F6FC;
}

.dugui-wa-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.05rem 0.85rem;
  border-bottom: 1px solid rgba(243, 246, 252, 0.09);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(16, 185, 129, 0.08));
}

.dugui-wa-header-copy {
  min-width: 0;
}

.dugui-wa-eyebrow {
  display: block;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  color: #00E5FF;
  margin-bottom: 0.2rem;
}

.dugui-wa-panel-title {
  margin: 0;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.05rem;
  line-height: 1.25;
  color: #F3F6FC;
}

.dugui-wa-hours-summary {
  margin: 0.28rem 0 0;
  font-size: 0.78rem;
  color: #94A3B8;
}

.dugui-wa-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  border: 1px solid rgba(243, 246, 252, 0.16);
  background: rgba(24, 29, 46, 0.9);
  color: #CBD5E1;
  font-size: 0.92rem;
  cursor: pointer;
}

.dugui-wa-close:hover {
  border-color: #00E5FF;
  color: #FFFFFF;
}

.dugui-wa-panel-body {
  padding: 0.95rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.dugui-wa-welcome-copy {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.5;
  color: #CBD5E1;
}

.dugui-wa-direct-link,
.dugui-wa-ticket-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.72rem 0.95rem;
  border-radius: 11px;
  background: linear-gradient(135deg, #10B981, #25D366);
  color: #0B0D14;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.dugui-wa-direct-link:hover,
.dugui-wa-ticket-link:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.dugui-wa-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  color: #8E98B0;
}

.dugui-wa-divider::before,
.dugui-wa-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(243, 246, 252, 0.1);
}

.dugui-wa-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dugui-wa-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.dugui-wa-field label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #CBD5E1;
}

.dugui-wa-field select,
.dugui-wa-field input,
.dugui-wa-field textarea {
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 9px;
  border: 1px solid rgba(243, 246, 252, 0.16);
  background: rgba(24, 29, 46, 0.92);
  color: #F3F6FC;
  font-family: inherit;
  font-size: 0.84rem;
}

.dugui-wa-field select:focus,
.dugui-wa-field input:focus,
.dugui-wa-field textarea:focus {
  outline: none;
  border-color: #00E5FF;
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2);
}

.dugui-wa-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.74rem;
  line-height: 1.4;
  color: #94A3B8;
  cursor: pointer;
}

.dugui-wa-consent-row input {
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: #00E5FF;
}

.dugui-wa-form-error {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 9px;
  border: 1px solid rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.14);
  color: #FCA5A5;
  font-size: 0.78rem;
  line-height: 1.4;
}

.dugui-wa-submit {
  width: 100%;
  padding: 0.68rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.5);
  background: rgba(0, 229, 255, 0.16);
  color: #F3F6FC;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dugui-wa-submit:hover:not(:disabled) {
  background: rgba(0, 229, 255, 0.26);
  transform: translateY(-1px);
}

.dugui-wa-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.dugui-wa-done {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}

.dugui-wa-done-badge {
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: #6EE7B7;
  font-size: 0.72rem;
  font-weight: 700;
}

.dugui-wa-done-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #E2E8F0;
}

.dugui-wa-ticket-code {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  color: #00E5FF;
}

.dugui-wa-reset-btn {
  align-self: flex-start;
  padding: 0.35rem 0.6rem;
  border: none;
  background: transparent;
  color: #94A3B8;
  font-family: inherit;
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
}

.dugui-wa-reset-btn:hover {
  color: #00E5FF;
}

@media (max-width: 640px) {
  body:has(#dugui-cookie-banner:not(.is-hidden)) .dugui-wa-root {
    opacity: 0;
    pointer-events: none;
  }

  .dugui-wa-root {
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: calc(100vw - 1.5rem);
  }

  .dugui-wa-panel {
    width: min(360px, calc(100vw - 1.5rem));
    max-width: min(360px, calc(100vw - 1.5rem));
    max-height: calc(100vh - 5.5rem);
  }
}
