/**
 * EndCosmic.com v1 — Estilos de la Verdadera Realidad
 * 
 * Estética de Trascendencia Ontológica:
 * - Oro Platino (#f8fafc / #e2e8f0)
 * - Oro Alquímico (#d4af37 / #f59e0b)
 * - Vacío Radiante (#030712 / #0b0f19)
 * - Resonancia Cuántica (#38bdf8 / #a855f7)
 * 
 * @author Lluis Vives Kure (Vivi)
 */

:root {
  --oro-puro: #d4af37;
  --oro-brillante: #fbbf24;
  --oro-platino: #f8fafc;
  --platino-suave: #cbd5e1;
  --vacio-obsidiana: #030712;
  --vacio-profundo: #090d16;
  --vacio-tarjeta: rgba(11, 15, 25, 0.75);
  --azul-cuantico: #38bdf8;
  --violeta-armonico: #a855f7;
  --borde-dorado: rgba(212, 175, 55, 0.35);
  --borde-platino: rgba(248, 250, 252, 0.25);
  --resplandor-aureo: 0 0 35px rgba(212, 175, 55, 0.25);
  --resplandor-cuantico: 0 0 45px rgba(56, 189, 248, 0.25);
  --font-serif: 'Cinzel', serif;
  --font-garamond: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--vacio-obsidiana);
  color: var(--platino-suave);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Fondo Dinámico de la Verdadera Realidad */
.true-reality-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background: 
    radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(56, 189, 248, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #030712 0%, #060a12 50%, #030712 100%);
  pointer-events: none;
}

/* Navegación Propia de EndCosmic */
.cosmic-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--borde-dorado);
  position: sticky;
  top: 44px; /* Debajo de la Trinity Bar */
  z-index: 99;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-badge svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}

.brand-text h1 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 4px;
  color: var(--oro-platino);
  font-weight: 800;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--oro-puro);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--platino-suave);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.25s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--oro-brillante);
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

.btn-audio-phi {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--oro-puro);
  color: var(--oro-brillante);
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-audio-phi:hover {
  background: rgba(212, 175, 55, 0.25);
  box-shadow: var(--resplandor-aureo);
  transform: translateY(-1px);
}

/* HERO SECTION */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  overflow: hidden;
}

.canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.85;
}

#sacred-geometry-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  text-align: center;
  margin: 0 auto;
  padding: 2.5rem;
  background: radial-gradient(circle, rgba(3, 7, 18, 0.88) 0%, rgba(3, 7, 18, 0.65) 100%);
  backdrop-filter: blur(8px);
  border: 1px solid var(--borde-dorado);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--oro-puro);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.35rem 1.1rem;
  border-radius: 9999px;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--oro-brillante);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--oro-brillante);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  font-weight: 900;
  letter-spacing: 8px;
  color: var(--oro-platino);
  text-shadow: 0 0 30px rgba(248, 250, 252, 0.4), 0 0 60px rgba(212, 175, 55, 0.25);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-quote {
  font-family: var(--font-garamond);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 2rem;
  padding: 0 1rem;
  border-left: 2px solid var(--oro-puro);
  border-right: 2px solid var(--oro-puro);
}

.hero-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 2px;
  color: var(--oro-puro);
  margin-top: 0.8rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--borde-platino);
  border-radius: 12px;
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: transform 0.2s;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--oro-puro);
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--oro-platino);
}

.metric-lbl {
  font-size: 0.7rem;
  color: var(--platino-suave);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-primary-gold {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #030712;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
  transition: all 0.3s ease;
}

.btn-primary-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.55);
}

.btn-secondary-white {
  background: rgba(248, 250, 252, 0.08);
  color: var(--oro-platino);
  border: 1px solid var(--borde-platino);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary-white:hover {
  background: rgba(248, 250, 252, 0.18);
  border-color: var(--oro-platino);
}

/* SECCIONES COMUNES */
section {
  padding: 5rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--oro-puro);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.8rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--oro-platino);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.7;
}

