/* ==========================================================================
   EDUMYMUSIC S.A.S. · MODELO 3: VIDEO & STORYTELLING
   Estilos Cinemáticos, Visualizador Armónico y Scrollytelling
   CERO EMOJIS · Responsive 1440x900 & 390x844
   ========================================================================== */

:root {
  --bg-primary: #08090d;
  --bg-surface: #0f121a;
  --bg-surface-elevated: #161a26;
  --bg-card: rgba(22, 26, 38, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(245, 158, 11, 0.35);

  --accent-gold: #f59e0b;
  --accent-amber: #fbbf24;
  --accent-cyan: #38bdf8;
  --accent-purple: #818cf8;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Enlace accesible de salto */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-gold);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 700;
  z-index: 999999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

/* Grano y barra de progreso superior */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 900;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.scroll-progress-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-cyan));
  z-index: 9999;
  transition: width 0.05s linear;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ==========================================================================
   HEADER Y DEMO BAR OBLIGATORIA
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 9, 13, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.demo-bar {
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  color: #cbd5e1;
}

.demo-bar-inner {
  max-width: 1360px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.demo-bar-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.demo-pill {
  display: inline-block;
  background: var(--accent-gold);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.demo-orig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.demo-orig-link:hover {
  color: #fff;
}

.models-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.switcher-title {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  margin-right: 0.2rem;
}

.model-pill-link {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}
.model-pill-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.model-pill-link.is-active {
  background: var(--accent-gold);
  color: #000;
  font-weight: 700;
  border-color: var(--accent-gold);
}

.nav-container {
  padding-block: 0.65rem;
}

.nav-inner {
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.main-nav .nav-menu {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  align-items: center;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-item span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-gold);
}
.nav-item:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.audio-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  transition: all var(--transition-fast);
}
.audio-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}
.audio-toggle-btn.is-active {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

.audio-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
  transition: background var(--transition-fast);
}
.audio-toggle-btn.is-active .audio-status-dot {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.cta-primary-compact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-gold);
  color: #000;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: 6px;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.cta-primary-compact:hover {
  background: var(--accent-amber);
  transform: translateY(-1px);
}

/* ==========================================================================
   TIMELINE LATERAL VERTICAL (HUD)
   ========================================================================== */

.timeline-hud {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 850;
  pointer-events: auto;
}

.hud-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hud-track {
  width: 2px;
  height: 220px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  border-radius: 2px;
}

.hud-indicator {
  position: absolute;
  top: 0;
  left: -2px;
  width: 6px;
  height: 24px;
  background: var(--accent-gold);
  border-radius: 3px;
  box-shadow: 0 0 10px var(--accent-gold);
  transition: top 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hud-step a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  opacity: 0.45;
  transition: all var(--transition-fast);
}

.hud-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #fff;
  padding: 0.2rem 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.hud-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
}

.hud-step.is-active a {
  opacity: 1;
}
.hud-step.is-active .hud-num {
  background: var(--accent-gold);
  color: #000;
  font-weight: 700;
}
.hud-step.is-active .hud-label {
  color: var(--accent-amber);
}

/* ==========================================================================
   CANVAS ESPECTROGRAMA SONORO FLOTANTE
   ========================================================================== */

.spectrogram-canvas-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 280px;
  background: rgba(12, 14, 20, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.75rem;
  z-index: 850;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

#spectrogram-canvas {
  width: 100%;
  height: 60px;
  display: block;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
}

.spectrogram-readout {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.readout-item {
  display: flex;
  justify-content: space-between;
}
.readout-key {
  color: var(--text-dim);
}
.readout-val {
  color: var(--accent-cyan);
}

/* ==========================================================================
   HERO CINEMÁTICO
   ========================================================================== */

.hero-cinematic {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.38) contrast(1.15) saturate(1.1);
  transform: scale(1.05);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 9, 13, 0.8) 0%,
    rgba(8, 9, 13, 0.55) 50%,
    var(--bg-primary) 100%
  );
}

.hero-radial-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(245, 158, 11, 0.12), transparent 60%);
}

