/* --- CSS FINAL (CON TRANSPARENCIA REAL Y ORDEN CORREGIDO) --- */

.popup-findepromos {
    position: relative;
    /* ¡CAMBIO IMPORTANTE! El fondo es transparente */
    background: transparent !important;
    width: 626px !important;
    max-width: 90%;
    padding: 0 !important;
    border-radius: 12px;
    overflow: hidden;
}

/* --- ESTA ES LA MAGIA --- */
/* Capa de fondo (CON imagen y color) que SÍ será transparente */
.popup-findepromos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* 1. Color naranja de fondo */
    background-color: #f76900;
    /* 2. Imagen de fondo (edificio) */
    background-image: url('../img/popup-finde-fondo.png');
    background-size: cover;
    background-position: center;

    /* 3. Transparencia que pidió Marketing */
    opacity: 0.9;

    z-index: 1;
    /* Detrás del contenido */
    border-radius: 12px;
}

/* Contenido (textos, botón, logo) */
.popup-findepromos .promo-contenido {
    position: relative;
    /* Para ponerse sobre la capa de fondo */
    z-index: 2;
    /* Encima de ::before (z-index: 1) */
    width: 65%;
    margin-left: 35%;
    padding: 40px 30px;
    box-sizing: border-box;
    color: #ffffff;
    text-align: center;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
}

/* Botón de cerrar 'X' */
.popup-findepromos .swal2-close {
    color: #ffffff;
    top: 15px;
    right: 15px;
    z-index: 3;
    /* Encima de todo */
}

/* --- Textos (H2, H3, P) --- */
.popup-findepromos h2 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.popup-findepromos h3 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #ffffff;
}

/* AJUSTE DE ESPACIADO: Texto 'p' */
.popup-findepromos p {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #ffffff;
    /* Espacio entre texto y LOGO */
    margin-bottom: 25px;
}

/* --- CSS para la leyenda de fechas --- */
.popup-findepromos .promo-leyenda {
    display: block;
    /* Para que ocupe su propia línea */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    /* Letra ligera */
    font-size: 0.8rem;
    /* Letra pequeña (chiquita) */
    color: #ffffff;
    /* Color blanco */
    margin-top: 20px;
    /* Espacio para separarlo del botón */
    opacity: 0.8;
    /* Un poco atenuado para que no compita */
}

/* AJUSTE DE ORDEN: Logo GDC */
.popup-findepromos .promo-logo {
    width: 100px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    /* Espacio entre logo y BOTÓN */
    margin-bottom: 30px;
}

/* AJUSTE DE ORDEN: Botón "Agenda tu visita" */
.popup-findepromos .promo-boton {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
    background-color: #ffffff;
    color: #333333;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    /* Limpiamos márgenes */
    margin-top: 0;
    margin-bottom: 0;
}

.popup-findepromos .promo-boton:hover {
    transform: scale(1.05);
    background-color: #f4f4f4;
}

/* --- Media Query para Móviles --- */
@media (max-width: 768px) {
    .popup-findepromos {
        /* Sigue siendo transparente */
        background: transparent !important;
    }

    .popup-findepromos::before {
        /* En móvil, solo usamos el fondo naranja, sin imagen */
        background-image: none !important;
        background-color: #f76900;
        /* Mantenemos la transparencia de marketing */
        opacity: 0.9;
    }

    .popup-findepromos .promo-contenido {
        width: 100%;
        margin-left: 0;
        padding: 30px 20px;
        min-height: 400px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}