/* Fondo oscuro */
#popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9998;
}

/* Contenedor del popup */
#popup {
    position: relative;
    color: white;
    width: 350px;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-family: Arial, sans-serif;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.4);
    z-index: 9999;
    animation: fadeIn 0.5s ease-in-out;
    
    /* Fondo con patrón */
    background: url("/img/bg_patern_white.png") center center / cover no-repeat;
    overflow: hidden; /* para que no sobresalga nada del overlay */
}

/* Capa de color verde con transparencia */
#popup::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(79, 174, 71, 0.9); /* Verde claro con 90% de opacidad */
    border-radius: 15px; /* mismo borde que el popup */
    z-index: -1; /* se queda detrás del contenido */
}


@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}

/* Botón cerrar */
#close-btn {
  position: absolute;
  top: 10px; right: 10px;
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* Texto de oferta */
.offer-badge {
  background:#C8CE2A;
  color:#08531C;
  display:inline-block;
  padding:2px 8px;
  border-radius:5px;
  font-size:14px;
  font-weight:bold;
}

.h2_coupon {
  margin:10px 0;
  background:#08531C;
  display:inline-block;
  padding:4px 10px;
  border-radius:5px;
  color: #C8CE2A;
}

.h1_coupon {
  font-size:40px;
  margin:15px 0;
  color: #08531C;
}

/* Botón cupón */
.coupon-btn {
  display: block;
  margin: 15px auto;
  padding: 12px;
  background: #08531C;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  width: 90%;
}

/* Mensaje de copiado */
#copy-message {
  margin-top: 8px;
  font-size: 14px;
  color: #C8CE2A;
  display: none;
}

/* Botón de compra */
.buy-btn,.send-btn{
  display: inline-block;
  margin-top: 15px;
  padding: 12px;
  background: #C8CE2A;
  color: black!important;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  width: 90%;
  font-size: 16px;
  border: none;
}





/* Centrar solo el placeholder */
.coupon-btn::placeholder {
  text-align: center;
  color:white;
}

.send-btn:hover{
  padding: 12px;
  background: #08531C;
  color: white!important;
  font-size: 16px;
  cursor: pointer;
}



