@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Shadows+Into+Light&display=swap');

:root {
    --color-primario: #2D1A2E;
    --color-secundario: #F6E0AE;
    --color-repro:#FFCD01 ;
    --color-tercer:#1c0d1d;
    --color-opacidad:#2d1a2ed8;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
button {
    all: unset;
    cursor: pointer;
    font-size: 16px;
    outline: none;
    -webkit-tap-highlight-color: transparent; /* Para dispositivos táctiles */
    transition: background-color 0.3s ease, transform 0.2s ease;
  
    /* Asegurar tamaño y forma circular */
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

button:focus {
    background-color: var(--color-primario);
    border-radius: 50%;
    border: 5px solid var(--color-primario);
}

button:focus i, 
button:active i {
    color: var(--color-repro) !important;
}
button i{
  color: var(--color-secundario);
}

a{
    text-decoration: none;
    color: #fff;
}
#tarjeta-plugin input[type="range"] {
    -webkit-appearance: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    /* Otros estilos personalizados */
}

html, body {
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}
main {
  display: block;
  width: 100%;
}
.contenedor-tarjeta {
    background-color: var(--color-primario);
    color: var(--color-secundario);
    display: flex;
    flex-direction: column;
}

/* Contenedor principal que permite el scroll */
.tarjeta-contenedor {
    width: 100%;
    height: 100vh;
    overflow-y: scroll; /* Activa el scroll vertical */
    scroll-snap-type: y mandatory; /* Hace que el scroll encaje en cada sección */
    -webkit-overflow-scrolling: touch; /* Mejora el desplazamiento en móviles */
    position: relative;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.contenedor-tarjeta p,h1,h2,h3{
    text-align: center;
    
}

.titulo-h1{
  color: var(--color-secundario);

}

.video-fondo {
    position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      mix-blend-mode: screen; /* Fusión con la imagen de fondo */
      z-index: -100; /* Se mantiene detrás del contenido, pero sobre la imagen */
  }
/* Secciones individuales */
.seccion {
    font-family: "Shadows Into Light", serif;
    font-weight: 400;
    font-style: normal;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    gap: 20px;
    scroll-snap-align: start; /* Asegura que cada sección se detenga en el inicio */
}
.hidden-lista {
    display: flex !important;
    opacity: 0 !important;
    visibility: hidden !important;
    max-height: 0 !important;
}

.contenedor-tarjeta .seccion .titulo-h1{
  font-size: 1.5rem;
}
.contenedor-tarjeta .seccion h2{
  font-size: 1rem;
  color: var(--color-secundario);
}
.tit-art-img{
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
}
.tit-art-img .titulo{

    text-align: center;
}

.tit-art-img img{

    width: 250px;
    border-radius: 50%;
    border: 4px solid var(--color-secundario);
}
.botones-control{
    position: relative;
    display: flex;
    gap: 15px;
justify-content: center;
align-items: center;
}

#progress-container {
    display: flex;
    justify-content: space-between;
    width:100%;
    background: var(--color-tercer);

    height: 10px;
    gap: 5px;
    cursor: pointer;
    overflow: hidden;
  }
  
  .barra-tiempo {
    display: flex;
    flex-direction: column;
    width: 300px;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
  #time-display {
    display: flex;
    justify-content: space-between; /* Coloca los elementos a los extremos */
    align-items: center; /* Alinea verticalmente al centro */
    width: 100%; /* Asegura que el contenedor ocupe todo el ancho */
    box-sizing: border-box; /* Considera el padding en el ancho total */
  }
  
  #time-display span {
    font-family: sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}
  #progress-bar {
    width: 0%;
    height: 100%;
    background: var(--color-repro);
    transition: width 0.1s linear;
  }


#volume-container{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }

  .volumen {
    position: relative;
    display: inline-block;
  }
  
  #volume-icon {
    cursor: pointer;
  }
  #volume-icon i{
    color: var(--color-secundario);
  }
  
  .volume-box {
    position: absolute;
    bottom: 40px; /* Ajusta para colocarlo sobre el icono */
    left: 50%;
    transform: translateX(-50%);
    width: 30px; /* Ancho de la caja */
    height: 150px; /* Alto de la caja */
    background-color: var(--color-opacidad); /* Fondo semitransparente */
    border-radius: 8px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px var(--color-opacidad);
    display: none; /* Oculta por defecto */
  }
  
  .volume-box.active {
    display: flex; /* Mostrar cuando esté activo */
  }
  
  #volume-slider {
    transform: rotate(-90deg); /* Voltear para ser vertical */
    transform-origin: center;
    -webkit-appearance: none; /* Estilo personalizado para el control */
    appearance: none;
    background: linear-gradient(to right, var(--color-repro), var(--color-primario)   );
    border-radius: 5px;
    outline: none;
    transition: background 0.3s ease-in-out;
  }
  
  #volume-slider:hover {
    background: linear-gradient(to right, var(--color-repro), var(--color-primario)   );
  }
  
  #volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: var(--color-primario);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s ease;
  }
  
  #volume-slider::-webkit-slider-thumb:hover {
    background: var(--color-repro);
    transform: scale(1.2);
  }

  input[type=range] {
    -webkit-appearance: none;
    width: auto !important;
    margin: 5.7px 0;
    padding: 0;
    border: none;
}

  #playlist {
    border-radius: 20px 20px 0 0;
      margin: 0;
      overflow: hidden;
      max-height: 320PX;
      max-width: 375px;
      display: flex;
      align-items: flex-start;
      flex-direction: column;
      gap: 10px;
      position: absolute;
      bottom: 50px;
      left: 0;
      right: 0;
      background-color: var(--color-opacidad);
      padding: 30px 20px 30px 20px;
      overflow-y: scroll;
      scrollbar-width: none;
      justify-content: flex-start;
      opacity: 1; /* Para mostrarlo normalmente */
      visibility: visible; /* Asegura que el elemento esté visible al ser mostrado */
      transition: opacity 0.3s, visibility 0.3s, max-height 0.3s; /* Transición para suavizar */
  }

  #metadata{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.titulo{
