/* ===================================================
ROSALEZ MUSIC WEB - ESTILOS COMPLETOS (Bootstrap 5)
===================================================
*/

/* ------------------------------------------- */
/* 1. Variables y Estilos Globales             */
/* ------------------------------------------- */

/* Importar fuente Montserrat de Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
/* Importar fuente Playfair Display para el homenaje a Molina */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

:root {
  --rosalez-primary: #dc3545; /* Color de acento: Rojo Vibrante (Danger) */
  --rosalez-dark: #020204; /* Fondo oscuro principal (casi negro) */
  --rosalez-light: #f8f9fa; /* Blanco roto para secciones claras */
  --accent-color: #e63946; /* Un rojo similar para sombras/destacados */

  /* VARIABLES ESPECÍFICAS PARA HOMENAJE A ANTONIO MOLINA */
  --molina-gold: #d4af37; /* Dorado Clásico para contraste dramático */
  --molina-font-serif: "Playfair Display", serif;
}

html,
body {
  overflow-x: hidden !important;
  box-sizing: border-box;
  max-width: 100%;
}
* {
  box-sizing: inherit;
}

body {
  /* Color de fondo base muy claro */
  background-color: #fdf4f8; /* Un rosa pastel muy suave */
  font-family: "Montserrat", sans-serif; /* Fuente principal */

  /* Degradado sutil para dar profundidad */
  background-image: radial-gradient(
    circle at top left,
    rgba(255, 192, 203, 0.2),
    /* Rosa claro con baja opacidad */ rgba(253, 244, 248, 1) 50%
      /* Fondo base */
  );

  background-attachment: fixed; /* Mantiene el fondo fijo al hacer scroll */
}

/* Aplicación a secciones claras para mantener la consistencia */
.bg-light,
#videos,
#listado-espectaculos {
  background-color: rgba(
    253,
    244,
    248,
    0.95
  ) !important; /* Mantiene el fondo casi blanco */
  background-image: none !important; /* Desactiva el patrón de imagen si se hereda */
}

/* ------------------------------------------- */
/* 2. Overrides de Bootstrap y Componentes     */
/* ------------------------------------------- */

.btn-danger {
  background-color: var(--rosalez-primary) !important;
  border-color: var(--rosalez-primary) !important;
  color: white !important;
}
.text-danger {
  color: var(--rosalez-primary) !important;
}
.btn-outline-danger {
  color: var(--rosalez-primary) !important;
  border-color: var(--rosalez-primary) !important;
}

/* Botón con efecto resplandor limpio */
.btn-shine {
  position: relative;
  overflow: hidden;
  /* Mantenemos la transición para otros efectos si decides añadirlos */
  transition: transform 0.2s ease, box-shadow 0.3s ease; 
}

.btn-shine::before {
  content: "";
  position: absolute;
  top: 0;
  /* Inicialmente fuera de vista */
  left: -150%; 
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  transform: skewX(-25deg);
  
  /* APLICACIÓN DE LA ANIMACIÓN INFINITA */
  animation: shine 3s infinite linear; 
}

/* Eliminamos la regla :hover::before ya que no se necesita */

@keyframes shine {
  0% {
    /* Mover el brillo desde mucho más a la izquierda para un comienzo suave */
    left: -150%; 
  }
  100% {
    /* Mover el brillo completamente a la derecha */
    left: 200%; 
  }
}

/* Encabezados y títulos */
h2 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.text-gray {
  color: #616a73;
}

/* ------------------------------------------- */
/* 3. Cabecera y Navegación (Header)         */
/* ------------------------------------------- */

.navbar-dark {
  background-color: rgba(0, 0, 0, 0.95) !important; /* Más opaco */
  backdrop-filter: blur(10px); /* Más blur para look premium */
  padding-top: 1rem; /* Aumentar padding vertical */
  padding-bottom: 1rem;
  box-shadow: 0 2px 15px rgba(255, 0, 0, 0.3); /* Sombra suave con tinte rojo */
}

.navbar-brand {
  color: white !important;
  font-weight: 900;
  transition: color 0.3s;
}
.navbar-brand:hover {
  color: var(--rosalez-primary) !important;
}

/* Estilos de Enlaces de Navegación */
.nav-link {
  color: white !important;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.3s, background-color 0.3s;
  position: relative;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  margin: 0 0.5rem; /* Margen entre enlaces */
}

