/* Overlay de fondo oscuro */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: pointer;
}

/* Contenido del popup */
.popup-overlay .popup-content {
  background: rgba(255, 255, 255, 0.9);
  width: 90%;
  max-width: 1100px; /* Ancho máximo en escritorio */
  max-height: 80vh; /* Máximo 90% del alto de la pantalla */
  overflow: hidden; /* Para contener el scroll interno */
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: fadeIn 0.3s ease-out;
  cursor: default;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  margin-top: 3%;
}
/* Encabezado del popup */
.popup-content-header {
  padding: 40px 20px 30px 20px;
}
.popup-content-header h3 {
}
/* Cuerpo del popup con scroll */
.popup-content-body {
  padding: 20px 40px;
  overflow-y: auto; /* Scroll solo cuando es necesario */
  max-height: 70vh; /* Altura máxima del contenido antes de scrollear */
}
.popup-content-body h3 {
  font-family: Nunito;
  padding-top: 20px;
}
.popup-content-title {
  padding-top: 0 !important;
  padding-bottom: 10px !important;
  margin: 0;
}
/* Barra de desplazamiento (opcional: personalizar si quieres) */
.popup-content-body::-webkit-scrollbar {
  width: 6px;
}
.popup-content-body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.popup-content-body::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}
body.popup-active {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.popup-content-footer {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding-bottom: 20px;
  padding-top: 10px;
  height: 90px;
}
.content-left {
  display: flex;
  flex-direction: row;
  width: 50%;
  align-items: center;
}

.content-left img {
  height: 100%;
}

.inner-left {
  display: flex;
  width: 50%;
  height: 100%;
  flex-direction: row-reverse;
  padding-right: 30px;
}

.inner-right {
  background-color: #d2ffda;
  width: 50%;
  height: 100%;
}

.content-right {
  width: 50%;
}
/* Botón de cerrar (la "X") */
.popup-close {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 48px;
  font-weight: bold;
  color: #023d3c;
  padding: 5px;
  cursor: pointer;
  line-height: 1;
  z-index: 10001;
  background: transparent;
  border: none;
}

.popup-close:hover {
  color: #023d3c;
}

/* Animación suave */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive: Móvil */
@media (max-width: 768px) {
  .popup-overlay .popup-content {
    width: 94%;
    max-width: none;
    border-radius: 8px;
    /* padding: 16px; */
    max-height: 66vh;
    margin-top: 10%;
  }

  .popup-content-header {
    padding: 15px 15px 10px 0px;
  }
  .popup-content-header img {
    width: 50%;
  }
  .popup-content-title {
    font-size: 30px;
    line-height: unset;
  }
  .popup-content-body h3 {
    font-size: 25px;
    line-height: 1;
  }

  .popup-content-body p {
    line-height: 1.4;
  }

  .popup-content-footer {
    height: 80px;
  }

  .inner-left {
    padding-right: 15px;
  }

  .popup-close {
    top: 8px;
    right: 12px;
    padding: 5px;
    font-size: 30px;
  }

  .popup-content-body {
    padding: 15px;
    max-height: 80vh;
    font-size: 15px;
  }
}

/* Responsive: Escritorio */
@media (min-width: 769px) {
}
