
/* ==========================================
   IDENTIDAD INSTITUCIONAL
   TORRE DE INGENIERIA - UNAM
========================================== */

:root {
    --ti-azul: #082B59;
    --ti-azul-hover: #164477;

    --ti-dorado: #C69A36;
    --ti-dorado-hover: #A77C24;

    --ti-blanco: #FFFFFF;
    --ti-borde: #D9E1EA;
}

/* ==========================================
   ESTILO GENERAL DE BOTONES
========================================== */

.navbar-custom .btn-institucional {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 9px 16px;

    min-height: 40px;

    margin: 4px 5px;

    border-radius: 8px;

    border: 1px solid transparent;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none !important;

    white-space: nowrap;

    box-shadow: 0 2px 5px rgba(0,0,0,.12);

    transition: all .25s ease;
}

/* ==========================================
   BOTON VIDEO 25 ANIVERSARIO
========================================== */

.navbar-custom .btn-blanco {

    background-color: var(--ti-blanco);

    color: var(--ti-azul) !important;

    border-color: var(--ti-borde);
}

.navbar-custom .btn-blanco:hover {

    background-color: var(--ti-azul-hover);

    color: var(--ti-blanco) !important;

    border-color: var(--ti-blanco);

    transform: translateY(-2px);

    box-shadow: 0 5px 12px rgba(0,0,0,.20);
}

/* ==========================================
   BOTON PROTOCOLO COVID
========================================== */

.navbar-custom .btn-dorado {

    background-color: var(--ti-dorado);

    color: var(--ti-blanco) !important;

    border-color: var(--ti-dorado);
}

.navbar-custom .btn-dorado:hover {

    background-color: var(--ti-dorado-hover);

    color: var(--ti-blanco) !important;

    border-color: var(--ti-dorado-hover);

    transform: translateY(-2px);

    box-shadow: 0 5px 12px rgba(0,0,0,.20);
}

/* ==========================================
   ACCESIBILIDAD
========================================== */

.navbar-custom .btn-institucional:focus-visible {

    outline: 3px solid #F5D477;

    outline-offset: 3px;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 767px) {

    .navbar-custom .btn-institucional {

        display: flex;

        width: 100%;

        margin: 7px 0;

        min-height: 46px;

        white-space: normal;

        text-align: center;
    }

}

/* ==========================================
   REDUCIR ANIMACIONES
========================================== */

@media (prefers-reduced-motion: reduce) {

    .navbar-custom .btn-institucional {

        transition: none;

    }

    .navbar-custom .btn-institucional:hover {

        transform: none;

    }

}


/* ==========================================
   VIDEO 25 ANIVERSARIO
========================================== */

#videoPopup {

    position: fixed !important;

    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    background: rgba(0,0,0,.88);

    z-index: 999999 !important;

    display: none;

    justify-content: center !important;
    align-items: center !important;

    padding: 20px;

    box-sizing: border-box;

}

#videoContainer {

    position: relative;

    width: 85%;
    max-width: 950px;

}

#videoBienvenida {

    display: block;

    width: 100%;
    max-height: 82vh;

    object-fit: contain;

    border-radius: 10px;

    box-shadow: 0 0 25px rgba(255,255,255,.20);

}

.closeBtn {

    position: absolute;

    top: -17px;
    right: -17px;

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: #B28B3C;
    color: white;

    font-size: 26px;

    cursor: pointer;

    z-index: 100001;

}

.audioBtn {

    position: absolute;

    bottom: 20px;
    right: 20px;

    z-index: 100001;

    border: none;

    padding: 10px 16px;

    background: #B28B3C;
    color: white;

    border-radius: 6px;

    cursor: pointer;

    font-weight: 600;

}

.closeBtn:hover,
.audioBtn:hover {

    background: #8E6D2F;

}

@media (max-width: 600px) {

    #videoContainer {
        width: 100%;
    }

    #videoBienvenida {
        max-height: 75vh;
    }

    .closeBtn {
        top: -15px;
        right: -8px;
    }

    .audioBtn {
        bottom: 10px;
        right: 10px;
        font-size: 12px;
    }

}