.nav-link:hover,
.nav-link.active {
  color: var(--rosalez-primary) !important;
  transform: none; /* Eliminar el levantamiento */
}

/* Animación de Subrayado (Línea más gruesa y suave) */
.nav-link::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  background: var(--rosalez-primary);
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Curva de transición suave */
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link.dropdown-toggle[aria-expanded="true"]::after {
  width: 100%; /* Subrayado de ancho completo */
}

/* Estilos Específicos para el Dropdown Central 'ROSALEZ' (Rediseño) */
.nav-item .dropdown-toggle {
  font-size: 1.3rem !important; /* Más grande */
  font-weight: 900 !important; /* Extra bold */
  color: var(--rosalez-primary) !important; /* Siempre rojo por defecto */
  background: none !important;
  border-radius: 0;
  box-shadow: none !important;
  letter-spacing: 2px;
  text-shadow: none;
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
  /* Ajuste para que se vea como un botón de selección al hacer hover */
}

.nav-item .dropdown-toggle:hover,
.nav-item .dropdown-toggle[aria-expanded="true"] {
  color: white !important;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.7); /* Brillo rojo */
  transform: none;
  border-radius: 5px; /* Bordes suaves para el fondo sólido */
}

/* Estilos para el Menú Desplegable */
.dropdown-menu-dark {
  background-color: var(--rosalez-dark) !important; /* Fondo sólido oscuro */
  border: none;
  border-top: 3px solid var(--rosalez-primary) !important; /* Separador rojo arriba */
  border-radius: 5px;
  box-shadow: 0 5px 25px rgba(255, 0, 0, 0.5); /* Sombra fuerte */
  animation: slideDown 0.3s ease-out; /* Nueva animación */
}

.dropdown-menu-dark .dropdown-item {
  color: white !important;
  transition: all 0.2s ease;
  font-weight: 600;
  padding-left: 1rem;
}

.dropdown-menu-dark .dropdown-item:hover {
  background-color: rgba(255, 0, 0, 0.15) !important; /* Fondo hover sutil */
  color: var(--rosalez-primary) !important; /* Texto rojo al hacer hover */
  padding-left: 1.5rem; /* Pequeño desplazamiento al pasar el ratón */
}

/* Keyframes para la animación de entrada del dropdown */
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------- */
/* 4. Sección Principal (Hero)               */
/* ------------------------------------------- */

#hero {
  /* **REEMPLAZA ESTA URL CON TU IMAGEN** */
  background: url("../img/rosalez.webp") no-repeat center center/cover;
  position: relative;
  height: 100vh;
  display: flex;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

#hero .container {
  z-index: 1;
}

#hero h1 {
  font-size: 5rem;
  letter-spacing: 5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 3rem;
  }
}

/* =====================================================
   SECCIÓN BIOGRAFÍA DE ROSALÉZ
   ===================================================== */

#about {
  position: relative;
  background-color: #f9f9f9;
  overflow: hidden;
}

/* Imagen */
.bio-img-wrapper {
  position: relative;
  display: inline-block;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform 0.8s ease;
}
.bio-img-wrapper:hover {
  transform: scale(1.05) rotate(-0.5deg);
}
.bio-img {
  border-radius: 1.5rem;
  transition: filter 0.5s ease-in-out;
}
.bio-img-wrapper:hover .bio-img {
  filter: brightness(1.1) contrast(1.05);
}

/* Brillo envolvente */
.bio-glow {
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  box-shadow: 0 0 50px 20px rgba(220, 53, 69, 0.25);
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}
.bio-img-wrapper:hover .bio-glow {
  opacity: 1;
}

/* Efecto de reflejo suave */
.floating-shine {
  position: absolute;
  top: 0;
  left: -70%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
  animation: floating-shine 5s infinite linear;
  border-radius: 1.5rem;
}
@keyframes floating-shine {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  40% {
    opacity: 0.7;
  }
  100% {
    transform: translateX(250%);
    opacity: 0;
  }
}

/* Fondo animado suave */
.floating-bg {
  position: absolute;
  top: -30%;
  left: -10%;
  width: 120%;
  height: 160%;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(220, 53, 69, 0.08),
    transparent 60%
  );
  animation: floatBg 16s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes floatBg {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-40px) rotate(2deg);
  }
}

