/* ==========================================================================
   EDUMYMUSIC S.A.S. · MODELO 2: INMERSIVO 3D / WEBGL
   Estilos de Diseño Escénico, HUD Telemetría, Web Audio y Responsive
   ========================================================================== */

:root {
  --bg-deep: #080811;
  --bg-surface: #0f101f;
  --bg-card: rgba(18, 20, 38, 0.78);
  --bg-glass: rgba(15, 17, 33, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(0, 240, 255, 0.35);

  --accent-cyan: #00f0ff;
  --accent-magenta: #ff007f;
  --accent-amber: #ffb703;
  --accent-purple: #9d4edd;
  --accent-green: #06d6a0;

  --text-main: #f0f3fa;
  --text-muted: #9aa4bf;
  --text-dim: #65708c;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', Consolas, Monaco, 'Liberation Mono', Menlo, monospace;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-neon-cyan: 0 0 20px rgba(0, 240, 255, 0.25);
  --shadow-neon-magenta: 0 0 20px rgba(255, 0, 127, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.5;
}

/* ==========================================================================
   1. BANNER OBLIGATORIO DE DEMOSTRACIÓN SIMCODEC & SELECTOR DE 4 MODELOS
   ========================================================================== */
.demo-bar {
  background: linear-gradient(90deg, #05050a 0%, #0d0f1e 50%, #05050a 100%);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--text-muted);
  font-size: 0.8125rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.demo-bar__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-bar__info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-bar__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--accent-cyan);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.demo-bar__text {
  color: #ccd5e6;
  font-size: 0.8125rem;
}

.demo-bar__orig-link {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.demo-bar__orig-link:hover {
  color: #ffffff;
}

.demo-bar__modelos {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.demo-bar__label {
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 4px;
}

.demo-bar__link {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.demo-bar__link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.demo-bar__link.active {
  background: rgba(0, 240, 255, 0.16);
  border-color: var(--accent-cyan);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* ==========================================================================
   2. NAVBAR
   ========================================================================== */
.navbar {
  background: rgba(8, 8, 17, 0.88);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 41px;
  z-index: 990;
}

.navbar__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar__logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3));
}

.navbar__titles {
  display: flex;
  flex-direction: column;
}

.navbar__name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: linear-gradient(90deg, #ffffff 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar__tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.navbar__link:hover,
.navbar__link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.navbar__link.active {
  color: var(--accent-cyan);
}

.navbar__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #0099ff 100%);
  color: #030814;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8438rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 14px rgba(0, 240, 255, 0.3);
}

.navbar__cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.5);
  filter: brightness(1.1);
}

/* ==========================================================================
   3. HERO PRINCIPAL & VISUALIZADOR 3D / WEBGL
   ========================================================================== */
.hero-3d {
  position: relative;
  width: 100%;
  height: 88vh;
  min-height: 640px;
  background: radial-gradient(ellipse at 50% 30%, #151633 0%, #080811 75%);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

#webgl-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  cursor: grab;
}

#webgl-canvas:active {
  cursor: grabbing;
}

/* Superposiciones HUD sobre el 3D */
.hero-3d__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.hero-3d__header {
  max-width: 620px;
  pointer-events: auto;
  background: rgba(8, 8, 17, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-cyan);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-3d__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.hero-3d__badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-dot 1.8s infinite;
}

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

.hero-3d__title {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.hero-3d__title span {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-3d__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
}

.hero-3d__hints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.hero-3d__hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Telemetría Flotante (Esquina Superior Derecha) */
.hud-telemetry {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  pointer-events: auto;
  background: rgba(12, 14, 28, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: 250px;
  font-family: var(--font-mono);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.hud-telemetry__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.hud-telemetry__title {
  font-size: 0.6875rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.hud-telemetry__fps {
  font-size: 0.75rem;
  color: var(--accent-green);
  font-weight: 700;
}

.hud-telemetry__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hud-telemetry__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.hud-telemetry__lbl {
  color: var(--text-muted);
}

.hud-telemetry__val {
  color: #fff;
  font-weight: 600;
}

.hud-vu-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 6px;
  display: flex;
}

.hud-vu-fill {
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-magenta) 80%, #ff3b30 100%);
  border-radius: var(--radius-full);
  transition: width 0.08s ease;
}

/* Panel de Controles de Cámara 3D (Inferior Izquierda) */
.hud-view-controls {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 10;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(12, 14, 28, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hud-view-controls__label {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hud-view-controls__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-hud-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-hud-view:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-hud-view.active {
  background: rgba(0, 240, 255, 0.16);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

/* Teclado / Sintetizador Interactivo en Pantalla (Inferior Centro/Derecha) */
.hud-synth-panel {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  pointer-events: auto;
  background: rgba(10, 12, 25, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  max-width: 440px;
  width: calc(100% - 48px);
}

.hud-synth__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.hud-synth__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hud-synth__switches {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-synth-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--accent-cyan);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-synth-toggle:hover {
  background: var(--accent-cyan);
  color: #05050a;
}

.btn-synth-toggle.muted {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-subtle);
  color: var(--text-dim);
}

/* Teclado de Piano Visual */
.hud-piano-keys {
  position: relative;
  display: flex;
  height: 64px;
  user-select: none;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.piano-key {
  position: relative;
  flex: 1;
  background: #ffffff;
  border-right: 1px solid #d0d7de;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  color: #444c56;
  font-family: var(--font-mono);
  transition: background-color 0.08s, transform 0.08s;
}

.piano-key:last-child {
  border-right: none;
}

.piano-key:active,
.piano-key.active {
  background: #00f0ff;
  color: #080811;
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.2);
}

.piano-key.black {
  position: absolute;
  width: 7%;
  height: 58%;
  background: #141724;
  border: 1px solid #000;
  border-top: none;
  border-radius: 0 0 3px 3px;
  z-index: 2;
  color: #9aa4bf;
  padding-bottom: 2px;
}

.piano-key.black:active,
.piano-key.black.active {
  background: #ff007f;
  color: #fff;
  box-shadow: 0 0 8px #ff007f;
}

/* Posicionamiento exacto de teclas negras (octava C4 a B4) */
.key-cs { left: 9.5%; }
.key-ds { left: 23.5%; }
.key-fs { left: 52%; }
.key-gs { left: 66%; }
.key-as { left: 80%; }

/* ==========================================================================
   4. MODAL / FICHA TÉCNICA DEL HOTSPOT 3D
   ========================================================================== */
.hotspot-card {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 25;
  background: rgba(14, 16, 32, 0.94);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  max-width: 520px;
  width: calc(100% - 32px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), var(--shadow-neon-cyan);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.hotspot-card.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.hotspot-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hotspot-card__tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.hotspot-card__close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  display: flex;
  transition: color var(--transition-fast);
}

.hotspot-card__close:hover {
  color: #fff;
}

.hotspot-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.hotspot-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.hotspot-card__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.hotspot-card__spec-item {
  display: flex;
  flex-direction: column;
}

.hotspot-card__spec-lbl {
  font-size: 0.6875rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.hotspot-card__spec-val {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff;
}

.hotspot-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-magenta) 100%);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.hotspot-card__cta:hover {
  filter: brightness(1.15);
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.4);
}

/* ==========================================================================
   5. SECCIÓN 4 PILARES DE LA METODOLOGÍA EDUMYMUSIC
   ========================================================================== */
.section {
  padding: 80px 24px;
  max-width: 1440px;
  margin: 0 auto;
}

.section--alt {
  background: linear-gradient(180deg, rgba(15, 17, 33, 0.5) 0%, var(--bg-deep) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px auto;
}

.section-head__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.section-head__title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

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

/* Grid de Pilares */
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.pilar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pilar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.pilar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), var(--shadow-neon-cyan);
}

.pilar-card:hover::before {
  opacity: 1;
}

.pilar-card__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.pilar-card__icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.pilar-card:nth-child(2) .pilar-card__icon-box {
  background: rgba(255, 0, 127, 0.1);
  border-color: rgba(255, 0, 127, 0.25);
  color: var(--accent-magenta);
}

.pilar-card:nth-child(3) .pilar-card__icon-box {
  background: rgba(255, 183, 3, 0.1);
  border-color: rgba(255, 183, 3, 0.25);
  color: var(--accent-amber);
}

.pilar-card:nth-child(4) .pilar-card__icon-box {
  background: rgba(157, 78, 221, 0.1);
  border-color: rgba(157, 78, 221, 0.25);
  color: var(--accent-purple);
}

.pilar-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.pilar-card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.pilar-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

.pilar-card__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: #ccd5e6;
}

.pilar-card__feature svg {
  flex-shrink: 0;
  color: var(--accent-cyan);
}

/* ==========================================================================
   6. PROGRAMAS DE FORMACIÓN MUSICAL (12 PROGRAMAS)
   ========================================================================== */
.programas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.programa-card {
  background: rgba(16, 18, 35, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.programa-card:hover {
  background: rgba(22, 25, 48, 0.85);
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

.programa-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.programa-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.programa-card__badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.programa-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.programa-card__desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

.programa-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

/* ==========================================================================
   7. SHOWCASE DE ALUMNOS EN ESCENA (CONCIERTOS REALES)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
  aspect-ratio: 4/3;
  group: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: saturate(1.1) brightness(0.9);
}

.gallery-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.2) brightness(1);
}

.gallery-card__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 14px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 10, 0.95) 100%);
  display: flex;
  flex-direction: column;
}

.gallery-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
}

.gallery-card__subtitle {
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

/* ==========================================================================
   8. METODOLOGÍA EN 4 PASOS (DE LA PRIMERA NOTA AL ESCENARIO)
   ========================================================================== */
.timeline-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-card__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-card__title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.step-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   9. PREGUNTAS FRECUENTES (FAQ ACORDEÓN)
   ========================================================================== */
.faq-grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: rgba(0, 240, 255, 0.35);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question svg {
  transition: transform var(--transition-fast);
  color: var(--accent-cyan);
}

.faq-item[open] .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 22px 24px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   10. AGENDADOR DE CLASE DEMO / CONTACTO
   ========================================================================== */
.cta-box {
  background: radial-gradient(ellipse at 50% 50%, rgba(18, 24, 52, 0.9) 0%, rgba(8, 8, 17, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.cta-box__info h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.cta-box__info p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.cta-box__details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-box__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: #d1d9e6;
}

.cta-box__detail svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.cta-form {
  background: rgba(10, 12, 24, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-input,
.form-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.875rem;
  color: #ffffff;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.form-select option {
  background: #0f101f;
  color: #ffffff;
}

.btn-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-magenta) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.3);
}

.btn-form-submit:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* ==========================================================================
   11. FOOTER REGLAMENTARIO DE DEMOSTRACIÓN SIMCODEC
   ========================================================================== */
.footer {
  background: #040408;
  border-top: 1px solid var(--border-subtle);
  padding: 48px 24px 32px 24px;
}

.footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer__brand-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__brand-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.footer__brand-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.6;
}

.footer__col-title {
  font-size: 0.8125rem;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer__bottom {
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer__disclaimer {
  max-width: 780px;
  line-height: 1.5;
}

.footer__disclaimer a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

/* ==========================================================================
   12. RESPONSIVE DESIGN (1440px Desktop & 390px Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-3d {
    height: 92vh;
  }

  .hud-telemetry {
    top: auto;
    bottom: 24px;
    right: 24px;
    width: 220px;
  }

  .hud-synth-panel {
    display: none; /* En tablet/móvil se simplifica para no colapsar la pantalla */
  }

  .cta-box {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar__nav {
    display: none;
  }

  .hero-3d {
    height: 85vh;
  }

  .hero-3d__header {
    padding: 14px 18px;
  }

  .hero-3d__title {
    font-size: 1.5rem;
  }

  .hud-telemetry {
    display: none;
  }

  .hud-view-controls {
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: auto;
  }

  .demo-bar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 56px 16px;
  }

  .section-head__title {
    font-size: 1.75rem;
  }

  .cta-box {
    padding: 28px 20px;
  }
}
