
/*
 * Enlace principal de novedades.
 */
.navbar-nav > li.nav-news-link > a {
    color: #d98a16;
    font-weight: 700;
}

.navbar-nav > li.nav-news-link > a:hover,
.navbar-nav > li.nav-news-link > a:focus,
.navbar-nav > li.nav-news-link.open > a,
.navbar-nav > li.nav-news-link.open > a:hover,
.navbar-nav > li.nav-news-link.open > a:focus {
    color: #b96d08;
    background: rgba(239, 165, 43, .1);
}


/*
 * Indicador animado.
 *
 * Se anima solamente el punto, no todo el texto,
 * para evitar un parpadeo excesivo.
 */
.nav-news-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 4px;
    vertical-align: 1px;

    background: #f0a126;
    border-radius: 50%;

    box-shadow:
        0 0 0 0
        rgba(240, 161, 38, .5);

    animation:
        navNewsPulse
        2.2s
        ease-out
        infinite;
}

@keyframes navNewsPulse {
    0% {
        box-shadow:
            0 0 0 0
            rgba(240, 161, 38, .55);
    }

    65% {
        box-shadow:
            0 0 0 8px
            rgba(240, 161, 38, 0);
    }

    100% {
        box-shadow:
            0 0 0 0
            rgba(240, 161, 38, 0);
    }
}


/*
 * Contenedor del desplegable.
 */
.nav-news-menu {
    width: 370px;
    padding: 8px 0;

    border: 1px solid #e3e8eb;
    border-radius: 8px;

    box-shadow:
        0 12px 30px
        rgba(26, 49, 64, .18);
}

.nav-news-menu__header {
    display: flex;
    flex-direction: column;
    gap: 2px;

    padding: 8px 16px 6px;
}

.nav-news-menu__header strong {
    color: #233f52;
    font-size: 15px;
}

.nav-news-menu__header span {
    color: #738692;
    font-size: 12px;
    font-weight: 400;
}


/*
 * Cada vídeo.
 */
.nav-news-menu > li > a.nav-news-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 11px 16px;

    white-space: normal;
}

.nav-news-menu > li > a.nav-news-item:hover,
.nav-news-menu > li > a.nav-news-item:focus {
    background: #fff7e9;
}

.nav-news-item__icon {
    flex: 0 0 auto;

    margin-top: 3px;

    color: #e4931c;
    font-size: 19px;
}

.nav-news-item__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;

    min-width: 0;
}

.nav-news-item__content strong {
    color: #294659;
    font-size: 13px;
    line-height: 1.3;
}

.nav-news-item__content small {
    color: #6a7d89;
    font-size: 11px;
    line-height: 1.4;
}

.nav-news-item__content em {
    margin-top: 2px;

    color: #c8790d;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}


/*
 * Vídeos todavía no publicados.
 */
.nav-news-menu > li.is-disabled > a {
    cursor: default;
    opacity: .58;
}

.nav-news-menu > li.is-disabled > a:hover,
.nav-news-menu > li.is-disabled > a:focus {
    background: transparent;
}


/*
 * Accesibilidad: quitar la animación cuando
 * el usuario ha solicitado reducir movimiento.
 */
@media (prefers-reduced-motion: reduce) {
    .nav-news-indicator {
        animation: none;
    }
}


/*
 * Adaptación al menú móvil de Bootstrap.
 */
@media (max-width: 767px) {
    .nav-news-menu {
        width: auto;
        margin: 0 12px;

        border: 0;
        border-radius: 5px;

        box-shadow: none;
    }

    .nav-news-menu > li > a.nav-news-item {
        padding-left: 18px;
        padding-right: 18px;
    }

    .nav-news-menu__header strong {
    color: #cbc7c7;
    font-size: 15px;
    }

    .nav-news-menu__header span {
        color: #b3babe;
        font-size: 12px;
        font-weight: 400;
    }
    .nav-news-item__content strong {
        color: #cbc7c7;
    }

}


/* =========================================================
   Popup de vídeos de novedades
   ========================================================= */

.news-video-modal .modal-dialog {
    width: calc(100% - 30px);
    max-width: 980px;

    margin: 30px auto;
}

.news-video-modal .modal-content {
    overflow: hidden;

    border: 0;
    border-radius: 12px;

    background: #f5f7f8;

    box-shadow:
        0 22px 60px
        rgba(23, 42, 54, .32);
}


/*
 * Cabecera.
 */
.news-video-modal__header {
    position: relative;

    padding: 18px 55px 18px 20px;

    border-bottom: 0;

    background:
        linear-gradient(
            135deg,
            #263f50 0%,
            #3b6e82 100%
        );

    color: #fff;
}

.news-video-modal__header .close {
    position: absolute;
    top: 15px;
    right: 20px;

    margin: 0;

    color: #fff;
    opacity: .82;

    font-size: 30px;
    font-weight: 300;

    text-shadow: none;
}

.news-video-modal__header .close:hover,
.news-video-modal__header .close:focus {
    color: #fff;
    opacity: 1;
}

.news-video-modal__heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.news-video-modal__icon {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border:
        1px solid
        rgba(255, 255, 255, .22);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, .12);

    font-size: 19px;
}

.news-video-modal__eyebrow {
    display: block;

    margin-bottom: 2px;

    color:
        rgba(255, 255, 255, .7);

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .06em;
}

.news-video-modal__header .modal-title {
    margin: 0;

    color: #fff;

    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}


/*
 * Cuerpo.
 */
.news-video-modal__body {
    padding: 18px;

    background: #f5f7f8;
}

.news-video-modal__description {
    margin: 0 0 13px;

    color: #58717d;

    font-size: 12px;
    line-height: 1.5;
}

.news-video-modal__player {
    overflow: hidden;

    width: 100%;

    border-radius: 9px;

    background: #000;

    box-shadow:
        0 6px 20px
        rgba(20, 35, 44, .18);

    line-height: 0;
}

.news-video-modal__player video {
    display: block;

    width: 100%;
    max-width: 100%;
    max-height: 70vh;

    margin: 0 auto;

    background: #000;
}


/*
 * Pie.
 */
.news-video-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;

    padding: 12px 18px;

    border-top: 1px solid #dce4e8;

    background: #fff;
}

.news-video-modal__footer .btn {
    border-radius: 5px;

    font-weight: 600;
}

.news-video-modal__footer
.glyphicon {
    margin-right: 4px;
}


/* =========================================================
   Popup en móvil
   ========================================================= */

@media (max-width: 767px) {
    .news-video-modal .modal-dialog {
        width: auto;
        max-width: none;

        margin: 10px;
    }

    .news-video-modal__header {
        padding:
            14px
            48px
            14px
            15px;
    }

    .news-video-modal__icon {
        flex-basis: 38px;

        width: 38px;
        height: 38px;

        font-size: 16px;
    }

    .news-video-modal__header
    .modal-title {
        font-size: 15px;
    }

    .news-video-modal__body {
        padding: 10px;
    }

    .news-video-modal__player video {
        max-height: 65vh;
    }

    .news-video-modal__footer {
        display: block;

        padding: 10px;
    }

    .news-video-modal__footer .btn {
        display: block;

        width: 100%;
        margin: 6px 0 0;
    }
}

/*
 * Mantener siempre un espacio visible 16:9
 * para el reproductor.
 */
.news-video-modal__player {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    background: #000;
}

.news-video-modal__player video {
    display: block;

    width: 100%;
    height: 100%;

    background: #000;

    object-fit: contain;
}