/* Título efecto máquina de escribir */
.typewriter {
  display: inline-block;
  overflow: hidden;
  border-right: 3px solid #dc3545;
  white-space: nowrap;
  animation: typing 3s steps(35, end), blink 0.75s step-end infinite;
  width: fit-content;
}
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Aparición suave del texto */
.fade-in-text {
  opacity: 0;
  animation: fadeIn 2.5s ease-in forwards;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tipografía y espaciado */
.bio-content p {
  line-height: 1.75;
  font-size: 1.1rem;
}
.blockquote {
  font-style: italic !important;
}
.blockquote-footer {
  font-size: 0.95rem;
}

/* Responsivo */
@media (max-width: 768px) {
  .typewriter {
    font-size: 1.8rem;
  }
  .bio-content p {
    font-size: 1rem;
  }
}

/* ------------------------------------------- */
/* 5. Sección MÚSICA / DISCOGRAFIA (Tracklist y Vinilo) */
/* ------------------------------------------- */

/* NOTA: He cambiado el ID del comentario de #discografia a #musica para seguir la convención del HTML */
#discografia {
  background-color: var(--rosalez-dark) !important;
  color: white;
}

/* Carátula del álbum (para la animación de vinilo) */
.album-cover-lg {
  max-width: 100%;
  width: 350px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(255, 0, 0, 0.4);
  transition: all 0.5s ease-in-out;
  cursor: pointer;
}

/* Rotación del Vinilo (Keyframes) */
@keyframes rotate-vinyl {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Clase que activa la animación */
#vinyl-cover.rotating {
  animation: rotate-vinyl 8s linear infinite;
  border-radius: 50%;
}

.audio-player-full {
  width: 100%;
  max-width: 420px;
  border-radius: 50px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15); /* Fondo semi-transparente */
  filter: invert(0.85) hue-rotate(180deg) brightness(1.1) contrast(0.95);
  box-shadow: 0px 0px 2px 3px rgba(255, 0, 0, 0.5);
  transition: transform 0.2s ease, filter 0.3s ease;
}

/* Hover suave */
.audio-player-full:hover {
  transform: scale(1.01);
  filter: invert(0.9) hue-rotate(180deg) brightness(1.15);
}

/* 🔊 Controles nativos (solo navegadores WebKit compatibles) */
audio::-webkit-media-controls-panel {
  background: transparent !important;
  color: var(--accent-color);
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-volume-slider,
audio::-webkit-media-controls-timeline {
  filter: invert(0) !important; /* Mantiene color de acento */
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
  color: var(--accent-color);
  font-weight: 500;
}

/* Opcional: efecto sutil al pasar el mouse sobre los botones */
audio::-webkit-media-controls-play-button:hover,
audio::-webkit-media-controls-volume-slider:hover,
audio::-webkit-media-controls-timeline:hover {
  filter: brightness(1.3) !important;
}
/* ------------------------------------------- */
/* 5.1 Galería de Selección de Álbumes (Nuevo) */
/* ------------------------------------------- */

.album-selector-cover {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 3px solid transparent; /* Borde inicial transparente */
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  opacity: 0.7; /* Ligeramente apagado */
}

.album-selector-cover:hover {
  opacity: 1;
  transform: scale(1.05); /* Pequeño zoom al pasar el ratón */
}

/* Estilo para la carátula seleccionada/activa en la galería */
.album-selector-cover.active {
  border: 3px solid var(--rosalez-primary); /* Borde rojo vivo */
  opacity: 1;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.7); /* Sombra de brillo rojo */
  transform: scale(1.05);
}

.album-selector-title {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8) !important;
}

.album-selector-cover.active + .album-selector-title {
  color: var(--rosalez-primary) !important;
}

/* ------------------------------------------- */
/* 5.2 Contenedor de la Lista con Scroll       */
/* ------------------------------------------- */

.tracklist-container {
  max-height: 400px; /* Altura máxima para desktop (ajusta esto si quieres más o menos espacio) */
  overflow-y: scroll; /* La clave para el scroll vertical */
  padding-right: 15px; /* Espacio para la barra de scroll */
}

/* Personalización de la barra de scroll (Webkit) */
.tracklist-container::-webkit-scrollbar {
  width: 6px;
  background-color: var(--rosalez-dark);
}

