/* ==========================================================================
   EXPERIENCIA ESPECTACULAR: MÚSICA & VINILOS · DISCOGRAFÍA 3D
   ========================================================================== */

/* Fullscreen modal overrides para la Sala de Música */
.room-modal-backdrop.room-modal-backdrop--music {
  padding: 0;
  background: #060403;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 950;
  transition: opacity 0.5s ease;
}

.room-modal-card.room-modal-card--music {
  width: 100vw;
  width: 100dvw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  border-radius: 0;
  border: none;
  background: #060403;
  box-shadow: none;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 0;
}

.room-modal-card.room-modal-card--music::-webkit-scrollbar {
  width: 6px;
}
.room-modal-card.room-modal-card--music::-webkit-scrollbar-thumb {
  background: rgba(224, 75, 75, 0.4);
  border-radius: 4px;
}

/* Contenedor principal de la experiencia discográfica */
.disco-experience {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #060403;
  color: var(--cream);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Topbar fija estilo galería cósmica */
.disco-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(6, 4, 3, 0.96) 0%, rgba(6, 4, 3, 0.7) 70%, transparent 100%);
  border-bottom: 1px solid rgba(224, 75, 75, 0.2);
  z-index: 100;
}

.disco-topbar-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.disco-topbar-eyebrow-mini {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: #ff8e8e;
  text-transform: uppercase;
  line-height: 1.1;
}
.disco-topbar-title {
  font-family: 'Anton', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: var(--cream);
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(224, 75, 75, 0.4);
}

.disco-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(224, 75, 75, 0.35);
  background: rgba(14, 10, 8, 0.8);
  color: var(--cream);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, text-shadow 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .disco-close-btn:hover {
    background: #e04b4b;
    color: #fff;
    transform: rotate(90deg) scale(1.05);
  }
}

/* Escenario central de los discos 3D */
.disco-stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 85px 2rem 3.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: 
    radial-gradient(ellipse at 50% 20%, rgba(35, 18, 14, 0.4) 0%, rgba(6, 4, 3, 0.92) 65%, #060403 100%),
    linear-gradient(to bottom, rgba(6, 4, 3, 0.3) 0%, rgba(6, 4, 3, 0.85) 100%);
}

/* Indicador lateral con barra roja estilo referencia */
.disco-sidebar-indicator {
  position: absolute;
  top: 90px;
  left: 3rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  z-index: 10;
}

.disco-red-line {
  width: 2.5px;
  height: 48px;
  background: #e04b4b;
  box-shadow: 0 0 14px rgba(224, 75, 75, 0.8);
  border-radius: 2px;
}

.disco-indicator-label {
  font-family: 'Anton', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  color: #f5ede2;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Contenedor de los objetos 3D flotantes */
.disco-objects-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 1.5rem auto 2.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  perspective: 1200px;
  -webkit-perspective: 1200px;
}

/* Tarjeta individual de objeto 3D */
.disco-obj-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  contain: layout style;
}

/* Marco de selección estilo referencia */
.disco-obj-card .disco-select-frame {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  pointer-events: none;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .disco-obj-card:hover .disco-select-frame {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.05);
  }
}

.disco-obj-card.is-active .disco-select-frame {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.12), inset 0 0 15px rgba(255, 255, 255, 0.04);
}