.hero-content-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-amber);
  margin-bottom: 1.5rem;
}

.tag-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
  animation: pulse-dot 2s infinite ease-in-out;
}

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

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.headline-gradient {
  background: linear-gradient(100deg, #fff 20%, var(--accent-amber) 70%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subhead {
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  color: #cbd5e1;
  max-width: 680px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.hero-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 880px;
  margin-bottom: 2.75rem;
  padding: 1.25rem;
  background: rgba(15, 18, 26, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.metric-card {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.1;
}

.metric-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  margin-top: 0.2rem;
}

.metric-caption {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.35;
  margin-top: 0.2rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn-action-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent-gold);
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.btn-action-hero:hover {
  background: var(--accent-amber);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.3);
}

.btn-scroll-story {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.btn-scroll-story:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.cue-mouse {
  width: 18px;
  height: 28px;
  border: 2px solid var(--text-dim);
  border-radius: 10px;
  position: relative;
}

.cue-wheel {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 1px;
  animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 8px); opacity: 0; }
}

/* ==========================================================================
   SECCIONES NARRATIVAS POR CAPÍTULOS (01 AL 04)
   ========================================================================== */

.chapter-section {
  position: relative;
  padding-block: 7rem;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.chapter-alt {
  background-color: #0b0d14;
}

.chapter-bg-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-num {
  position: absolute;
  top: 50%;
  right: -2rem;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 26rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.015);
  user-select: none;
}
.reverse .ambient-num {
  right: auto;
  left: -2rem;
}

.chapter-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.chapter-grid.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}
.chapter-grid.reverse .chapter-narrative {
  order: 2;
}
.chapter-grid.reverse .chapter-visual-pane {
  order: 1;
}

.chapter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 1.25rem;
}
.chapter-badge.highlight {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
}

.badge-index {
  color: var(--accent-gold);
  font-weight: 700;
}
.badge-title {
  color: var(--text-muted);
}

.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.highlight-text {
  color: var(--accent-amber);
}

.chapter-lead {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.story-points-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.story-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.point-icon-box {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}
.point-icon-box.special {
  color: var(--accent-gold);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.point-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.point-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.chapter-action-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-story-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.75rem 1.35rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.btn-story-link:hover {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}
.btn-story-link.highlight {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}
.btn-story-link.highlight:hover {
  background: var(--accent-amber);
}

.btn-story-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.75rem 1.35rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.btn-story-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Paneles visuales */
.frame-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}
.frame-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.frame-media-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
}

.frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.frame-card:hover .frame-img {
  transform: scale(1.04);
}

.frame-tag-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

.stage-tag .live-recording-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse-dot 1.5s infinite;
}

.frame-caption {
  padding: 1.25rem 1.5rem;
}

.caption-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.meta-label {
  color: var(--text-dim);
}
.meta-val {
  color: var(--accent-amber);
  font-weight: 600;
}

.caption-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  font-style: italic;
  line-height: 1.5;
}

/* ==========================================================================
   GALERÍA DE CONCIERTOS
   ========================================================================== */

.gallery-section {
  padding-block: 7rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  max-width: 740px;
  margin-inline: auto;
  margin-bottom: 4rem;
}
.text-center {
  text-align: center;
}

.pill-kicker {
  display: inline-block;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.gallery-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 11;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}
.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.gallery-card.card-tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-card.card-wide {
  grid-column: span 2;
  aspect-ratio: 21 / 10;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.gallery-card:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 9, 13, 0.95) 45%, #08090d 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.gallery-caption h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.gallery-caption p {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* ==========================================================================
   PROGRAMAS FORMATIVOS
   ========================================================================== */

.programs-section {
  padding-block: 7rem;
  background: #0a0c13;
  border-bottom: 1px solid var(--border-subtle);
}

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

.program-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.program-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-elevated);
  transform: translateY(-4px);
}

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

.program-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.program-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.program-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.program-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.program-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.program-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #cbd5e1;
}
.program-features li svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* ==========================================================================
   SIMULADOR DE FLEXIBILIDAD
   ========================================================================== */