.tracklist-container::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.tracklist-container::-webkit-scrollbar-thumb:hover {
  background-color: var(--rosalez-primary);
}

/* ------------------------------------------- */
/* 5.3 Estilos de la Tracklist (Lista de Canciones) */
/* ------------------------------------------- */

.tracklist-item {
  border-left: none;
  border-right: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  background-color: transparent !important;
  cursor: pointer;
  transition: background-color 0.2s;
}

.tracklist-item:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.tracklist-item.active-track {
  background-color: rgba(255, 0, 0, 0.2) !important;
  border-left: 5px solid var(--rosalez-primary) !important;
  font-weight: bold;
}

.tracklist-item.active-track .track-title,
.tracklist-item.active-track .track-number {
  color: white !important;
  font-weight: bold;
}

.track-number {
  color: var(--rosalez-primary);
  font-weight: 700;
}

.play-track-btn {
  border-radius: 50%;
  width: 35px;
  height: 35px;
  padding: 0;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ------------------------------------------- */
/* 6. Sección VIDEOS                         */
/* ------------------------------------------- */

.video-card {
  transition: transform 0.3s, box-shadow 0.3s;
  background-color: var(--rosalez-dark); /* Fondo oscuro para el marco */
  border: 1px solid rgba(255, 0, 0, 0.1);
  /* CRUCIAL: Usamos flexbox para asegurar que el contenido (imagen + otros elementos) 
     se apile correctamente, aunque Bootstrap maneja la altura del col-lg-4. */
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: scale(1.03); /* Ligero zoom */
  /* Sombra más intensa */
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.5) !important;
}

/* ============================================== */
/* AJUSTE DE TAMAÑO CRUCIAL (RELACIÓN DE ASPECTO 3:4) */
/* ============================================== */

/* Estilos para el nuevo placeholder de video (portada estática) */
.video-placeholder {
  cursor: pointer;
  background-color: black; /* Fondo negro mientras carga */
  position: relative;
  width: 100%; /* Ocupa todo el ancho */
  height: 0; /* CRUCIAL: Reinicia la altura para que el padding la controle */
  /* * CRUCIAL: Padding Hack para proporción 3:4 (4/3 = 1.3333). 
   * Esto garantiza la misma altura para todas las imágenes.
   */
  padding-bottom: 133.33%;
  overflow: hidden; /* Oculta cualquier cosa que se salga */
}

/* AJUSTE CRUCIAL: Usar 'contain' para mostrar la imagen completa */
.video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Muestra la imagen completa sin recortar, usando el fondo negro para el espacio restante */
  object-fit: contain;
}

/* ============================================== */
/* ESTILOS DE OVERLAY Y BOTÓN DE PLAY */
/* ============================================== */

/* Botón de Play Centrado */
.play-button-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3); /* Opacidad sobre la miniatura */
  opacity: 1;
  transition: background-color 0.3s, opacity 0.3s;
  /* Bootstrap d-flex ya centra el ícono, si no estuviera, se podría añadir aquí */
}

.video-placeholder:hover .play-button-overlay {
  background-color: rgba(255, 0, 0, 0.5); /* Se vuelve rojo al hacer hover */
}

/* Icono de Play */
.play-button-overlay i {
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.3s;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
}

.video-placeholder:hover .play-button-overlay i {
  opacity: 1;
  transform: scale(1.1);
}

/* Ocultar el overlay de la portada una vez que el video está activo */
.video-placeholder.active-video .play-button-overlay {
  display: none;
}

/* Overlay de Título */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Oscurecimiento con degradado de abajo hacia arriba */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0; /* Oculto por defecto */
  transition: opacity 0.4s ease-in-out;
  pointer-events: none; /* Permite interactuar con el iframe debajo */

  /* Posicionamiento del título */
  display: flex;
  align-items: flex-end; /* Alinea al final */
}

.video-card:hover .video-overlay {
  opacity: 1; /* Mostrar al hacer hover */
}

.video-overlay h4 {
  font-size: 1.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  transform: translateY(10px); /* Título ligeramente bajo */
  transition: transform 0.4s ease-in-out;
  /* Asegura que los márgenes de Bootstrap no interfieran con la animación */
  margin-bottom: 0 !important;
  width: 100%;
  padding: 0 1rem; /* Añade padding horizontal si la clase p-3 del overlay no es suficiente */
}