/* TRINITY CARDS GRID */
.trinity-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.trinity-card {
  background: var(--vacio-tarjeta);
  border: 1px solid var(--borde-platino);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.trinity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.card-endcosmos:hover {
  border-color: #eab308;
  box-shadow: 0 10px 40px rgba(234, 179, 8, 0.2);
}

.card-llunaris:hover {
  border-color: var(--azul-cuantico);
  box-shadow: 0 10px 40px rgba(56, 189, 248, 0.2);
}

.card-endcosmic.active-card {
  border-color: var(--oro-puro);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, rgba(11, 15, 25, 0.85) 100%);
  box-shadow: var(--resplandor-aureo);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.stage-badge {
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  font-family: var(--font-mono);
  color: var(--platino-suave);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.freq-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--oro-puro);
}

.trinity-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--oro-platino);
  margin-bottom: 1rem;
}

.card-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.card-features {
  list-style: none;
  margin-bottom: 2rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.card-features li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-card-link {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--borde-platino);
  border-radius: 8px;
  color: var(--oro-platino);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  transition: all 0.25s ease;
}

.btn-card-link:hover {
  background: var(--oro-puro);
  color: #030712;
  font-weight: 700;
}

.status-current {
  display: block;
  text-align: center;
  padding: 0.8rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--oro-puro);
  border-radius: 8px;
  color: var(--oro-brillante);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
}

/* GEOMETRÍA SAGRADA SECTION */
.geometria-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.geo-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--borde-platino);
  color: var(--platino-suave);
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
}

.geo-btn.active, .geo-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--oro-puro);
  color: var(--oro-brillante);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.interactive-geo-display {
  position: relative;
  width: 100%;
  height: 500px;
  background: radial-gradient(circle at center, #0a0f1d 0%, #030712 100%);
  border: 1px solid var(--borde-dorado);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

#interactive-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.geo-overlay-info {
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  justify-content: space-between;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(8px);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--borde-platino);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--platino-suave);
}

/* SINTETIZADOR DE RESONANCIA */
.formula-pill {
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--oro-puro);
  color: var(--oro-brillante);
  padding: 0.8rem 1.8rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.synth-console {
  background: var(--vacio-tarjeta);
  border: 1px solid var(--borde-dorado);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.oscilloscope-wrapper {
  background: #02040a;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.9);
}

#osc-canvas {
  width: 100%;
  height: 180px;
  display: block;
}

.synth-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.control-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.control-card label {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #cbd5e1;
}

.control-card input[type="range"] {
  accent-color: var(--oro-puro);
  cursor: pointer;
}

.param-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--oro-brillante);
}

.synth-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* 11 PLANOS DE LA M-TEORÍA */
.planos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.plano-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.plano-item:hover {
  border-color: var(--oro-puro);
  transform: translateY(-3px);
  background: rgba(212, 175, 55, 0.05);
}

.plano-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--oro-puro);
  margin-bottom: 0.4rem;
  display: block;
}

.plano-item h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--oro-platino);
  margin-bottom: 0.5rem;
}

.plano-sig {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748b;
  display: block;
  margin-bottom: 0.4rem;
}

.plano-freq {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--azul-cuantico);
}

/* AXIOMA DE VIVI */
.section-axioma {
  max-width: 900px;
}

.axioma-card {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.12) 0%, rgba(3, 7, 18, 0.9) 100%);
  border: 2px solid var(--oro-puro);
  border-radius: 20px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: var(--resplandor-aureo);
}

.axioma-symbol {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.axioma-card h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--oro-platino);
  letter-spacing: 3px;
  margin-bottom: 1.2rem;
}

.axioma-lead {
  font-family: var(--font-garamond);
  font-size: 1.35rem;
  font-style: italic;
  color: #f1f5f9;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.possibility-tester {
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

.possibility-tester label {
  display: block;
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 0.8rem;
}

.tester-input-row {
  display: flex;
  gap: 0.8rem;
}

.tester-input-row input {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--borde-platino);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.tester-input-row input:focus {
  outline: none;
  border-color: var(--oro-puro);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.possibility-box {
  margin-top: 1.5rem;
  background: rgba(3, 7, 18, 0.95);
  border: 1px solid var(--oro-puro);
  border-radius: 10px;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* FOOTER */
.true-reality-footer {
  border-top: 1px solid var(--borde-dorado);
  background: #02050b;
  padding: 4rem 3rem 2rem;
  margin-top: 5rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--oro-platino);
  letter-spacing: 4px;
  margin-bottom: 0.8rem;
}

.footer-trinity-links h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--oro-puro);
  margin-bottom: 1rem;
  letter-spacing: 1.5px;
}

