/* --------------------------------- */
/* 1. Estilos del Overlay y Pop-up (OCULTAR POR DEFECTO) */
/* --------------------------------- */
.overlay {
    /* Ocupa toda la pantalla */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fondo semitransparente */
    background-color: rgba(0, 0, 0, 0.7); 
    
    /* Ocultar por defecto */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    
    /* Asegura que esté por encima de todo */
    z-index: 1000; 

    /* Centrar contenido */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Clase para MOSTRAR el pop-up (añadida con JS) */
.overlay.active {
    visibility: visible;
    opacity: 1;
}

/* --------------------------------- */
/* 2. Estilos del Contenido del Pop-up */
/* --------------------------------- */
.popup-content {
    background-color: #ffffff;
    padding: 5px 5px;
    border-radius: 10px;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    /* Efecto de entrada */
    transform: scale(0.9);
    transition: transform 0.3s ease-out;
}

.overlay.active .popup-content {
    /* El pop-up aparece con un poco de zoom */
    transform: scale(1);
}

/* --------------------------------- */
/* 3. Estilos de los Elementos Internos */
/* --------------------------------- */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 25px;
    cursor: pointer;
    color: #FFF;
}

.promo-img {
    width: 100%;
    max-width: 433px;
    margin-bottom: 0px;
}

.codigo {
    font-size: 1.2em;
    color: #c0392b;
    border: 2px dashed #c0392b;
    padding: 8px;
    display: inline-block;
    margin: 15px 0;
}

.cta-btn {
    display: block;
    background-color: #63c7c3; /* Verde atractivo */
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    margin-top: 0px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.cta-btn:hover {
    background-color: #197571;
}