.simulator-section {
  padding-block: 6rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.simulator-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.simulator-intro {
  margin-bottom: 2.5rem;
  max-width: 700px;
}

.simulator-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.simulator-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

.simulator-interactive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.simulator-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sim-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sim-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
}

.sim-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}
.sim-select:focus {
  border-color: var(--accent-gold);
}

.sim-slider {
  width: 100%;
  accent-color: var(--accent-gold);
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.slider-val-wrap {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.slider-caption {
  color: var(--text-dim);
}
.slider-display {
  color: var(--accent-amber);
  font-weight: 700;
}

.simulator-result {
  background: rgba(8, 9, 13, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 2rem;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #22c55e;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.result-headline {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.result-detail {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.result-specs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}
.spec-title {
  color: var(--text-dim);
}
.spec-value {
  color: #cbd5e1;
  font-weight: 600;
}
.spec-value.highlight {
  color: var(--accent-gold);
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */

.faq-section {
  padding-block: 6rem;
  background: #090b11;
  border-bottom: 1px solid var(--border-subtle);
}

.faq-accordion-wrap {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.faq-item[open] {
  border-color: rgba(245, 158, 11, 0.4);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  user-select: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  color: var(--accent-gold);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   FORMULARIO DE AGENDAMIENTO & CONTACTO
   ========================================================================== */

.booking-section {
  padding-block: 7rem;
  background: var(--bg-primary);
}

.booking-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 3.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4rem;
  align-items: flex-start;
}

.booking-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.booking-lead {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.booking-badges-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.b-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}
.b-badge svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

.whatsapp-direct-box {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 8px;
  padding: 1.25rem;
}

.wa-intro {
  font-size: 0.85rem;
  color: #86efac;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.btn-whatsapp-direct {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #16a34a;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  transition: all var(--transition-fast);
}
.btn-whatsapp-direct:hover {
  background: #15803d;
  transform: translateY(-1px);
}

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

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-field.full-width {
  grid-column: span 2;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

.field-input, .field-select, .field-textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: var(--accent-gold);
}

.radio-pill-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.radio-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  color: #cbd5e1;
}
.radio-pill input[type="radio"] {
  accent-color: var(--accent-gold);
}

.btn-submit-booking {
  background: var(--accent-gold);
  color: #000;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.95rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
  margin-top: 0.5rem;
}
.btn-submit-booking:hover {
  background: var(--accent-amber);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.form-privacy-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
}

.form-feedback-msg {
  display: none;
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
}
.form-feedback-msg.is-success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #86efac;
}

/* ==========================================================================
   FOOTER INSTITUCIONAL OBLIGATORIO
   ========================================================================== */

.site-footer {
  background: #040508;
  border-top: 1px solid var(--border-subtle);
  padding-top: 5rem;
  padding-bottom: 2rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.brand-col .footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-corp-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: #fff;
}

/* Disclaimer SimCodec */
.footer-disclaimer-card {
  background: rgba(15, 18, 26, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 1.75rem;
  margin-bottom: 3rem;
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.disclaimer-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.disclaimer-body {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.disclaimer-body strong {
  color: #fff;
}

.btn-orig-footer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  transition: all var(--transition-fast);
}
.btn-orig-footer:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

.designer-text a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE DESIGN (1440x900 y Móvil 390x844)
   ========================================================================== */

@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }
  .timeline-hud {
    display: none;
  }
  .spectrogram-canvas-container {
    display: none;
  }
  .hero-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .chapter-grid, .chapter-grid.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .chapter-grid.reverse .chapter-narrative {
    order: 1;
  }
  .chapter-grid.reverse .chapter-visual-pane {
    order: 2;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-card.card-tall, .gallery-card.card-wide {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 16 / 10;
  }
  .simulator-interactive-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .booking-card {
    padding: 2rem 1.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-field.full-width {
    grid-column: span 1;
  }
  .radio-pill-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .demo-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .models-switcher {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }
  .hero-metrics-strip {
    grid-template-columns: 1fr;
  }
  .programs-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
