/***** HEADER  ******/

.menu-header ul.menu {
    float: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/** ABOUT ****/
.footer-menu-wrap ul.menu,
.about-us-menu ul.menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 1.5rem 0;
}


.quicktabs-tabs > li {
    z-index: 1;
}

/*** POPUP ***/
.spb-popup-main-wrapper {
    position: fixed;
    padding: 0;
    border: 0 none;
    z-index: 999999;
    border-radius: 0;
    background-color: #fefefe;
}

.spb-controls {
    position: absolute;
    right: 0;
    z-index: 999999;
    top: 0;
    display: flex;
    gap: 8px;
    padding: 8px;
}

.spb-controls > * {
    border: 0 none;
    cursor: pointer;
    float: none;
    margin: 3px;
    padding: 0 10px;
    color: #000;
    background: #fff;
    background: #c00;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 0 none;
    padding: 0;
    font-size: 31px;
    line-height: normal;
    float: none;
    flex-direction: row;
    margin: 0;
}

/**** TINY SLIDER STYLES *****/


.tns-outer{
    position: relative;
}

.tns-outer .tns-controls button[data-controls=prev],
.tns-outer .tns-controls button[data-controls=next]{
    background: #d0350c;
    position: absolute;
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 100%;
    aspect-ratio: 1;
    color: white;
    font-weight: bold;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .5s;

    &:hover{
        background:rgb(177, 49, 13);
    }

    svg{
        fill: white;
        width: 50%;
        height: auto;
    }

}
.tns-outer .tns-controls button[data-controls=prev]{
    left: 1rem;
}
.tns-outer .tns-controls button[data-controls=next]{
    right: 1rem;
}

.tns-outer {

    .tns-slider{
        margin: 0;
        padding: 0;
        list-style: none;
        list-style-image: none;
    }



    .views-field-field-video {
        position: relative;
        background: red;
        height: auto;
        padding: 0;
        margin: 0;
        display: grid;
    }
    .views-field-field-video:before,
    .views-field-field-video:after{
        display: none !important
    }

    iframe{
        width: 100%;
        height: 480px;
        position: relative;
        background: #eee;
        display: block;
        aspect-ratio: 21 / 9;
    }

    .tns-nav{
        margin: 1rem 0;
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 1rem;

        & > button{
            background-color: #d0350c;
            color: white;
            display: block;
            width: 12px;
            height: 12px;
            aspect-ratio: 1;
            border-radius: 50%;
            opacity: .5;
        }

        button.tns-nav-active{
            opacity: 1;
        }
    }
}

.slider-home .field.field--node-field-imagen {
    display: none;
}

.slider-home .video-embed-field-responsive-video {
    position: relative;
    max-height: 480px;
}

.slider-home .field img{
    width: 100%;
    height: auto;
}

@media (min-width: 768px){
    .slider-home .field.field--node-field-imagen {
        display: block;
    }
    .field.field--name-field-image-mobile {
        display: none !important;
    }
}

.slider-home .video-embed-field-responsive-video {
    max-height: 640px;
}
.slider-home .video-embed-field-responsive-video iframe {
    width: 100%;
    height: 100%;
    position: relative;
    aspect-ratio: 16 / 11;
    max-height: 640px;
}

.emisiones-unauthorized-message {
    margin-bottom: 4rem;
    padding: 24px;
    border: 1px solid #f93;
    background-color: #ffc;
    border-radius: 6px;
    text-align: center;
}


/** Emisiones page **/


.node--type-emision.page-node-type-emision main#main {
    float: right;
}

.node--type-emision.page-node-type-emision:not(.user-logged-in) main#main {
    margin-top: 2rem;
}

/* Ocultar tamaño de archivos en listados de reportes */
.views-field-field-documento-tin .field-content span.file ~ span {
    display: none;
}
