@font-face{
    font-family: "Hero";
    font-weight: bold;
    src: url(../../fonts/Hero-Bold.otf) format('opentype');
}

:root {
    --interior-menu: #DDE5FA;
    --texto-menu: #031427ea;
    --family: #e8eeff;
    --calc: #d0dcff;
    --color-fondo-claro: #DDE5FA; /* Color de fondo principal de la sección */
    --color-barra-navegacion-claro: #000616; /* Color de la barra de navegación */
    --color-box-claro: #031427ea; /* Color de los botones de la barra de navegación*/
    --gastos-fondo: #d9ebfc;
    --gastos-titulo-fondo: #000616;
    --resumen: #0061c9;
    --color-texto-claro: #ffffff; /* Color de texto gastos */
    --color-texto-tabla: #000000;
    --botones: #161616e1;
    --texto-botones: #000616;
    --fondo-tabla: rgba(255, 255, 255, 0.925);
}

@media (prefers-color-scheme: dark) {
    :root{
    /* Colores para el tema OSCURO */
    
    --interior-menu: #020114;
    --texto-menu: #dddddd;
    --family: #111213;
    --calc: #25272e;
    --color-fondo-claro: #010016e8; /* Fondo más oscuro */
    --color-barra-navegacion-claro: #f3f3f3; /* Barra de navegación más oscura */
    --color-box-claro: #000000dc; /* Botones de la barra en oscuro */
    --gastos-fondo: #ffffffcb;
    --gastos-titulo-fondo: #1f2335;
    --resumen: #0003b6e0;
    --color-texto-claro: #ffffffee; /* Color de texto gastos */
    --color-texto-tabla: #000218af;
    --botones: #0000008c;
    --texto-botones:#ffffff;
    --fondo-tabla: rgba(172, 172, 172, 0.541);
    }
}


body{
    background-color: var(--color-fondo-claro);
}