.video-card:hover .video-overlay h4 {
  transform: translateY(0); /* Subir al hacer hover */
}

/* ------------------------------------------- */
/* 7. Sección GIRA y CONTACTO (Placeholders) */
/* ------------------------------------------- */

.breadcrum {
  padding-top: 150px;
  padding-bottom: 80px;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("assets/img/hero-background-placeholder.webp") center center no-repeat; /* Usa un fondo que Rosalez te proporcione */
  background-size: cover;
}

/* Estilo de la Tarjeta de Espectáculo */
.espectaculo-card {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Asegura que todas las tarjetas tengan la misma altura */
  /* Eliminamos display: flex y flex-direction: column para simplificar el posicionamiento */
}

.espectaculo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(var(--rosalez-primary), 0.7);
}

/* Contenedor de la Imagen (Base para el hover) */
.afiche-container {
  width: 100%;
  height: 588px; /* Altura fija para todos los afiches */
  background-color: #000; /* Fondo negro para rellenar los huecos */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative; /* Clave para el overlay */
}

/* Imagen del Afiche: object-fit: contain asegura que se vea completa */
.espectaculo-afiche {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.espectaculo-card:hover .espectaculo-afiche {
  transform: scale(1.05); /* Zoom ligero en hover */
  opacity: 0.3; /* Oscurece la imagen para que el texto resalte */
}

/* -------------------------------------- */
/* ESTILOS DEL OVERLAY DE INFORMACIÓN */
/* -------------------------------------- */
.espectaculo-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  color: #f8f9fa;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centrado vertical */
  align-items: center; /* Centrado horizontal */
  text-align: center;
  background: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
  /* Estado Inicial: Oculto */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.espectaculo-card:hover .espectaculo-info {
  /* Estado de Hover: Visible */
  opacity: 1;
  transform: translateY(0);
}

.espectaculo-info h3 {
  color: var(--rosalez-primary);
  font-weight: bold;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.descripcion-breve {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ced4da;
  margin-bottom: 0; /* No margin-bottom inside overlay */
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  /* Ocultar descripción en pantallas muy pequeñas si es necesario */
  display: none;
}
@media (min-width: 768px) {
  .descripcion-breve {
    display: block; /* Mostrar en tabletas y escritorio */
  }
}

/* -------------------------------------- */
/* SECCIÓN DEL BOTÓN (DEBAJO DEL AFICHE) */
/* -------------------------------------- */
.espectaculo-action {
  padding: 1rem 1.5rem 1.5rem; /* Padding para la sección de acción */
}

.btn-contratar {
  margin-top: 0; /* No necesita margin-top: auto */
  display: block;
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background-color: var(--rosalez-primary);
  color: white;
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-contratar:hover {
  background-color: #b02a37;
  transform: scale(1.02);
}

/* =====================================================
   SECCIÓN 9. HOMENAJE ANTONIO MOLINA (Estilo Dramático)
   ===================================================== */

/* Utilizar Rosalez Dark como fondo principal */
.bg-molina-dark {
  background-color: var(--rosalez-dark) !important;
}

/* Colores de texto específicos para el tributo */
.text-molina-gold {
  color: var(--molina-gold) !important;
}
.text-molina-red {
  color: var(
    --rosalez-primary
  ) !important; /* Usar el rojo principal de Rosalez */
}
.font-serif {
  font-family: var(--molina-font-serif) !important;
}

/* ------------------------------------------- */
/* 9.1 Hero Section (molina-hero)             */
/* ------------------------------------------- */

/* Hero section */
#molina-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../img/antonio-hero.jpg") center/cover no-repeat;
  text-align: center;
  padding: 0 1rem;
}

#molina-hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
}

#molina-hero h2 {
  font-size: clamp(1.2rem, 4vw, 2rem);
}

/* Sección: Legado */
#legado .text-gray {
  color: #bbb;
}

#legado img {
  max-width: 280px;
}

@media (max-width: 768px) {
  #legado .col-lg-8 {
    text-align: center;
  }

  #legado img {
    max-width: 220px;
    margin-top: 1.5rem;
  }
}

