@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  font-family: 'Poppins', sans-serif;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  /* Importante para scroll suave en móviles */
  -webkit-overflow-scrolling: touch; 
}

#wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#stage {
  position: relative;
  width: 90vw;
  height: 90vh;
  max-width: 1200px;
  max-height: 800px;
  background: transparent;
  border: none;
  overflow: hidden;
}

#three-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.beat, #panel {
  opacity: 0;
  pointer-events: none;
}

/* ===== 2000s MINIMALIST PAGE STYLE ===== */
.container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.frame {
  background: transparent;
  border: none;
  width: 85%;
  max-width: 900px;
  height: 85%;
  overflow-y: auto;
  padding: 0;
  box-shadow: none;
  /* Scrollbar oculta para limpieza visual (opcional) */
  scrollbar-width: none; 
}
.frame::-webkit-scrollbar { 
  display: none; 
}

.frame > div {
  padding: 40px 50px;
}

/* ===== About Page ===== */
.about-sections {
  padding: 40px 50px;
}

.about-sections h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px 0;
  border-bottom: none;
  padding-bottom: 0;
  letter-spacing: 0;
}

.about-sections h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 20px 0 12px 0;
  text-transform: none;
  letter-spacing: 0;
}

.about-sections p {
  margin: 0 0 16px 0;
  line-height: 1.6;
  font-size: 14px;
  color: #555;
}

.about-sections ul {
  margin: 12px 0 0 0;
  padding: 0;
  list-style: none;
}

.about-sections li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
  margin-left: 16px;
}

.about-sections li:before {
  content: "• ";
  color: #333;
  margin-right: 8px;
}

/* ===== Contact Page ===== */
.contact-section {
  padding: 40px 50px;
}

.contact-section h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px 0;
  border-bottom: none;
  padding-bottom: 0;
  letter-spacing: 0;
}

.contact-intro {
  color: #555;
  font-size: 14px;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: none;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
  cursor: pointer;
}

.contact-link:hover {
  background: transparent;
  border-color: transparent;
  opacity: 0.7;
}

.contact-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #333;
}

.contact-value {
  display: block;
  font-size: 14px;
  color: #555;
  margin-top: 2px;
  word-break: break-all; /* Evita que emails largos rompan el layout */
}

.contact-footer {
  color: #888;
  font-size: 13px;
  margin: 0;
  font-style: normal;
}

/* ===== Releases Page ===== */
.releases-section {
  padding: 40px 50px;
}

.releases-section h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px 0;
  border-bottom: none;
  padding-bottom: 0;
  letter-spacing: 0;
}

.releases-intro {
  color: #555;
  font-size: 14px;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.youtube-container {
  margin-bottom: 40px;
  border: none;
  background: transparent;
  padding: 0;
  width: 100%;
}

.youtube-container iframe {
  display: block;
  width: 100%;
  height: 400px;
  /* Asegura ratio correcto en pantallas raras */
  aspect-ratio: 16 / 9; 
}

.releases-section .archive h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 24px 0 12px 0;
  text-transform: none;
  letter-spacing: 0;
}

.releases-section .archive ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.releases-section .archive li {
  color: #555;
  font-size: 14px;
  padding: 6px 0;
  margin-left: 16px;
}

.releases-section .archive li:before {
  content: "• ";
  color: #333;
  margin-right: 8px;
}

/* ===== Beats Page ===== */
.beats-section {
  padding: 40px 50px;
}

.beats-section h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px 0;
  border-bottom: none;
  padding-bottom: 0;
  letter-spacing: 0;
}

.beats-intro {
  color: #555;
  font-size: 14px;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

#beats-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 16px 0;
}

.beat-item {
  transition: all 0.2s ease;
}

.beat-item:hover {
  transform: translateY(-4px);
}

/* ===== Mini House Widget (all pages) ===== */
#mini-house-canvas {
  border: none !important;
  background: transparent !important;
}

/* ========================================= */
/* ===== MOBILE & TABLET OPTIMIZATIONS ===== */
/* ========================================= */

/* Tablet (hasta 900px) */
@media (max-width: 900px) {
  #stage {
    width: 95vw;
    height: 95vh;
  }

  .frame {
    width: 100%; /* Aprovechar todo el stage */
    height: 100%;
  }

  /* Reducir padding interno */
  .frame > div, 
  .about-sections,
  .contact-section,
  .releases-section,
  .beats-section {
    padding: 30px 30px; 
  }

  .youtube-container iframe {
    height: auto; /* Dejar que aspect-ratio controle la altura */
  }
}

/* Móvil estricto (hasta 600px) */
@media (max-width: 600px) {
  
  /* 1. Maximizar espacio en pantalla pequeña */
  #stage {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  /* 2. Reducir drásticamente padding para ganar espacio */
  .frame > div, 
  .about-sections,
  .contact-section,
  .releases-section,
  .beats-section {
    padding: 25px 20px; /* Mucho más ajustado a los bordes */
  }

  /* 3. Títulos más compactos */
  h1 {
    font-size: 20px !important;
    margin-bottom: 16px !important;
  }

  /* 4. Beats Gallery: Centrar o hacer responsive */
  #beats-gallery {
    justify-content: center; /* Centrar items si sobran márgenes */
    gap: 15px;
  }
  
  /* Forzar tamaño responsive para los items de beats si es necesario */
  .beat-item {
    width: 140px !important; /* Un poco más pequeños para caber 2 por fila */
    height: auto !important;
  }
  
  .beat-item canvas {
    width: 140px !important;
    height: 140px !important;
  }

  /* 5. Contactos: Mejorar área táctil */
  .contact-link {
    padding: 10px 0; /* Más fácil de pulsar con el dedo */
  }
  
  .contact-icon {
    font-size: 24px; /* Icono un poco más pequeño */
  }

  /* 6. Listas: Menos margen izquierdo */
  .about-sections li, 
  .releases-section .archive li {
    margin-left: 8px;
  }
}