/* Wrapper flotante con animación de levitación continua y aceleración GPU */
.disco-float-wrap {
  position: relative;
  width: clamp(160px, 19vw, 225px);
  height: clamp(160px, 19vw, 225px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatLevitate 5s ease-in-out infinite alternate;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.disco-obj-card:nth-child(1) .disco-float-wrap { animation-delay: 0s; }
.disco-obj-card:nth-child(2) .disco-float-wrap { animation-delay: 1.4s; }
.disco-obj-card:nth-child(3) .disco-float-wrap { animation-delay: 2.8s; }
.disco-obj-card:nth-child(4) .disco-float-wrap { animation-delay: 4.2s; }

@keyframes floatLevitate {
  0% { transform: translateY(0px) rotateX(2deg) rotateY(-2deg); }
  50% { transform: translateY(-12px) rotateX(-2deg) rotateY(3deg); }
  100% { transform: translateY(3px) rotateX(1deg) rotateY(-1deg); }
}

/* Capa interior de tilt 3D desacoplada del float para fluidez total */
.disco-tilt-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.16s cubic-bezier(0.2, 0, 0.2, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Sombra proyectada en el suelo virtual */
.disco-ground-shadow {
  width: 70%;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 0%, transparent 75%);
  border-radius: 50%;
  margin-top: 0.5rem;
  animation: shadowBreathe 5s ease-in-out infinite alternate;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
}

.disco-obj-card:nth-child(1) .disco-ground-shadow { animation-delay: 0s; }
.disco-obj-card:nth-child(2) .disco-ground-shadow { animation-delay: 1.4s; }
.disco-obj-card:nth-child(3) .disco-ground-shadow { animation-delay: 2.8s; }
.disco-obj-card:nth-child(4) .disco-ground-shadow { animation-delay: 4.2s; }

@keyframes shadowBreathe {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(0.82); opacity: 0.35; }
  100% { transform: scale(1.05); opacity: 0.75; }
}

/* Imagen y visual del objeto 3D con composición por hardware */
.disco-obj-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .disco-obj-card:hover .disco-obj-img {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.2);
  }
}
.disco-obj-card.is-active .disco-obj-img {
  box-shadow: 0 20px 42px rgba(224, 75, 75, 0.35), 0 0 0 1px rgba(224, 75, 75, 0.6);
}

/* Pausar animaciones en GPU cuando la sala no está activa */
.disco-experience.is-paused .disco-float-wrap,
.disco-experience.is-paused .disco-ground-shadow {
  animation-play-state: paused;
}

/* Títulos y años inferiores */
.disco-obj-meta {
  margin-top: 1rem;
  text-align: center;
}

.disco-obj-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: 0.08em;
  color: var(--cream);
  line-height: 1.15;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.disco-obj-card:hover .disco-obj-title,
.disco-obj-card.is-active .disco-obj-title {
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
}

.disco-obj-year {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--stone);
  letter-spacing: 0.12em;
}

/* Indicador de deslizamiento para móvil (oculto en desktop) */
.disco-swipe-indicator {
  display: none;
}

/* ==========================================================================
   SECCIÓN DE CANCIONES (TRACKLIST)
   ========================================================================== */
.disco-tracks-section {
  width: 100%;
  max-width: 860px;
  margin: 1rem auto 0;
  background: rgba(12, 8, 6, 0.88);
  border: 1px solid rgba(224, 75, 75, 0.25);
  border-radius: 14px;
  padding: 1.6rem 2rem;
  box-sizing: border-box;
  contain: content;
}

.disco-tracks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
}

.disco-tracks-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.disco-tracks-album-name {
  font-family: 'Anton', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--cream);
}

.disco-tracks-album-year {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #e04b4b;
}

.disco-tracks-hint {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--stone);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Lista de canciones */
.disco-tracks-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* Fila de canción con iconos de plataformas al lado */
.disco-track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.15rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  gap: 1rem;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, text-shadow 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .disco-track-row:hover {
    background: rgba(224, 75, 75, 0.08);
    border-color: rgba(224, 75, 75, 0.4);
    transform: translateX(4px);
  }
}

.disco-track-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 140px;
}

.disco-track-num {
  font-family: 'Anton', sans-serif;
  font-size: 0.92rem;
  color: #e04b4b;
  min-width: 22px;
}

.disco-track-name {
  font-family: 'Anton', sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.05em;
  color: var(--cream);
}

/* Contenedor de iconos de plataformas en la misma barra */
.disco-track-platforms {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.disco-track-time {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--stone);
  font-weight: 500;
  min-width: 35px;
  text-align: right;
}