.footer-trinity-links ul {
  list-style: none;
}

.footer-trinity-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 2;
  transition: color 0.2s;
}

.footer-trinity-links a:hover {
  color: var(--oro-brillante);
}

.footer-credo p {
  font-family: var(--font-garamond);
  font-style: italic;
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: #64748b;
  display: block;
}

@media (max-width: 900px) {
  .cosmic-nav {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .trinity-cards-grid {
    grid-template-columns: 1fr;
  }
  .synth-controls {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ADAPTABILIDAD UNIVERSAL DE RESOLUCIÓN Y TIPOGRAFÍA FLUIDA
   Tiers: 4K UHD, Desktop FHD, Laptop, Tablet, Mobile y Mobile Compact
   ========================================================================== */

.hero-title {
  font-size: clamp(2rem, 5vw + 1rem, 4.2rem);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw + 0.5rem, 1.4rem);
}

@media (min-width: 2560px) {
  .cosmic-container {
    max-width: 2100px;
  }
  .hero-title {
    font-size: clamp(3.5rem, 4vw + 2rem, 5.5rem);
  }
}

@media (max-width: 1200px) {
  .cosmic-container {
    max-width: 1040px;
    padding: 0 1.5rem;
  }
}

@media (max-width: 960px) {
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }
  .hyper-display {
    height: 380px;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  .cosmic-nav {
    padding: 0.5rem 0.8rem;
  }
}

/* ==========================================================================
   EL MUNDO LEGO DE ENDCOSMOS · SHOCK DOPAMÍNICO
   ========================================================================== */

.section-lego {
  padding: 6rem 2rem;
  background: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.08) 0%, rgba(2, 4, 10, 0.98) 100%);
  border-top: 2px solid rgba(245, 158, 11, 0.3);
  border-bottom: 2px solid rgba(245, 158, 11, 0.3);
  position: relative;
  overflow: hidden;
}

.lego-tag {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid #f59e0b;
  color: #fef08a;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.lego-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  background: linear-gradient(135deg, #facc15 0%, #fb7185 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(250, 204, 21, 0.4);
  letter-spacing: 2px;
  margin: 0.5rem 0 1rem;
}

.lego-sub {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* ── MEDIDOR DE CHOQUE DOPAMÍNICO ── */
.dopamine-meter-container {
  max-width: 750px;
  margin: 0 auto 2.5rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 14px;
  padding: 1.25rem 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.dopamine-meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.dopamine-label {
  color: #facc15;
  font-weight: 800;
  letter-spacing: 1px;
}

.dopamine-score {
  color: #38bdf8;
  font-weight: 700;
}

.dopamine-bar-track {
  height: 14px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.dopamine-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #facc15 0%, #ec4899 50%, #06b6d4 100%);
  border-radius: 999px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.8);
}

.dopamine-overload-banner {
  margin-top: 1rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(250, 204, 21, 0.3));
  border: 1px solid #facc15;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  text-align: center;
  animation: pulse 1s infinite alternate;
}

/* ── BOTONES DE BIOMAS LEGO ── */
.lego-biome-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.lego-biome-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lego-biome-btn:hover {
  transform: translateY(-2px);
  border-color: #facc15;
  color: #fff;
}

.lego-biome-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(236, 72, 153, 0.2));
  border-color: #facc15;
  color: #fef08a;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.lego-biome-btn.is-clear {
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.lego-biome-btn.is-clear:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* ── CANVAS DEL MUNDO LEGO ── */
.lego-canvas-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #0d1527 0%, #030611 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
}

#lego-world-canvas {
  width: 100%;
  height: 480px;
  display: block;
  cursor: crosshair;
}

.lego-canvas-hint {
  position: absolute;
  bottom: 1rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(10px);
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #facc15;
  pointer-events: none;
}

