/* Estilos para el popup modal de newsletter */

.popup-modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6); /* Fondo oscuro semitransparente */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.popup-content {
  position: relative;
  background-color: #fff;
  margin: auto;
  padding: 0;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 650px;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  overflow: visible;
}

.popup-modal.active .popup-content {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: -50px;
  right: 0px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 9999;
}

.popup-close:hover {
  color: #ccc;
}

.popup-container {
  display: flex;
  flex-direction: row;
  height: 100%;
}

.popup-form-content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.popup-form-content form,
.popup-form-content form .mc4wp-form-fields p:last-child {
  margin-bottom: 0;
}

.popup-image-content {
  flex: 1;
  position: relative;
}

.image-wrapper {
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.newsletter-popup-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.popup-title {
  margin-bottom: 10px;
  color: #333;
}

.popup-title strong {
  font-size: 20px;
}

/* Floating gift icon */
.popup-float-icon {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--LightCyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 9998;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.popup-float-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.popup-float-icon i {
  color: var(--negro);
  font-size: 28px;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .popup-content {
    width: 95%;
    max-width: 400px;
    max-height: 95vh;
  }

  .popup-container {
    flex-direction: column-reverse;
    height: auto;
    max-height: 85vh;
  }

  .popup-form-content {
    padding: 90px 15px 90px;
    font-size: 14px;
    overflow-y: hidden;
    max-height: 60vh;
  }

  .popup-form-content form,
  .popup-form-content form p {
    margin: 0;
  }

  .popup-form-content input,
  .popup-form-content button {
    font-size: 14px;
    padding: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .popup-title {
    font-size: 18px;
    margin-bottom: 0;
  }

  .popup-title > p:first-child {
    margin-bottom: 10px;
  }

  .popup-image-content {
    height: 120px;
    width: 100%;
    overflow: hidden;
  }

  .image-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
  }

  .popup-close {
    top: -33px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
