@font-face {
    font-family: 'Ubuntu-Regular';
    src: url(../css/fonts/Ubuntu-Regular.ttf);
}

.row-header{
    width: 100vw;
    max-width: 100vw;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    height: 100%;
}

.right{
    justify-content: right;
}

.left{
    justify-content: left;
}

#lupa:hover{
    cursor: pointer;
}

#en,
#es{
    display: flex;
    justify-content: right;
    width: 100%;
}

#resultados{
    justify-content: center;
    position: absolute;
    background-color: rgba(0,0,0,.75);
    border-style: solid;
    border-color: black;
    width: 100vw;
    height: 100vh;
}

.ocultar{
    display: none;
}

.mostrar{
    display: flex;
}

@media screen and (min-width: 801px) {
   
    .header-5vw {
        width: 5vw;
        align-self: center;
        justify-content:right;
        display: flex;
    }

    .header-20vw {
        width: 20vw;
        align-self: center;
        display: grid;
        padding: 0 5vw;
    }

    .header-30vw {
        width: 30vw;
        align-self: center;
        justify-content: center;
    }

    .header-45vw {
        width: 45vw;
        align-self: center;
    }

    .header-50vw {
        width: 100vw;
        padding: 0.5vw;
        align-self: center;
        background-color: rgba(225, 222, 222, 0.5);
        display: flex;
        justify-content: center;
        position: relative;
    }

    header {
        height: 15vh;
        width: 100vw;
        margin: 0;
        padding: 0;
        top: 0;
        position: fixed;
        z-index: 100;
        background-color: white;
        flex-wrap: wrap;
        justify-content: center;
        display: flex;
    }

    header nav {
        z-index: 1000;
        width: 100%;
    }

    .menu_bar{
        display:none;
    }

    #img_header {
        height: auto;
        width: calc(30vw * 0.85);
        object-position: center center;
    }

    #logo_header {
        display: flex;
        justify-content: center;
    }

    #lupa{
        font-size: 1.5vw;
        justify-self: right;
    }

    input{
        width: 50vw;
        margin: 0;
        padding: 0.3vw 1vw;
        font-size: calc(100vw * 0.01);
        border-radius: 15px;
        border-style: solid;
        border-color: rgba(0,0,0,0.75);
        border-width: thin;
    }

    button{
        background-color: rgb(0, 46, 108);
        border-radius: 10px;
        margin: 0 0.5vw;
        padding: 0.3vw 1vw;
        height: 100%;
    }

    button span{
        color: white;
        font-size: 1.2vw;
        padding: 1vw;
    }

    .emergente{
        display: flex;
        position: fixed;
        top: 20vh;
        left: 20vw;
        right: 20vw;
        width: 60vw;
        padding: 1vh 0.5vw;
        text-align: right;
        flex-wrap: wrap;
        background-color: rgb(255,255,255);
        overflow-y: scroll;
        max-height: 50vh;
        text-align: left;
    }

    #listar{
        width: 100%;
    }

    #listar>thead>tr{
        width: 100%;
    }

    #listar>thead>tr>th{
        width: 100%;
        font-size: 2vw;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: black;
    }

    #listar>thead> tr>th>div>span{
        float: right;
        font-size: 2.5vw;
        color: black;
    }

    #listar>tbody>tr>td{
        color: black;
    }

    #listar>tbody>tr>td>a{
        font-size: 1.5vw;
        text-align: left;
        color: blue;
    }

    .menu {
        display: flex;
        font-size: calc(0.8vw + 0.8vh);
        font-weight: bold;
        list-style: none;
    }

    ul,
    ol {
        margin: 0;
        padding: 0;
        justify-content: center;
        align-items: center;
    }

    li {
        list-style: none;
        align-items: center;
    }

    .portafolio{
        align-items: center;
    }

    .menu>li {
        float: left;
    }

    .menu>li a,
    .menu>li p {
        color: rgb(0, 46, 108);
        background-color: white;
        text-align: center;
        padding: 1vh 1.5vw;
        text-decoration: underline;
        text-decoration-color: white;
        border-radius: 4px;
        display: block;
        font-size: calc(0.8vw + 0.8vh);
        margin: 0;
    }

    .menu>li p span{
        vertical-align: middle;
        margin-left: 5px;
    }

    .menu li ul {
        display: none;
        color: white;
        position: absolute;
        padding: 0;
        margin: 0;
    }

    .menu li ul li {
        position: relative;
        display: flex;
        text-align: left;
        justify-content: left;
    }

    .menu li:hover>ul {
        display: block;
        color: white;
    }

    .menu>li a:hover,
    .menu>li p:hover {
        background-color: rgb(0, 46, 108);
        color: white;
    }

    .submenu {
        background-color: white;
        border-radius: 0;
    }

    .submenu>li,
    .submenu>li>a {
        border-radius: 0;
        width: 110%;
        text-align: left;
    }

    .submenu>li:hover {
        background-color: rgb(0, 46, 108);
        border-radius: 0;
    }

    .submenu>li a:hover {
        text-decoration: underline;
    }

    [data-tooltip]{ 
        position:relative; 
        cursor:pointer;
    }

    [data-tooltip]::before {
        content : attr(data-tooltip);
        background-color:rgba(0,0,0,.75);
        color:white;
        -webkit-font-smoothing: antialiased;
        width:max-content;
        padding:10px;
        height:auto;
        border-radius:3px;
        display:none;
        position:absolute;
        bottom:25px;
        left:calc(100% - 75%);
        pointer-events: none;
        z-index:99;
    }

    [data-tooltip]::after{
        content:"";
        height:1px;
        width:1px;
        border:10px solid transparent;
        border-top-color:rgba(0,0,0,.75);
        position:absolute;
        bottom:4px;
        left:50%;
        display: none;
    }

    [data-tooltip]:hover::before,
    [data-tooltip]:hover::after
    { display:block;} 

    .header-5vw img{
        width: auto;
        height: auto;
        margin: 0
    }
}

