
/* Reset y base */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem; /* Cambiado de 22px a relativo */
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Tipografía escalable */
.h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem; /* ~36px en móvil, ~40px en desktop */
    font-weight: 200;
    margin: 0.5em 0;
}

.h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.8rem; /* ~25px en móvil, ~29px en desktop */
    font-weight: 300;
    margin: 0.5em 0;
}

.h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem; /* ~20px en móvil, ~22px en desktop */
    margin: 0.5em 0;
}

/* Eliminar paddings innecesarios */
p, ul, li, a, label, input, div {
    padding-top: 0 !important;
    margin: 0.5rem 0;
}

ul {
    padding-left: 1.5rem;
}

/* Navbar optimizado */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /*height: auto;*/ /* Altura fija */
    z-index: 1030;
    background: rgb(29, 36, 45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-size : 22px;
}

    .navbar-custom .nav-link {
        color: #007bff !important;
        font-weight: 500;
        transition: color 0.3s;
        padding: 0.5rem 1rem !important;
    }

        .navbar-custom .nav-link:hover {
            color: #dcdde1 !important;
            text-decoration: underline;
        }

    .navbar-custom img {
        max-height: 70px;
        margin-right:30px;
        transition: transform 0.3s;
    }

/* Boton del Nav*/
.navbar-toggler {
    border: 2px solid #ffffff55; /* blanco con transparencia */
    padding: 8px;
    border-radius: 10px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: #ffffff22; /* leve fondo blanco al pasar el mouse */
    border-color: #ffffffaa;
}

.navbar-toggler:focus {
    box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.2);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
}

.dropdown-menu {
    transition: all 0.3s ease;
    border-radius: 10px;
    min-width: 200px;
}

.dropdown-item:hover {
    background-color: #007bff;
    color: white;
}
/* Contenedor principal ajustado */
.container-principal {
    margin-top: 150px !important; /* Reducido de 90px */
    padding: 1rem;
    width: 100%;
    flex: 1;
}

/* Focus styles */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.6), 0 0 0 0.25rem #258cfb;
    outline: none;
}

/* Colores de fondo */
.bg-dark {
    background-color: #162ca8 !important;
}

.bg-black {
    background-color: rgb(29, 36, 45) !important;
}

/* Footer ajustado */
#Crez_footer {
    padding: 1rem 0;    
    width: contain;
    flex: 1;
}

    #Crez_footer a {
        color: #dcdde1;
    }

        #Crez_footer a:hover {
            color: #000000;
        }

    #Crez_footer ul.footer-link-list li {
        padding-top: 5px; /* Reducido de 10px */
    }

    #Crez_footer ul.footer-icons li {
        width: 2.2em; /* Reducido de 2.6em */
        height: 2.2em;
        line-height: 2.2em;
    }

/* Media Queries */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    .container-principal {
        margin-top: 100px !important;
        padding: 1.5rem;
    }



    .navbar-custom {
        height: auto;
    }

}

@media (min-width: 690px) {
    html {
        font-size: 16px;
    }

    .container-principal {
        margin-top: 150px !important;
        padding: 1.5rem;
    }



    .navbar-custom {
        height: auto;
    }
}

@media (min-width: 1400px) {
    .container-principal {
        margin-top: 200px !important;
        max-width: 1650px;
    }
    #Crez_footer {
        max-width: auto;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }

    .container-principal {
        padding: 0.5rem;
        margin-top: 100px !important;
    }

    .navbar-custom {
        height: auto;
    }

    .h1 {
        font-size: 2rem;
    }

    .h2 {
        font-size: 1.5rem;
    }

    .h3 {
        font-size: 1.2rem;
    }
}