
/* =========================================
   MODAL DE ADMISIONES - COLEGIO SAGRADA FAMILIA
   ========================================= */

/* FONDO OSCURO */
.modal-overlay {
    position: fixed !important;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    z-index: 999999 !important;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 15px;
    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.78);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}

/* MODAL VISIBLE */
.modal-overlay.activo {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =========================================
   CONTENIDO DEL MODAL
   ========================================= */

.modal-contenido {
    position: relative;

    width: 100%;
    max-width: 650px;
    max-height: 90vh;

    background: #ffffff;
    border-radius: 12px;
    padding: 15px;

    box-sizing: border-box;
    overflow-y: auto;

    transform: translateY(-100px);
    transition: transform 0.5s ease;
}

/* ANIMACIÓN DE ENTRADA */
.modal-overlay.activo .modal-contenido {
    transform: translateY(0);
}

/* =========================================
   IMAGEN DEL MODAL
   ========================================= */

.banner-modal {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    object-fit: contain;
    border-radius: 8px;
}

/* =========================================
   BOTÓN CERRAR
   ========================================= */

.cerrar-modal {
    position: absolute;
    top: 8px;
    right: 8px;

    display: flex;
    justify-content: center;
    align-items: center;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;

    background: #ffffff;
    color: #222222;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
    z-index: 10;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cerrar-modal:hover {
    background: #eeeeee;
}

/* =========================================
   CONTENEDOR DE BOTONES
   ========================================= */

.botones-modal {
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    width: 100%;
    gap: 10px;

    margin-top: 15px;
}

/* =========================================
   ESTILO GENERAL DE BOTONES
   ========================================= */

.boton-modal {
    display: block;

    width: 75%;
    max-width: 340px;
    min-height: 42px;

    padding: 12px 15px;

    box-sizing: border-box;

    text-align: center;
    text-decoration: none;

    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;

    color: #ffffff !important;

    border: none;
    border-radius: 6px;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.boton-modal:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    text-decoration: none;
}

/* COLORES DE LOS BOTONES */

.boton-open {
    background: #174b86;
}

.boton-open:hover {
    background: #10365f;
}

.boton-formulario {
    background: #d39a24;
}

.boton-formulario:hover {
    background: #b58016;
}

.boton-whatsapp {
    background: #198754;
}

.boton-whatsapp:hover {
    background: #126c42;
}

/* =========================================
   TABLETAS
   ========================================= */

@media screen and (max-width: 768px) {

    .modal-overlay {
        padding: 12px;
    }

    .modal-contenido {
        width: 90%;
        max-width: 550px;
        padding: 12px;
    }

    .boton-modal {
        width: 80%;
        max-width: 320px;
        font-size: 13px;
    }

}

/* =========================================
   CELULARES
   ========================================= */

@media screen and (max-width: 576px) {

    .modal-overlay {
        padding: 10px;
    }

    .modal-contenido {
        width: 100%;
        max-width: 420px;

        max-height: 92vh;
        padding: 10px;

        border-radius: 10px;
    }

    .banner-modal {
        width: 100%;
        height: auto;
    }

    .botones-modal {
        gap: 8px;
        margin-top: 10px;
    }

    .boton-modal {
        width: 85%;
        max-width: 280px;

        min-height: 38px;
        padding: 10px 8px;

        font-size: 12px;
        line-height: 1.3;
    }

    .cerrar-modal {
        width: 32px;
        height: 32px;
        font-size: 24px;
        top: 6px;
        right: 6px;
    }

}

/* =========================================
   CELULARES PEQUEÑOS
   ========================================= */

@media screen and (max-width: 360px) {

    .modal-overlay {
        padding: 6px;
    }

    .modal-contenido {
        width: 100%;
        padding: 8px;
    }

    .botones-modal {
        gap: 7px;
    }

    .boton-modal {
        width: 90%;
        max-width: 250px;

        min-height: 36px;
        padding: 9px 5px;

        font-size: 11px;
    }

    .cerrar-modal {
        width: 29px;
        height: 29px;
        font-size: 22px;
    }

}

/* =========================================
   PANTALLAS BAJAS
   ========================================= */

@media screen and (max-height: 600px) {

    .modal-contenido {
        max-height: 94vh;
        overflow-y: auto;
    }

    .botones-modal {
        gap: 6px;
        margin-top: 8px;
    }

    .boton-modal {
        min-height: 34px;
        padding: 8px;
    }

}

/* =========================================
   ACCESIBILIDAD: REDUCIR ANIMACIONES
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    .modal-overlay,
    .modal-contenido,
    .boton-modal {
        transition: none;
    }

}