/* Canciones */
.song-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.song-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.icon-wrapper {
  background: #dc3545;
  color: #fff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.song-title {
  font-weight: 700;
  color: #000;
  margin-bottom: 0.3rem;
}

.song-card p {
  color: #666;
  margin: 0;
}

/* Sección Tributo Rosalez */
#tributo-rosalez img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

#tributo-rosalez .btn {
  font-size: 1rem;
}

@media (max-width: 992px) {
  #tributo-rosalez .col-lg-6 {
    text-align: center;
  }

  #tributo-rosalez img {
    max-width: 320px;
    margin-bottom: 2rem;
  }
}

/* Repertorio */
.repertorio-list li {
  font-size: 1.1rem;
  padding: 0.4rem 0;
}

.repertorio-list li {
  font-size: 1.05rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: default;
}

.repertorio-list li:hover {
  color: #b91c1c;
  transform: translateX(6px);
  text-shadow: 0 0 8px rgba(185, 28, 28, 0.4);
}

.hover-scale {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  #repertorio h2 {
    font-size: 1.8rem;
  }

  #repertorio .text-secondary {
    font-size: 1rem;
  }

  #repertorio img {
    max-width: 280px;
    margin-top: 2rem;
  }
}
/* ------------------------------------------- */
/* 8. Footer (Pie de Página)                 */
/* ------------------------------------------- */

#footer {
  background-color: rgba(0, 0, 0, 0.95) !important;
}

#footer a {
  transition: color 0.3s;
}

#footer a:hover {
  color: var(--rosalez-primary) !important;
}

/* ------------------------------------------- */
/* 10. Media Queries (Adaptación a Móviles)  */
/* ------------------------------------------- */

@media (max-width: 992px) {
  /* Modificamos para el breakpoint de lg */
  .nav-link::after {
    width: 0 !important; /* Deshabilitar subrayado en el menú colapsado */
  }
  .nav-item .dropdown-toggle:hover,
  .nav-item .dropdown-toggle[aria-expanded="true"] {
    background-color: var(--rosalez-primary) !important;
    color: white !important;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
  .nav-item .dropdown-toggle {
    padding: 0.5rem 1rem !important;
    margin: 0;
  }

  .album-cover-lg {
    width: 250px;
  }
  .tracklist-container {
    max-height: 300px; /* Menor altura para móvil */
  }
  .track-duration {
    display: none;
  }
}
/* --- Bloque de Activación y Contacto WhatsApp (Sin Cambios) --- */
.activacion-final {
  padding-top: 25px;
  border-top: 2px solid #f0f0f5;
}

.heading-activacion {
  font-size: 24px;
  font-weight: 900;
  color: #dc3545;
  margin-bottom: 10px;
}

.whatsapp-number-lg {
  font-size: 28px;
  font-weight: 900;
  color: #25d366;
  margin-top: 10px;
}

.whatsapp-number-lg i {
  margin-right: 10px;
}

.btn-success {
  background-color: #25d366 !important;
  border-color: #25d366 !important;
  font-weight: 700;
}
/*.nav-tabs .nav-link {
  border: none;
  border-radius: 8px 8px 0 0;
  background: #e9f2f5;
  color: #00719B;
  font-weight: 500;
  margin-right: 5px;
  transition: 0.3s;
}
.nav-tabs .nav-link.active {
  background: #00719B;
  color: #fff;
}
.nav-tabs .nav-link:hover {
  background: #00719B;
  color: #fff;
}
  */

/* REGLA AÑADIDA PARA BLOQUEAR LA INTERACCIÓN */
.cookie-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Oscurece ligeramente el fondo */
  background-color: rgba(0, 0, 0, 0.5); 
  /* Captura todos los clics, debe estar justo debajo del banner */
  z-index: 9998; 
}

/* CÓDIGO ORIGINAL DEL BANNER */
.cookie-banner {
  position: fixed;
  /* Debe estar encima del backdrop */
  z-index: 9999; 
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 400px;
  background-color: #46171D;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner img {
  max-width: 80px;
  margin-bottom: 15px;
  background: aliceblue;
  padding: 20px;
  border-radius: 10px;
}

.cookie-banner h1 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #dc3545;
}

.cookie-banner p {
  font-size: 14px;
  color: #ffff;
  margin-bottom: 20px;
}

