.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.custom-modal-content {
    background: none;
    padding: 0;
    border-radius: 0;
    position: relative;
    text-align: center;
    width: 800px;
    height: 700px;
}
.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    color: white;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.aviso-img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}
.avisosSwiper {
    width: 100%;
    position: relative;
}
/* Flechas sobre la imagen */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.swiper-button-next.aviso {
    right: 10px;
}
.swiper-button-prev.aviso {
    left: 10px;
}
/* Fondo oscuro */
.modal-sede {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}
  /* Caja blanca */
.modal-sede-content {
    background: #fff;
    border-radius: 12px;
    max-width: 90%;
    width: 100%;
    max-height: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: sede-fade-in 0.3s ease;
}
  /* Cerrar */
.modal-sede-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}
.modal-sede-body iframe {
    width: 100%;
    height: 800px;
    border: 0;
}
/*tuition*/
.modal-tuition {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 40px 15px;
}
.modal-tuition-content {
    background: #fff;
    margin: auto;
    max-width: 70%;
    animation: showModal 0.3s ease-in-out;
    position: relative;
}
.modal-tuition-close {
    position: absolute;
    top: 15px;
    right: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    background-color: #0049af;
    color: #fff;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.modal-tuition-close:hover {
    background-color: #003580;
}
  /* Animación */
@keyframes sede-fade-in {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}
@keyframes showModal {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 768px) {
    .custom-modal-content{
        width: 80%;
    }
    .modal-tuition-content{
        max-width: 90%;
    }
}
@media (max-width: 425px) {
    .custom-modal-content{
        width: 80%;
        height: 50%;
    }
    .modal-tuition-content{
        max-width: 90%;
    }
}