/* --- BOTONES DE PLATAFORMAS UIVERSE COMPARTIDOS (css/buttons-uiverse.css) --- */

   RESPONSIVIDAD MÚSICA & VINILOS
   ========================================================================== */
@media (max-width: 1024px) {
  .disco-sidebar-indicator {
    left: 1.5rem;
    top: 75px;
  }
  .disco-objects-wrap {
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  /* Topbar fija en móvil */
  .disco-topbar {
    height: 56px;
    padding: 0 0.85rem;
  }
  .disco-topbar-center {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 96px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .disco-topbar-eyebrow-mini {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
  }
  .disco-topbar-title {
    font-size: clamp(0.72rem, 2.7vw, 0.84rem);
    letter-spacing: 0.08em;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    line-height: 1.2;
  }
  .disco-close-btn {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  /* Escenario en móvil */
  .disco-stage {
    padding: 68px 0.85rem 2.8rem;
  }

  .disco-sidebar-indicator {
    position: relative;
    top: auto;
    left: auto;
    margin: 0.2rem auto 0.9rem;
    font-size: 0.76rem;
    justify-content: center;
  }

  /* Carrusel horizontal táctil suave para los vinilos */
  .disco-objects-wrap {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1rem;
    padding: 0.4rem 1rem 1.1rem;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
  }
  .disco-objects-wrap::-webkit-scrollbar {
    display: none;
  }
  .disco-obj-card {
    flex: 0 0 192px;
    scroll-snap-align: center;
    padding: 0.7rem 0.55rem;
  }
  .disco-float-wrap {
    width: 148px;
    height: 148px;
  }
  .disco-obj-title {
    font-size: 1.05rem;
  }
  .disco-obj-year {
    font-size: 0.72rem;
  }

  /* Indicador sutil de deslizamiento en móvil */
  .disco-swipe-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin: 0.2rem auto 0.75rem;
    pointer-events: none;
    user-select: none;
    width: 100%;
  }

  .disco-swipe-track {
    width: 76px;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
  }

  .disco-swipe-bar {
    width: 22px;
    height: 100%;
    background: linear-gradient(90deg, #e04b4b, #e0955c);
    border-radius: 999px;
    position: absolute;
    left: 0;
    top: 0;
    box-shadow: 0 0 8px rgba(224, 75, 75, 0.5);
    transition: transform 0.08s ease-out;
  }

  .disco-swipe-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 237, 226, 0.55);
    animation: discoSwipePulse 2.8s ease-in-out infinite;
  }

  .disco-swipe-label svg {
    opacity: 0.6;
    stroke: currentColor;
  }

  @keyframes discoSwipePulse {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 0.95; transform: translateY(-1px); }
  }

  /* Cabecera y sección de canciones en móvil */
  .disco-tracks-section {
    padding: 1.15rem 0.85rem;
    margin-top: 0.8rem;
    border-radius: 12px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .disco-tracks-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.85rem;
  }
  .disco-tracks-album-name {
    font-size: 1.22rem;
  }
  .disco-tracks-album-year {
    font-size: 0.95rem;
  }
  .disco-tracks-hint {
    font-size: 0.68rem;
  }

  /* Fila de canción adaptativa en 2 filas limpias para móvil */
  .disco-track-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 0.6rem;
    padding: 0.75rem 0.85rem;
    align-items: center;
  }
  .disco-track-left {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }
  .disco-track-num {
    font-size: 0.85rem;
    min-width: 18px;
  }
  .disco-track-name {
    font-size: 0.94rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .disco-track-time {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    font-size: 0.76rem;
    color: var(--stone);
    align-self: center;
    text-align: right;
  }
  .disco-track-platforms {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.55rem;
    margin-left: 0;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
  }
  .uiv-btn {
    width: 35px;
    height: 35px;
  }
  .uiv-icon {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .disco-topbar-title {
    max-width: 62vw;
    font-size: 0.74rem;
  }
  .disco-obj-card {
    flex: 0 0 175px;
  }
  .disco-float-wrap {
    width: 135px;
    height: 135px;
  }
}