@media screen and (max-width: 800px){

    .row-header{
        justify-content: space-between;
    }

    .header-5vw {
        width: 10vw;
        align-self:center;
        display: flex;
        justify-content: center;
    }

    .header-20vw {
        width: 10vw;
        align-self:center;
    }
    
    .header-30vw {
        width: 50vw;
        align-self: center;
    }

    .header-45vw {
        width: 10vw;
        display: flex;
        align-self:center;
        flex-wrap: wrap;
        justify-content: right;
    }

    .header-50vw {
        width: 100vw;
        padding: 0.5vw;
        align-self: center;
        background-color: rgba(225, 222, 222, 0.5);
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
    }

    #lupa{
        font-size: 5vw;
    }

    input{
        width: 100%;
        margin: 0;
        padding: 1vh 3vw;
        font-size: calc(100vw * 0.035);
        border-radius: 15px;
        border-style: solid;
        border-color: rgba(0,0,0,0.75);
        border-width: thin;
    }

    button{
        background-color: rgb(0, 46, 108);
        border-radius: 5px;
        margin: 0 0.5vw;
        padding: 0 1vw;
        height: 100%;
        display: flex;
    }

    button span{
        font-size: 25px;
        color: white;
        margin: 1vh;
    }

    #img_header {
        height: auto;
        width: calc(50vw * 0.95);
        object-position: center center;
        margin-left: 1vw;
    }

   
    .menu_bar{
        display:flex;
        width: 25vw;
        align-items: center;
        justify-content: right;
    }
   
    .menu_bar span{
        display: block;
        float: right;
        margin-right: 2vw;
        font-weight:lighter;
        color: rgb(0, 46, 108);
        font-size: calc(25vw * 0.25);
    }

    header {
        height: 8vh;
        width: 100vw;
        top: 0;
        margin: 0;
        padding: 0;
        position: fixed;
        z-index: 100;
        background-color: white;
        flex-wrap: wrap;
        justify-content: center;
        display: flex;
    }

    .header-45vw nav{
        z-index: 1000;
        width: 100%;
        position:fixed;
        margin-top: 7vh;
        top: -100%;
    }

    .emergente{
        display: flex;
        position: fixed;
        top: 10vh;
        left: 5vw;
        right: 5vw;
        width: 90vw;
        padding: 1vh 0.5vw;
        text-align: right;
        flex-wrap: wrap;
        background-color: rgb(255,255,255);
        overflow-y: scroll;
        max-height: 50vh;
        text-align: left;
    }

    #listar{
        width: 100%;
    }

    #listar thead tr{
        width: 100%;
    }

    #listar thead  tr th{
        width: 100%;
        font-size: 4.5vw;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #listar>thead>tr>th>div>span{
        float: right;
        font-size: 4.5vw;
        margin: 2.5vw;
    }

    #listar tbody tr td{
        font-size: 3vw;
        text-align: left;
    }

    #listar tbody tr td a{
        font-size: 4.5vw;
        text-align: left;
    }

    .menu {
        display:block ;
        font-weight: bold;
        list-style: none;
        float: right;
    }

    ul,
    ol {
        margin: 0;
        padding: 0;
    }

    li {
        list-style: none;
    }

    .menu>li {
        float:none;
    }

    .menu>li a,
    .menu>li p {
        color: rgb(0, 46, 108);
        background-color: white;
        text-align: left;
        padding: 1vh 1.5vw;
        text-decoration: underline;
        text-decoration-color: white;
        display: block;
        font-size: calc(50vw * 0.06);
        margin-top: 0;
    }

    .menu>li p {
        margin-bottom: 0;
    }

    .menu>li p span{
        vertical-align: middle;
        margin-left: 5px;
        text-decoration: none;
    }

    .menu li ul {
        display: none;
        color: white;
        position: absolute;
        padding: 0;
        margin: 0;
    }

    .menu li ul li {
        position: relative;
        display: flex;
        text-align: left;
        justify-content: left;
    }

    .menu li:hover>ul {
        display: block;
        color: white;
    }

    .menu>li a:hover,
    .menu>li p:hover {
        background-color: rgb(0, 46, 108);
        color: white;
    }

    .submenu {
        background-color: white;
        border-radius: 0;
    }
    
    .submenu>li,
    .submenu>li>a {
        border-radius: 0;
        margin-left: 5%;
        width: 95%;
        text-align: left;
        background-color: rgb(180, 175, 175);
        text-decoration: none;
    }
    .submenu>li{
        border-color: white;
        border-style: solid;
    }

    header nav ul li .submenu{
        position:relative;
    }

    .header-5vw img{
        width: auto;
        height: auto;
        margin: 0
    }

}