color:var(--color-secundario) !important;
font-size: 1.5rem;
}
.artista{
  color:var(--color-secundario) !important;
  font-size: 1rem;
  }

  .boton-seccion{
    font-weight: 700;
    text-decoration: none;
    color: var(--color-primario);
    padding: 5px 10px;
    border: 3px solid var(--color-secundario);
    text-align: center;
    border-radius: 20px;
    background-color: var(--color-repro);
    
    }

/* Contenedor de la galería estilo collage */
.galeria {
    position: relative;
    width: 350px;
    padding: 20px;
    background: var(--color-opacidad);
    border-radius: 10px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Imagen grande, un poco inclinada */
.foto-grande {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    transform: rotate(-3deg);
}

/* Contenedor de imágenes pequeñas, con posiciones aleatorias */
.contenedor-pequenas {
    position: relative;
    width: 100%;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* Imágenes pequeñas, con rotaciones y sombras diferentes */
.foto-pequena {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

/* Efecto collage: rotaciones aleatorias */
.foto-pequena:nth-child(1) { transform: rotate(-10deg); }
.foto-pequena:nth-child(2) { transform: rotate(5deg); }
.foto-pequena:nth-child(3) { transform: rotate(-5deg); }

/* Efecto al pasar el mouse */
.foto-pequena:hover {
    transform: scale(1.2) rotate(0deg);
    z-index: 10;
}

.carta{
    border-radius: 20px;
    background-color: var(--color-opacidad);
    width: 300px;
    height: 400px;
    overflow: hidden;
    overflow-y: scroll;
    box-shadow: -1px 4px 17px -6px rgba(18,18,18,0.83);
    -webkit-box-shadow: -1px 4px 17px -6px rgba(18,18,18,0.83);
    -moz-box-shadow: -1px 4px 17px -6px rgba(18,18,18,0.83);
  }  
  
  .carta p{
    padding: 20px;
    font-size: 1.2rem;

  }
  
.nombre img {
    width: 200px;
    }
    
    .boton{
        border: 3px solid var(--color-repro);
        padding: 50px;
        border-radius: 50%;
        color: var(--color-secundario);
      }


/*ANIMACIONES*/
@keyframes tracking-in-expand-fwd-top {
    0% {
      letter-spacing: -0.5em;
      transform: translateZ(-700px) translateY(-500px);
      opacity: 0;
    }
    40% {
      opacity: 0.6;
    }
    100% {
      transform: translateZ(0) translateY(0);
      opacity: 1;
    }
  }
  

.jello-horizontal {
	animation: jello-horizontal 0.9s both;
}
@keyframes jello-horizontal {
    0% {
      transform: scale3d(1, 1, 1);
    }
    30% {
      transform: scale3d(1.25, 0.75, 1);
    }
    40% {
      transform: scale3d(0.75, 1.25, 1);
    }
    50% {
      transform: scale3d(1.15, 0.85, 1);
    }
    65% {
      transform: scale3d(0.95, 1.05, 1);
    }
    75% {
      transform: scale3d(1.05, 0.95, 1);
    }
    100% {
      transform: scale3d(1, 1, 1);
    }
  }
  
   /* Define la animación combinada de rebote + rotación */
   @keyframes bounce-then-spin {
    0% {
      transform: translateY(-500px) rotate(0deg);
      opacity: 0;
    }
    38% {
      transform: translateY(0) rotate(0deg);
      opacity: 1;
    }
    55% {
      transform: translateY(-65px) rotate(0deg);
    }
    72% {
      transform: translateY(0) rotate(0deg);
    }
    81% {
      transform: translateY(-28px) rotate(0deg);
    }
    90% {
      transform: translateY(0) rotate(0deg);
    }
    95% {
      transform: translateY(-8px) rotate(0deg);
    }
    100% {
      transform: translateY(0) rotate(0deg);
    }
  }
  
  /* Define la animación de rotación continua */
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  /* Clase para la animación inicial de rebote y luego giro continuo */
  .spinning {
    animation: 
      bounce-then-spin 1.1s ease-out, /* Rebote inicial */
      spin 6s linear infinite;        /* Rotación infinita */
    animation-delay: 0s, 1.1s;        /* Retardo en el inicio del giro */
  }
  
/* Estilo para la imagen con efecto de pulsación */
.imagen-pulsante {

    transition: transform 0.3s ease-in-out;
    animation: pulsar 1.5s infinite; /* Efecto de pulsación */
  }
  
  /* Animación para el efecto de pulsación */
  @keyframes pulsar {
    0% {
        transform: scale(1); /* Tamaño original */
    }
    50% {
        transform: scale(1.1); /* Aumenta ligeramente el tamaño */
    }
    100% {
        transform: scale(1); /* Vuelve al tamaño original */
    }
  }