/* ================= BANNER VIDEO ================= */
.banner__video {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.banner__section {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columnas iguales */
  height: 100vh; /* ocupa toda la pantalla */
}

.banner__overlay {
  text-align: center;
  color: #fff;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4);
  padding: 2rem;
  border-radius: 15px;
  max-width: 90%;
  animation: fadeInUp 1s ease; /* animación de overlay */
}

.banner__overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: slideDown 1s ease;
}

.banner__overlay p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  animation: slideUp 1.2s ease;
}

.banner__overlay .btn {
  background: #00b4d8;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: bold;
  transition: 0.3s;
  animation: fadeIn 1.5s ease;
}

.banner__overlay .btn:hover {
  background: #0090a8;
  transform: scale(1.05);
}

/* ================= MODAL VIDEO ================= */
.modal-video {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;              
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px); /* desenfoque al fondo */
}
.modal-video.show { 
  display: block; 
  animation: fadeInBg .5s ease forwards;
}

.modal-video-content {
  position: relative;
  margin: 50px auto;
  width: min(90%, 900px);
  animation: zoomInUp .6s ease;
}

.modal-video-content video {
  width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

/* Botón cerrar con animación */
.modal-video-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 9999px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: transform .3s, background .3s;
}

.modal-video-close:hover {
  background: rgba(0,0,0,0.9);
  transform: rotate(90deg) scale(1.1);
}

/* ================= Animaciones ================= */
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }

@keyframes fadeInBg {
  from {opacity: 0; backdrop-filter: blur(0);}
  to   {opacity: 1; backdrop-filter: blur(4px);}
}

@keyframes zoomIn {
  from {transform: scale(0.85); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

@keyframes zoomInUp {
  from {transform: translateY(40px) scale(0.9); opacity: 0;}
  to {transform: translateY(0) scale(1); opacity: 1;}
}

@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

@keyframes slideDown {
  from {opacity: 0; transform: translateY(-30px);}
  to {opacity: 1; transform: translateY(0);}
}

@keyframes slideUp {
  from {opacity: 0; transform: translateY(30px);}
  to {opacity: 1; transform: translateY(0);}
}


/* ================= RESPONSIVE ================= */

/* 📱 Móviles pequeños */
@media (max-width: 576px) {
  .banner__video {
    height: 70vh;
  }
  .banner__overlay {
    padding: 1.2rem;
  }
  .banner__overlay h2 {
    font-size: 1.6rem;
  }
  .banner__overlay p {
    font-size: 1rem;
  }
  .banner__overlay .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* 📱 Tablets (pantallas medianas) */
@media (min-width: 577px) and (max-width: 991px) {
  .banner__video {
    height: 80vh;
  }
  .banner__overlay h2 {
    font-size: 2rem;
  }
  .banner__overlay p {
    font-size: 1.1rem;
  }
  .banner__overlay .btn {
    font-size: 1rem;
  }
}

/* 💻 Pantallas grandes */
@media (min-width: 992px) {
  .banner__video {
    height: 100vh; /* más inmersivo */
  }
  .banner__overlay {
    max-width: 60%;
  }
  .banner__overlay h2 {
    font-size: 3rem;
  }
  .banner__overlay p {
    font-size: 1.3rem;
  }
}
