* {
  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;
}

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

.logo {
  max-width: 340px;
  padding: 50px 0;
  /* padding: 6px; */
}

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

@media (max-width: 450px) {
  .logo {
    max-width: 300px;
    padding: 40px 0;
  }
}
.title {
  font-size: 1.5rem;
}
.description {
  margin-bottom: 2rem;
}
.description a {
  font-weight: bolder;
}

.name {
  margin-bottom: 2rem;
}

.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;
}
