/* Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex !important;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Contenedor */
.popup-content {
    background: #fff;
    padding: 20px 0 0 0;
    max-width: 600px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
    overflow: hidden;
    position: relative;
    text-align: center;
}

/* Botón X */
.popup-close-x {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 22px;
    cursor: pointer;
    background: #fff;
    border-radius: 50%;
    padding: 3px 8px;
    line-height: 1;
    border: 2px solid black;
    color: black;
    font-weight: bold;
}

/* Título */
.popup-title {
    font-size: 26px;
    color: #669932 !important;
    margin: 20px 0 10px;
    font-family: 'Arial', sans-serif;
}

/* Subtítulo */
.popup-subtitle {
    font-size: 20px;
    font-weight: bold;
    color: #d65d72;
    margin-bottom: 15px;
    margin-top: 20px;
}

/* Botón principal */
.popup-button {
    display: inline-block;
    background: #679a35;
    color: #fff;
    padding: 12px 50px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px auto 15px;
    margin-bottom: -15px;
    position: relative;
    transition: background 0.3s;
}

.popup-button:hover {
    background: #2f7d2f;
    color: #fff !important;
}

/* Imagen grande ocupando ancho completo */
.popup-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: -12px;
    border-radius: 0 !important;
}

/* Botón “No mostrar de nuevo” */
.popup-dismiss {
    background: #6f2538;
    color: #fff;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}

.popup-dismiss:hover {
    background: #571c2c;
}