/* =========================================================
   SISTEMA OFICIAL DE ANUNCIOS - MU-SANMIGUEL
   Popup Slider / Banners Rotativos
========================================================= */

/* =========================================
   OVERLAY FONDO OSCURO + BLUR
========================================= */
#smg-popup-overlay{
    position:fixed !important;
    inset:0 !important;

    width:100vw !important;
    height:100vh !important;

    display:none !important;

    justify-content:center !important;
    align-items:center !important;

    z-index:99998 !important;

    background:rgba(0,0,0,0.55);

    backdrop-filter:blur(7px);
    -webkit-backdrop-filter:blur(7px);

    padding:20px;
    box-sizing:border-box;

    overflow:auto !important;
}

/* Clase que activa el popup desde el JS */
#smg-popup-overlay.smg-popup-visible{
    display:flex !important;
}

/* =========================================
   POPUP PRINCIPAL
========================================= */
.smg-popup{
    position:relative !important;

    width:960px;
    max-width:95vw;

    margin:auto !important;

    border-radius:16px;

    animation:smgPopupShow .40s ease;

    z-index:99999 !important;

    box-shadow:
        0 0 12px rgba(198,137,70,.45),
        0 0 28px rgba(198,137,70,.35),
        0 0 55px rgba(198,137,70,.25);
}

/* =========================================
   AURA DORADA ANIMADA
========================================= */
.smg-popup::before{
    content:"";

    position:absolute;

    top:-6px;
    left:-6px;
    right:-6px;
    bottom:-6px;

    border-radius:18px;

    background:linear-gradient(
        45deg,
        rgba(198,137,70,.15),
        rgba(255,215,120,.35),
        rgba(198,137,70,.15)
    );

    z-index:-1;

    animation:smgGlowPulse 2.8s infinite ease-in-out;
}

/* =========================================
   SLIDER
========================================= */
.smg-popup-slides{
    position:relative;
    width:100%;
    overflow:hidden;
    border-radius:16px;
}

.smg-popup-slide{
    display:none;
    width:100%;
    animation:smgSlideFade .35s ease;
}

.smg-popup-slide.active{
    display:block;
}

/* =========================================
   IMAGEN
========================================= */
.smg-popup-slide img{
    width:100% !important;
    max-width:100% !important;
    height:auto !important;

    display:block;

    border-radius:16px;

    box-shadow:0 0 30px rgba(0,0,0,.75);
}