.cookie-buttons {
  display: flex;
  justify-content: space-between;
}

.cookie-buttons button,
.cookie-buttons a {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}

.accept-btn {
  background-color: #4caf50;
  color: #fff;
}

.reject-btn {
  background-color: #ff5f5f;
  color: #fff;
}

.learn-more {
  background-color: transparent;
  color: #fff;
  text-decoration: underline;
}

.cookie-buttons button:hover,
.cookie-buttons a:hover {
  transform: scale(0.98);
}

#whatsapp-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

/* --- Botón Flotante (Toggler) - Importante: Añadido position: relative --- */
.whatsapp-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; 
    width: 60px;
    height: 60px;
    /* Color de WhatsApp */
    background-color: #25d366; 
    border-radius: 50%;
    /* Sombra elegante */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s, background-color 0.3s;
}

.whatsapp-float-btn:hover {
    /* Color de WhatsApp más oscuro */
    background-color: #128c7e;
    transform: scale(1.05);
}

.whatsapp-float-btn i {
    color: white;
    font-size: 30px;
}

/* -------------------------------------------------------------------------- */
/* --- ESTILO DEL TEXTO FLOTANTE "¿Necesitas ayuda?" (CALLOUT) --- */
/* -------------------------------------------------------------------------- */
.whatsapp-callout-text {
    position: absolute;
    /* Posiciona a la izquierda del botón */
    right: 70px; 
    top: 50%;
    /* Estado inicial: un poco desplazado para el efecto de "deslizamiento" */
    transform: translateY(-50%) translateX(10px); 
    
    /* Estilo de la burbuja/pill */
    background-color: white;
    color: #333;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    /* Ocultar inicialmente */
    opacity: 0; 
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

/* Clase que JS añade para MOSTRAR el texto */
#whatsapp-widget-container.show-callout .whatsapp-callout-text {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0); /* Mueve a la posición visible */
}

/* Ocultar el texto flotante cuando el chat está abierto */
#whatsapp-widget-container.active .whatsapp-callout-text {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s, visibility 0.1s; 
}
/* -------------------------------------------------------------------------- */


/* --- Burbuja de Notificación --- */
.whatsapp-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #f00;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
    
    /* CONTROL DE VISIBILIDAD INICIAL */
    display: none; 
}

/* La clase 'show-badge' agregada por JS lo hace visible */
#whatsapp-widget-container.show-badge .whatsapp-notification-badge {
    display: block;
}

/* Ocultar la notificación cuando el chat está abierto */
#whatsapp-widget-container.active .whatsapp-notification-badge {
    display: none; 
}

/* --- Ventana de Chat --- */
.whatsapp-chat-popup {
    /* Posición inicial (colapsada) */
    position: absolute;
    bottom: 80px; /* Separación del botón */
    right: 0;
    /* Ancho y alto fijos */
    width: 320px; 
    height: 0; 
    
    opacity: 0;
    visibility: hidden;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Transición que maneja el deslizamiento al abrir/cerrar */
    transition: all 0.4s ease-in-out;
}

/* Estado ACTIVO: se muestra el chat */
#whatsapp-widget-container.active .whatsapp-chat-popup {
    /* Altura fija */
    height: 400px;
    opacity: 1;
    visibility: visible;
}

/* --- Estilos internos del chat --- */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    /* Color de WhatsApp */
    background-color: #dc3545;
    color: white;
}

.header-info {
    display: flex;
    align-items: center;
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    background: white;
    padding: 2px;
}

.header-title {
    font-weight: bold;
    font-size: 16px;
}

.header-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.close-chat {
    color: white;
    text-decoration: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.chat-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f9f9f9;
}

/* Estilo de la burbuja de mensaje */
.first-msg {
    background-color: #e2ffc7; 
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    display: inline-block;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* Footer con el botón de acción */
.chat-footer {
    padding: 15px;
    background-color: white;
    border-top: 1px solid #eee;
    text-align: center;
}

.send-it-btn {
    display: block;
    padding: 10px;
    /* Color de WhatsApp */
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    font-size: 15px;
    transition: background-color 0.3s;
}

.send-it-btn:hover {
    /* Color de WhatsApp más oscuro */
    background-color: #128c7e;
}

.send-it-btn i {
    margin-left: 5px;
    font-size: 14px;
}

.chat-number {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}