/* Overlay general */
.popup-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
}

/* Contenedor principal */
.popup-content {
  background: black;
  border: 2px solid #ffc451;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Botón de cerrar */
.close-btn-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: brown;
  color: #ffc451;
  border: 2px solid black;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.close-btn-popup:hover {
  background-color: white;
  color: black;
}

/* Imagen del logo */
.popup-img {
  max-width: 50%;
  height: auto;
  margin: 10px 0 10px 0;
  /* ✅ sin margen negativo */
  transition: transform 0.3s ease, filter 0.3s ease;
  object-fit: contain;
}

.popup-img:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}
/* Centrar el enlace que contiene el logo */
.popup-content a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-decoration: none;
  /* por si acaso, elimina subrayado */
}

/* Texto principal */
.popup-text {
  margin: -50px 0 5px 0;
  /* elimina separación extra */
}

.popup-text h2 {
  font-size: 1rem;
  color: white;
  margin: 4px 0;
  /* separaciones mínimas */
  line-height: 1.3;
}


/***************************/
/* Título "Video" */
/*********************/

.popup-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  /* separación mínima entre el texto y el botón */
  margin-top: 50px;
  margin-bottom: 10px;
}

/* Ajuste del título "Video" */
.popup-video h6 {
  color: white;
  margin: 0;
  font-size: 0.9rem;
}

/* Botón de video */
.btn-video {
  background-color: transparent;
  border: 2px solid #ffc451;
  color: #ffc451;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

/* Hover: cambio de color y zoom */
.btn-video:hover {
  background-color: #ffc451;
  color: black;
  transform: scale(1.2);
  /* efecto de aumento */
}

/* Pulso suave animado alrededor del botón */
.btn-video::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid #ffc451;
  border-radius: 50%;
  top: 0;
  left: 0;
  animation: pulse 1.5s infinite;
  opacity: 0.5;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.4);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}


.btn-video i {
  font-size: 26px;
  color: black;
}



/*******************/
/**************************/
/*************************

/* Créditos finales */
.credits-copyright {
  margin-top: 8px;
  /* casi pegado al botón de video */
}

.image-container img {
  max-width: 70px;
  height: auto;
}

/* Separador */
hr {
  border: 0;
  border-top: 1px solid white;
  margin: 6px 0;
}

/* Móvil */
@media (max-width: 768px) {
  .popup-content {
    height: auto;
    max-height: 95vh;
    padding: 10px;
  }

  .popup-img {
    max-width: 60%;
  }

  .popup-text h2 {
    font-size: 0.95rem;
  }
}







/************************video modal-***********/

.container {
  position: relative;
  width: 100%;
  height: 100%;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  margin-top: 150px;
  position: relative;
  width: 90%;
  max-width: 700px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: visible;
  margin-left: auto;
  margin-right: auto;
}

.close-modal {
  background-color: brown;
  color: #ffc451 !important;
  border: 2px solid black;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  padding: 0;
  text-align: center;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

video {
  width: 100%;
  height: auto;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .modal-content {
    margin-top: 180px;
  }
}

.btn-video {
    background-color: #ff5a5f;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-video:hover {
    background-color: #ff3b44;
}

.btn-video i {
    font-size: 30px;
}

@media (min-width: 768px) {
    .btn-video {
        width: 80px;
        height: 80px;
        border-radius: 50%;
    }

    .btn-video i {
        font-size: 35px;
    }
}