/* =========================================
   BOTÓN CERRAR
========================================= */
.smg-popup-close{
    position:absolute;

    top:-16px;
    right:-16px;

    width:42px;
    height:42px;

    border:none;
    border-radius:50%;

    background:linear-gradient(145deg,#FFD36B,#C68946);

    color:#111;

    font-size:22px;
    font-weight:bold;
    line-height:42px;
    text-align:center;

    cursor:pointer;

    z-index:10;

    transition:all .25s ease;

    box-shadow:
        0 0 10px rgba(198,137,70,.6),
        0 0 20px rgba(198,137,70,.4);
}

.smg-popup-close:hover{
    transform:scale(1.12) rotate(90deg);
    background:linear-gradient(145deg,#FFE7A3,#D89A4C);

    box-shadow:
        0 0 14px rgba(255,215,120,.8),
        0 0 28px rgba(255,215,120,.6);
}

.smg-popup-close:active{
    transform:scale(.95);
}

/* =========================================
   BOTÓN INFORMACIÓN
========================================= */
.smg-popup-btn{
    display:block !important;

    margin-top:14px;
    padding:14px 18px;

    text-align:center;
    text-decoration:none !important;

    font-size:15px;
    font-weight:bold;
    letter-spacing:.5px;

    color:#fff !important;

    border-radius:12px;

    background:linear-gradient(145deg,#C68946,#E0A85A);

    transition:all .25s ease;

    box-shadow:0 0 12px rgba(198,137,70,.45);
}

.smg-popup-btn:hover{
    transform:translateY(-2px);

    color:#fff !important;
    text-decoration:none !important;

    background:linear-gradient(145deg,#E0A85A,#FFD36B);

    box-shadow:
        0 0 18px rgba(255,215,120,.75),
        0 0 30px rgba(255,215,120,.35);
}

/* =========================================
   FLECHAS DEL SLIDER
========================================= */
.smg-popup-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);

    width:42px;
    height:52px;

    border:none;
    border-radius:10px;

    background:rgba(0,0,0,.58);
    color:#FFD36B;

    font-size:28px;
    font-weight:bold;
    line-height:52px;
    text-align:center;

    cursor:pointer;
    z-index:8;

    transition:all .25s ease;

    box-shadow:0 0 12px rgba(0,0,0,.55);
}

.smg-popup-prev{
    left:12px;
}

.smg-popup-next{
    right:12px;
}

.smg-popup-nav:hover{
    background:rgba(198,137,70,.92);
    color:#111;
}

/* =========================================
   PUNTOS DEL SLIDER
========================================= */
.smg-popup-dots{
    width:100%;
    text-align:center;
    margin-top:12px;
}

.smg-popup-dot{
    width:12px;
    height:12px;

    margin:0 4px;

    border:none;
    border-radius:50%;

    background:#555;

    cursor:pointer;

    transition:all .25s ease;
}

.smg-popup-dot.active{
    background:#FFD36B;
    box-shadow:0 0 10px rgba(255,211,107,.75);
}

/* =========================================
   ANIMACIONES
========================================= */
@keyframes smgPopupShow{
    from{
        opacity:0;
        transform:scale(.92);
    }

    to{
        opacity:1;
        transform:scale(1);
    }
}

@keyframes smgSlideFade{
    from{
        opacity:0;
    }

    to{
        opacity:1;
    }
}

@keyframes smgGlowPulse{
    0%{
        opacity:.4;
        transform:scale(1);
    }

    50%{
        opacity:.9;
        transform:scale(1.03);
    }

    100%{
        opacity:.4;
        transform:scale(1);
    }
}

/* =========================================
   RESPONSIVE MOBILE
========================================= */
@media(max-width:768px){

    #smg-popup-overlay{
        padding:12px;
        align-items:center !important;
    }

    .smg-popup{
        width:100%;
        max-width:96vw;
    }

    .smg-popup-slide img{
        border-radius:14px;
    }

    .smg-popup-close{
        top:-10px;
        right:-10px;

        width:38px;
        height:38px;

        font-size:20px;
        line-height:38px;
    }

    .smg-popup-btn{
        font-size:13px;
        padding:12px;
    }

    .smg-popup-nav{
        width:34px;
        height:44px;

        line-height:44px;
        font-size:22px;
    }

    .smg-popup-prev{
        left:6px;
    }

    .smg-popup-next{
        right:6px;
    }
}
/* =========================================
   SLIDE 3: COMUNICADO TEXTO
========================================= */
.smg-popup-comunicado{
    width:100%;
    height:513px;          /* <-- altura igual para PC - ALTURA OFICIAL DEL SLIDE DE TEXTO Debe coincidir visualmente con los banners de 1717x916 del popup.*/ 
    box-sizing:border-box;
    border-radius:16px;

    display:flex;
    flex-direction:column;
    justify-content:center;

    padding:38px 70px;

    background:linear-gradient(180deg,#1b1207 0%,#080808 100%);
    border:1px solid rgba(198,137,70,.75);

    color:#fff;
    text-align:center;

    box-shadow:0 0 30px rgba(0,0,0,.75);
}

.smg-popup-comunicado h2{
    margin:0 0 12px;
    color:#FFD36B;
    font-size:30px;
    font-weight:bold;
}

.smg-popup-comunicado h3{
    margin:0 0 18px;
    color:#fff;
    font-size:20px;
    line-height:1.35;
}

.smg-popup-comunicado p{
    max-width:780px;
    margin:10px auto;
    font-size:14px;
    line-height:1.55;
}

.smg-popup-comunicado strong{
    color:#FFD36B;
}

.smg-popup-importante{
    max-width:760px;
    margin:18px auto;
    padding:12px 18px;

    border:1px solid rgba(198,137,70,.55);
    border-radius:10px;

    background:rgba(198,137,70,.10);

    color:#fff;
    font-size:14px;
    line-height:1.5;
}

.smg-popup-firma{
    margin-top:16px;
    color:#FFD36B;
    font-size:13px;
    font-weight:bold;
}

/* =========================================
   MOBILE SLIDE 3
========================================= */
@media(max-width:768px){

    .smg-popup-comunicado{
        height:auto;              /* En móvil vuelve a ser automático */
        min-height:unset;
        display:block;
        padding:22px 22px 18px;
        border-radius:14px;
    }

    .smg-popup-comunicado h2{
        font-size:20px;
        margin-bottom:8px;
    }

    .smg-popup-comunicado h3{
        font-size:14px;
        line-height:1.3;
        margin-bottom:10px;
    }

    .smg-popup-comunicado p{
        font-size:12px;
        line-height:1.35;
        margin:7px auto;
    }

    .smg-popup-importante{
        margin:10px auto;
        padding:9px 12px;
        font-size:12px;
        line-height:1.35;
    }

    .smg-popup-firma{
        display:none;
    }

    .smg-popup-slide .smg-popup-btn{
        font-size:12px;
        padding:11px 10px;
        margin-top:10px;
        border-radius:10px;
    }
}