/* =========================================================
   MODAL DE NOVEDADES - AdAA2026
   ========================================================= */


/* Fondo que cubre toda la página */

.newsOverlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}


    /* Modal visible */

    .newsOverlay.is-visible {
        opacity: 1;
        visibility: visible;
    }


/* =========================================================
   VENTANA
   ========================================================= */

.newsModal {
    position: relative;
    width: min(620px, 94vw);
    background: rgba(255,255,255,0.97);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s ease;
    color: #111;
}


/* Animación al aparecer */

.newsOverlay.is-visible .newsModal {
    transform: translateY(0) scale(1);
}


/* =========================================================
   FRANJA SUPERIOR
   ========================================================= */

.newsModal__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient( 90deg, var(--teal), var(--burgundy) );
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
}


/* pequeño punto */

.newsModal__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.18);
}


/* =========================================================
   BOTÓN CERRAR
   ========================================================= */

.newsModal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
}


    .newsModal__close:hover {
        background: rgba(255,255,255,0.18);
        transform: rotate(90deg);
    }


/* =========================================================
   CONTENIDO
   ========================================================= */

.newsModal__body {
    padding: 32px 34px 34px;
    text-align: center;
}


.newsModal__date {
    margin-bottom: 9px;
    color: var(--burgundy);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}


.newsModal__body h2 {
    margin: 0;
    color: #000;
    font-size: clamp(25px, 4vw, 34px);
    font-weight: 900;
    line-height: 1.15;
}


/* Línea decorativa */

.newsModal__line {
    width: 70px;
    height: 4px;
    margin: 18px auto 22px;
    border-radius: 999px;
    background: linear-gradient( 90deg, var(--teal), var(--burgundy) );
}


.newsModal__body p {
    max-width: 520px;
    margin: 0 auto 14px;
    color: rgba(0,0,0,0.68);
    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   BOTONES
   ========================================================= */

.newsModal__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}


/* botón principal */

.newsModal__primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    background: linear-gradient( 90deg, var(--teal), var(--burgundy) );
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


    .newsModal__primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    }


    .newsModal__primary span {
        font-size: 19px;
        line-height: 1;
    }


/* botón secundario */

.newsModal__secondary {
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.12);
    color: rgba(0,0,0,0.72);
    font-family: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: background 0.2s ease;
}


    .newsModal__secondary:hover {
        background: rgba(0,0,0,0.08);
    }


/* =========================================================
   EVITAR SCROLL CUANDO ESTÁ ABIERTO
   ========================================================= */

body.newsModalOpen {
    overflow: hidden;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 600px) {

    .newsOverlay {
        padding: 14px;
    }

    .newsModal {
        width: 100%;
        border-radius: 18px;
    }

    .newsModal__header {
        padding: 13px 18px;
    }

    .newsModal__body {
        padding: 26px 20px 24px;
    }

    .newsModal__actions {
        flex-direction: column;
        width: 100%;
    }

    .newsModal__primary,
    .newsModal__secondary {
        width: 100%;
    }
}
/* =========================================================
   NOVEDAD DESTACADA - EXTENSIÓN DE PLAZOS
   ========================================================= */

.newsModal__highlight {
    margin: 18px 0 22px;
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.035);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--burgundy);
    text-align: left;
}

    .newsModal__highlight h3 {
        margin: 0 0 10px;
        color: var(--burgundy);
        font-size: 1.25rem;
        font-weight: 800;
    }

    .newsModal__highlight p {
        max-width: none;
        margin: 6px 0;
    }

.newsModal__deadline {
    margin-top: 12px !important;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: #111 !important;
    font-size: 1.05rem !important;
}


/* =========================================================
   NOVEDAD SECUNDARIA - CURSOS
   ========================================================= */

.newsModal__courses {
    margin: 0 0 20px;
}

    .newsModal__courses h3 {
        margin: 0 0 8px;
        color: #111;
        font-size: 1.1rem;
        font-weight: 700;
    }

    .newsModal__courses p {
        margin: 0 auto;
    }