* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

a {
  color: inherit;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  min-height: 100vh;
  /* background-color: #222; */
  text-align: center;
  /* color: #ffe; */
  align-content: center;
  font-family: "Poppins", sans-serif;
  padding: 0 20px;
  background-color: #f0f0f0;
  overflow-x: hidden; /* Evita el scroll horizontal */
}

header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.logo {
  max-width: 340px;
  padding: 40px 0 10px 0;
  @media (max-width: 450px) {
    max-width: 300px;
  }
}

.logo img {
  width: 100%;
  /* max-width: 250px; */
  min-width: 80px;
  padding: 10px;
}

.font-light {
  font-weight: 300;
}
.font-bold {
  font-weight: bolds;
}
.font-medium {
  font-weight: 500;
}

.title {
  font-size: 1.3rem;
}
.description {
  background-color: #ebebeb;
  padding-top: 50px;
  padding-bottom: 1rem;
  /* margin-bottom: 1rem; */
}
.description a {
  font-weight: bolder;
}

.name {
  margin-bottom: 3rem;
}

.ltv-logo {
  max-width: 150px;
}

.LTV-intro {
  margin: 1rem auto 2rem auto;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  max-width: 1400px;
  gap: 2rem;
  justify-items: stretch;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 2rem;
}
@media (max-width: 450px) {
  .videos-grid {
    display: block;
  }
  body {
    padding: 0 10px;
  }
}

.video-container {
  border: solid 1px #e2e2e2;
  border-radius: 10px;
  /* padding: 1rem; */
  margin-bottom: 1rem;
  color: #222;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.06);
}

.video-container iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  /* Hace el video responsivo */
  max-width: 100%;
  display: block;
  margin-bottom: 1rem;
  border-radius: 10px 10px 0 0;
}
.video-main {
  width: 100%;
  max-width: 1400px; /* O el mismo max-width que uses en .videos-grid */
  margin: 0 auto 2rem auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  background: #fff;

  padding-bottom: 1rem;
}

.video-main iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  margin-bottom: 2rem;
  border-radius: 10px 10px 0 0;
}

.titulo-video {
  font-size: 1.1rem;
  font-weight: 600;
}

.descripcion-video {
  padding-bottom: 1rem;
}
@media (max-width: 450px) {
  .titulo-video {
    font-size: 0.9rem;
  }

  .descripcion-video {
    font-size: 0.8rem;
  }
}

/* Animación de entrada con rebote para el logo */
@keyframes logoBounceIn {
  0% {
    opacity: 0;
    transform: translateY(-120vh) scaleY(1.2) scaleX(0.8);
  }
  12% {
    opacity: 1;
    transform: translateY(-80vh) scaleY(1.1) scaleX(0.9);
  }
  40% {
    transform: translateY(0) scaleY(0.7) scaleX(1.2); /* Primer impacto, aplastado */
  }
  55% {
    transform: translateY(-40px) scaleY(1.15) scaleX(0.85); /* Rebote hacia arriba, estirado */
  }
  70% {
    transform: translateY(0) scaleY(0.8) scaleX(1.15); /* Segundo impacto, menos aplastado */
  }
  80% {
    transform: translateY(-20px) scaleY(1.08) scaleX(0.92); /* Rebote pequeño */
  }
  88% {
    transform: translateY(0) scaleY(0.95) scaleX(1.05); /* Último rebote, casi estable */
  }
  93% {
    transform: translateY(-8px) scaleY(1.03) scaleX(0.97);
  }
  97% {
    transform: translateY(0) scaleY(1) scaleX(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1) scaleX(1);
  }
}
.logo.animated {
  animation: logoBounceIn 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  will-change: transform;
}

@keyframes logoBounceOut {
  0% {
    opacity: 1;
    transform: translateY(0) scaleY(1) scaleX(1);
  }
  20% {
    transform: translateY(-8px) scaleY(1.03) scaleX(0.97);
  }
  40% {
    transform: translateY(0) scaleY(0.95) scaleX(1.05);
  }
  100% {
    opacity: 0;
    transform: translateY(-120vh) scaleY(1.2) scaleX(0.8);
  }
}

.logo.animated-out {
  animation: logoBounceOut 1s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  will-change: transform;
}

/* LANZAMIENTO DESCONECTAR */

.desconectar {
  width: 100%;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.desconectar__img {
  max-width: 100%;
  padding-inline: 1rem;
  margin-bottom: 10px;
}
.spotify-waves {
  max-width: 250px;
}

#portada-vinilo {
  position: relative;
}

/* Contenedor del ícono */
#controlIcon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
/* Efecto de iluminación al pasar el cursor */
#portada-vinilo:hover + #controlIcon {
  background-color: rgba(255, 255, 255, 0.4);
  opacity: 1;
}

/* Ícono de play */
#controlIcon.play-icon::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.8);
}

/* Ícono de pause */
#controlIcon.pause-icon::before,
#controlIcon.pause-icon::after {
  content: "";
  display: block;
  width: 8px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.8);
}

#controlIcon.pause-icon::before {
  margin-right: 4px;
}

#controlIcon.pause-icon::after {
  margin-left: 4px;
}

.footer {
  background-color: #787878;
  color: #ebebeb;
  margin-top: 1rem;
}
