﻿/*==================================================
    CENTRO DE NOVEDADES
==================================================*/

.modal-avisos {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: .30s;
}

    .modal-avisos.activo {
        opacity: 1;
        visibility: visible;
    }


/*==================================================
    VENTANA
==================================================*/

.modal-aviso {
    position: relative;
    width: 760px;
    max-width: 94vw;
    max-height: 92vh;
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: zoom .25s;
}

@keyframes zoom {

    from {
        transform: scale(.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


/*==================================================
    CERRAR
==================================================*/

.cerrar-aviso {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    z-index: 100;
    transition: .2s;
}

    .cerrar-aviso:hover {
        transform: rotate(90deg);
    }


/*==================================================
    CABECERA
==================================================*/

.cabecera-aviso {
    background: linear-gradient( 135deg, #1976d2, #2989e8 );
    color: #fff;
    text-align: center;
    padding: 28px;
    border-radius: 20px 20px 0 0;
}

.aviso-icono {
    font-size: 54px;
    margin-bottom: 15px;
}

.titulo {
    font-size: 32px;
    font-weight: bold;
}


/*==================================================
    CONTENIDO
==================================================*/

.contenido-aviso {
    padding: 40px 80px 25px;
}

.imagen {
    display: none;
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    margin: 0 auto 25px;
    object-fit: contain;
    border-radius: 10px;
}

    .imagen.visible {
        display: block;
        border: 1px solid #ddd;
        background: #f8f8f8;
        padding: 8px;
    }

.mensaje {
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
}


/*==================================================
    NAVEGACION
==================================================*/

.barra-navegacion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 30px;
}

.btn-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #444;
    background: #fff;
    cursor: pointer;
    transition: .2s;
    flex-shrink: 0;
}

    .btn-nav:hover {
        background: #1976d2;
        color: #fff;
        border-color: #1976d2;
    }

.centro-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.indicadores {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

    .indicadores span {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #d0d0d0;
        cursor: pointer;
        transition: .2s;
    }

        .indicadores span.activo {
            background: #1976d2;
            transform: scale(1.3);
        }

.contador {
    color: #777;
    font-size: 14px;
}


/*==================================================
    BOTON
==================================================*/

.aviso-acciones {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.btnAccion {
    min-width: 240px;
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    background: #1976d2;
    color: #fff;
    cursor: pointer;
    font-size: 17px;
    transition: .2s;
}

    .btnAccion:hover {
        background: #125ea7;
    }


/*==================================================
    PIE
==================================================*/

.pie-aviso {
    text-align: center;
    padding: 0 25px 25px;
    color: #666;
    font-size: 14px;
}


/*==================================================
    RESPONSIVE
==================================================*/

@media(max-width:700px) {

    .modal-aviso {
        width: 96vw;
    }

    .cabecera-aviso {
        padding: 20px;
    }

    .titulo {
        font-size: 25px;
    }

    .aviso-icono {
        font-size: 42px;
    }

    .contenido-aviso {
        padding: 20px 18px 12px;
    }

    .mensaje {
        font-size: 16px;
    }

    .barra-navegacion {
        margin: 15px;
    }

    .btn-nav {
        width: 40px;
        height: 40px;
    }

    .btnAccion {
        min-width: 200px;
    }

    .imagen {
        max-height: 180px;
    }
}