.glass{
    background: #2c2c2c40;
    backdrop-filter: blur(0.9rem);
    -webkit-backdrop-filter: blur(0.9rem);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

::-webkit-scrollbar { width: 0px; height: 9px;}
::-webkit-scrollbar-button { width: 0px; height: 0px;}
::-webkit-scrollbar-thumb { background: transparent; border: 0px none #fff; border-radius: 10px;}
::-webkit-scrollbar-thumb:hover { background: #3a77a1;}
::-webkit-scrollbar-thumb:active { background: #8dd0d8;}
::-webkit-scrollbar-track {background: transparent;border: 0px solid #aaa; border-radius: 5px;}
::-webkit-scrollbar-track:hover { background: #e4e4e4;}
::-webkit-scrollbar-track:active { background: #d2d2d2;}
::-webkit-scrollbar-corner { background: transparent;}

.scrollcontainer{
    width: fit-content;
    height: fit-content;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

.titulo h1{
    font-size: 2.5rem;
    font-family: poppins;
    font-weight: bold;
    letter-spacing: -1px;
    word-spacing: 15px;
    color: var(--titulo);
}

nav{
    background-color: var(--color-barra-navegacion-claro);
    width: 100% !important;
}

.logo{
    text-decoration: none;
    color: white;
    letter-spacing: 1.5px;
}

.family{
    font-family: montserrat;
    font-weight: bold;
    color: var(--family);
    font-size: 3.8dvh;
}

.calc{
    font-size: 4.4dvh;
    font-family: fira sans;
    font-weight: bold;
    color: var(--calc);
    letter-spacing: 1px;
}

.logo img{
    height: 45px;
    margin-right: 1rem;                         
}

.menu{                  
    background-color: var(--color-box-claro);
    border: none;
    padding: 4px;
}

.menu:hover{
    background-color: rgba(144, 165, 223, 0.336);
    border: none;
}

.menu{                  
    background-color: var(--color-box-claro);
    border: none;
    padding: 4px;
}

.btn img{
    width: 4.8dvh;
}

.interiorMenu{
    background-color: var(--interior-menu);
    padding: 0;
}

.interiorMenu a{
    color: var(--texto-menu);
    text-decoration: none;
    display: block;
    font-size: 2.1dvh;
    padding: 12px 0 12px 15px;
    font-family: "Work Sans";
    font-weight:normal;
}

.interiorMenu a:hover{
    background-color: #10195e67;
}

.interiorMenu .explorar h4{
    color: var(--texto-menu);
    font-size: 5dvh;
    margin-left: 2dvh;
    font-family: "Oswald";
    font-weight: bold;
    letter-spacing: 8px;
}

.interiorMenu .explorar img{
    margin-right: 3dvh;
    width: 7dvh;
    background-color: rgba(0, 0, 0, 0.795);
    padding: 10px;
    border-radius: 20px;
}

.contactos{
    width: 4rem;
    height: 4rem;
    background-color: rgba(0, 0, 0, 0.795);
    border-radius: 10px;
}

.contactos img{
    transform: translate(-5%,0%);
}

.contactos-box{
    position: absolute;
    margin-top: 5dvh;
}

h2{
    font-size: 3dvh;
    display: inline-block;
    font-family: "Quicksand";
    font-weight: bold;
}

.tables-container{
    background-color: white;
    border-radius: .5cm;
    padding: 2rem;
    align-content: center;
    overflow-x: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.199);
    width: 95%;
}

.gastoTotal{
    background-color: var(--gastos-fondo);
    border-radius: 20px;
    justify-items: center;
    position: relative;
    padding: 0;
    width: 90%;
    text-align: center;
    margin: 3rem;
    box-shadow: 0px 4px 10px #00000094;
}

.gastoTotal h2{
    background-color: var(--gastos-titulo-fondo);
    color: white;
    width: 100%;
    font-weight: bold;
    font-size: 5dvh;
    font-family: "Poppins";
}

.gastoTotal p{
    font-size: 5dvh;
    font-family: "Exo 2";
    letter-spacing: 3px;
}

.gastoTotal span{
    font-size: 2dvh;
    font-family: "Exo";
    letter-spacing: 5px;
}

.ingresoGastos{
    width: 100%;
    text-align: center;
    justify-content: space-around;
    display: flex;
}

section{
    justify-items: center;
}

.formularioGastos{
    background-color: var(--gastos-fondo);
    width: 40%;
    height: 100%;
    border-radius: 25px;
    position: relative;
    margin-bottom: 5rem;
    box-shadow: 0px 4px 10px #00000094;
}

.formularioGastos h3 {
    background-color: var(--gastos-titulo-fondo);
    color: white;
    width: 100%;
    font-size: 4dvh;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    font-family: "Poppins";
    font-weight: bolder;
    padding: .5rem 0 .5rem 0;
}

.formularioGastos input, .formularioGastos select{
    display: block;
    width: 80%;
    height: 3rem;
    margin: 4.5rem auto;
    border: 2px solid rgba(0, 0, 0, 0.233);
    border-radius: 15px;
    font-size: 2dvh;
    padding-left: 1rem;
}

.formularioGastos label{
    position: absolute;
    transform: translate(-50%, -110%);
    font-weight: bold;
    font-size: 2dvh;
}

.formularioGastos label:first-of-type{
    position: absolute;
    transform: translate(-50%, 90%);
}

.formularioGastos button{
    width: 85%;
    height: 3rem;
    border: none;
    background-color: var(--gastos-titulo-fondo);
    border-radius: 30px;
    color: white;
    position: absolute;
    transform: translate(-50%, -10%);
    font-weight: bold;
    font-size: 2dvh;
}

.listaGastos{
    border: 1px solid rgba(0, 0, 0, 0.322);
    margin: 10rem 1rem 1rem;
    height: 20rem;
    overflow-y: auto;
    border-radius: 7px;
    background-color: var(--fondo-tabla);
    color: var(--color-texto-tabla);
    font-weight: bold;
}

.tablaTitulo{
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid rgba(0, 0, 0, 0.322);
    padding: 0 1rem;
    height: 13%;
    background-color: var(--gastos-titulo-fondo);    
    color: var(--color-texto-claro);
}


.table{
    align-items: center;
    margin: 0;
}

.table tr td .btn{
    border-radius: 2.5dvh;
    margin: auto .2rem;
    overflow: hidden;
}

.table tr td img{
    padding: .1rem;
    height: 3.5dvh;
    width: 3.5dvh;
}

table tr.table-dark td img{
    padding: .1rem;
    height: 5dvh;
    width: 5dvh;
}

td .btn{
    background-color: var(--botones);
}

.tablaTitulo p{
    width: 100%;
    margin: .5rem .5rem .5rem 0;
    font-size: 1.7dvh;
}

.tabla p{
    width: 100%;
    font-size: 1.7dvh;
}

@media screen and (max-width:649px) {

    .contactos-box{
        margin-top: 22dvh;
    }
    
    .family{
        font-size: 2.8dvh;
    }

    .calc{
        font-size: 3.2dvh;
    }

    .menu{
    padding: 0.3dvh;
    }

    .menu img{
        width: 3.9dvh;
        width: 4.5dvh;
    }

    .interiorMenu{
    background: #2c2c2c40;
    backdrop-filter: blur(0.9rem);
    -webkit-backdrop-filter: blur(0.9rem);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    }

    .interiorMenu .explorar h4{
    font-size: 5.5dvh;
    margin-left: 3dvh;
    color: white;
    }

    .interiorMenu .explorar img{
    margin-right: 2dvh;
    width: 7dvh;
    background-color: rgba(0, 0, 0, 0.596);
    }

    .interiorMenu .explorar a{
        font-size: 2.7dvh;
        color: white;
    }

    .contactos{
        background: rgba(0, 0, 0, 0.596);
        backdrop-filter: blur(0.9rem);
        -webkit-backdrop-filter: blur(0.9rem);
        border-radius: 10px;
    }

    .gastoTotal{
        width: 100%;
        margin: 3rem;
    }

    .ingresoGastos{
        display:block;
    }

    .formularioGastos{
        width: 100%;
        margin-bottom: 2rem;
    }

    .listaGastos{
        height: 20rem;
    }

    .tables-container{
    padding: 1rem;
    }
}
@media screen and (min-width:650px) and (max-width:1279px) {
    .menu img{
        width: 5dvh;
    }

    .interiorMenu{
    background: #2c2c2c40;
    backdrop-filter: blur(0.9rem);
    -webkit-backdrop-filter: blur(0.9rem);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    }

    .interiorMenu .explorar img{
    margin-right: 2dvh;
    width: 5.4dvh;
    }

    .interiorMenu .explorar h4{
    font-size: 4dvh;
    color: white;
    }

    .interiorMenu .explorar a{
    font-size: 2.1dvh;
    color: white;
    }

    
    .family{
        font-size: 3.2dvh;
    }

    .calc{
        font-size: 4dvh;
    }

    .contactos-box{
    width: 4dvh;
    }

    .interiorMenu a{
    font-size: 2dvh;
    }

    .contactos{
    background: rgba(0, 0, 0, 0.596);
    backdrop-filter: blur(0.9rem);
    -webkit-backdrop-filter: blur(0.9rem);
    border-radius: 10px;
    }

    .contactos img{
    transform: translate(-5%, -8%);
    }
    
    .gastoTotal{
        width: 95%;
        margin: 3rem;
    }

    .formularioGastos h3 {
        font-size: 3.2dvh;
    }

    .formularioGastos{
        width: 45%;
    }

    .listaGastos{
        height: 20rem;
    }

    .tabla p{
        margin: 0 0 0 1rem;
    }
}

@media (orientation: landscape) and (max-height: 430px) {

    .family{
        font-size: 6dvh;
    }

    .calc{
        font-size: 6.6dvh;
    }

    .menu img{
        width: 10dvh;
    }

    .interiorMenu .explorar h4{
    font-size: 10dvh;
    margin-left: 5dvh;
    color: white;
    }

    .interiorMenu .explorar img{
    margin-right: 2dvh;
    width: 13dvh;
    background-color: rgba(0, 0, 0, 0.596);
    }

    .interiorMenu .explorar a{
        font-size: 5dvh;
        color: white;
    }

    .contactos{
        height: 4rem;
        width: 4rem;
        background: rgba(0, 0, 0, 0.596);
    }

    .contactos img{
        transform: translate(-45%, -15%);
    }

    .gastoTotal h2{
        font-size: 8dvh;
    }

    .gastoTotal p{
        font-size: 8dvh;
    }

    .gastoTotal span{
        font-size: 4dvh;
    }

    .formularioGastos h3 {
        font-size: 7dvh;
    }

    .formularioGastos label{
        font-size: 4dvh;
    }

    .formularioGastos button{
        font-size: 4dvh;
    }

    .tablaTitulo p{
        font-size: 4dvh;
    }

    .tabla p{
        font-size: 4dvh;
        margin: 0;
    }
}