/* ============================================================
   RESPONSIVE — Media queries de mayor a menor breakpoint
   Las secciones en móvil usan min-height en lugar de height fija
   para evitar que el contenido se recorte en pantallas pequeñas
   ============================================================ */

/* ---- Tablet ancho (hasta 1024px) ---------------------- */
@media (max-width: 1024px) {

  .albums-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .album-cover { width: 140px; }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contacto-text { text-align: center; }
  .contacto-info { align-items: center; }
}

/* ---- Tablet (hasta 900px) ----------------------------- */
@media (max-width: 900px) {

  #nav-dots { right: 0.8rem; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
  .gallery-item:first-child { grid-column: 1 / 3; }
}

/* ---- Móvil (hasta 768px) ------------------------------ */
@media (max-width: 768px) {

  /* Contenedor más ancho para más contenido visible */
  .container { width: min(1180px, 96%); }

  /* Nav */
  .nav-links { display: none; }
  #nav-dots  { display: none; }

  /* Secciones: altura automática */
  #hero, #musica, #tienda, #fotos, #redes, #contacto {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  /* Hero: título más grande y protagonista */
  .hero-title    { font-size: clamp(3.2rem, 15vw, 5.5rem); }
  .hero-subtitle { font-size: 0.82rem; letter-spacing: 0.08em; }

  /* Orbe más grande y vivo en móvil */
  .hero-orb {
    width: 420px;
    height: 420px;
    top: 5%;
    right: -30%;
    background: radial-gradient(circle, rgba(212,120,154,0.18) 0%, transparent 70%);
    animation: orbFloat 6s ease-in-out infinite alternate, orbPulse 4s ease-in-out infinite;
  }

  /* Segundo orbe inferior */
  .hero-orb::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(160,100,180,0.12) 0%, transparent 70%);
    bottom: -60%;
    left: -40%;
    animation: orbFloat 9s ease-in-out infinite alternate-reverse;
  }

  /* Pulso suave en botones btn-rose en móvil */
  .btn-rose {
    animation: btnGlow 3s ease-in-out infinite;
  }

  /* Entrada escalonada en tarjetas de álbum y tienda */
  .album-card, .shop-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .album-card:active, .shop-card:active {
    transform: scale(0.97);
  }

  /* Cabeceras de sección: más compactas */
  .section-head  { margin-bottom: 1.4rem; }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  /* Música: 2 columnas, card visual simplificada */
  .musica-inner  { padding-bottom: 2.5rem; }
  .albums-grid   { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  /* Desactivar backdrop-filter costoso en móvil */
  .album-card    { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .musica-bg     { filter: blur(8px) brightness(0.14) saturate(0.5); }

  .album-card {
    flex-direction: column;
    border-radius: 14px;
  }
  .album-cover {
    width: 100%;
  }
  .album-info {
    padding: 0.75rem 0.85rem 0.9rem;
    gap: 0.3rem;
  }
  .album-year { display: none; }
  .album-title  { font-size: 0.92rem; line-height: 1.3; }
  .track-list {
    display: flex;
    gap: 0.2rem;
    margin-top: 0.15rem;
  }
  .track-item {
    align-items: flex-start;
    font-size: 0.68rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .track-item::before { margin-top: 0.45em; }

  /* Tienda: 2 columnas ajustadas en móvil */
  .shop-grid  { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .tienda-inner { padding-bottom: 2.5rem; }
  .shop-body  { padding: 0.9rem 1rem 1rem; gap: 0.25rem; }
  .shop-title { font-size: 0.95rem; }
  .shop-subtitle { font-size: 0.72rem; }
  .shop-price { font-size: 1rem; margin-bottom: 0.5rem; }
  .shop-img   { aspect-ratio: 1 / 1; }

  /* Galería: 2 columnas portrait */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    height: auto;
    gap: 0.5rem;
  }
  .gallery-item:first-child { grid-column: 1 / 3; }
  .gallery-item { aspect-ratio: 4 / 3; }

  /* Redes */
  .social-grid { gap: 0.7rem; }
  .social-card {
    min-width: 140px;
    padding: 1.3rem 1.2rem;
  }

  /* Contacto */
  .contacto-grid { gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }

  /* Lightbox */
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }

  /* Press kit */
  .pk-stats { grid-template-columns: repeat(2, 1fr); }
  .pk-photos { grid-template-columns: repeat(2, 1fr); }
  .pk-header { flex-direction: column; text-align: center; gap: 1rem; }
  .pk-grid   { grid-template-columns: 1fr; gap: 0; }
}

/* ---- Móvil pequeño (hasta 480px) ---------------------- */
@media (max-width: 480px) {

  .container { width: 100%; padding-inline: 1rem; }

  .hero-title    { font-size: clamp(2.8rem, 17vw, 4.5rem); }
  .hero-subtitle { display: none; } /* más limpio en pantallas muy pequeñas */
  .section-title { font-size: 1.55rem; }

  /* Tienda y música: mantener 2 columnas, solo achicar el espaciado */
  .shop-grid   { gap: 0.6rem; }
  .albums-grid { gap: 0.6rem; }

  /* Redes */
  .social-card { min-width: 100%; max-width: 300px; }

  .form-card { padding: 1.2rem 1rem; }
}

/* ---- Keyframes móvil ——————————————————————————————————— */
@keyframes orbPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.12); }
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(212,120,154,0); }
  50%       { box-shadow: 0 0 18px rgba(212,120,154,0.45); }
}

/* ---- Pantallas muy altas (tall screens) ——————————————— */
@media (min-height: 900px) {
  .albums-grid   { gap: 2rem; }
  .tienda-inner  { margin-top: 0; }
}

/* ---- Reducción de movimiento (accesibilidad) ——————————— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-bg { animation: none; }
}
