html, body {
    overflow-x: hidden !important;
    width: 100%;
}

body {
    padding-top: 90px;
    overflow-y: clip;
}

.modal-open {
    padding-right: 0 !important;
}

/* BLOQUEA EL NAVBAR */
nav.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}


.logo {
    inline-size: 20vw;
    min-inline-size: 150px;
}

@media (max-width: 768px) {
    .logo {
        inline-size: 40vw;
        min-inline-size: 100px;
    }
}

.nav_opciones {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800 !important;
    font-size: 14px;
    color: #2066A2 !important;
    margin: 0 !important;
}

.nav_opciones:hover {
    text-decoration: underline;
}

/* Tamaño extra grande (pantallas ≥ 1900px) */
@media screen and (min-width: 1900px) {
    .nav_opciones {
        font-size: 23px;
    }
}

/* Pantallas medianas-grandes (1281px – 1400px) */
@media screen and (max-width: 1400px) and (min-width: 1281px) {
    .nav_opciones {
        font-size: 14px;
    }
}

/* BOTONES DE IDIOMA */
.lang-option {
    display: flex;
    align-items: center;
    gap: 1px;
    padding: 2px 2px;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: .2s ease-in-out;
}

.lang-option:hover {
    background: #f0f0f0;
}

.lang-option .lang-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* TEXTOS */
.titulo-azul {
    font-weight: 800 !important;
    font-size: 8rem;
    color: #24669F !important;
}

.titulo-negro {
    font-weight: 800 !important;
    font-size: 7rem;
    color: #000000 !important;
}

.titulo-azul, .titulo-negro {
    margin: 0;
    line-height: 1;
    font-style: italic;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.50);
}

.texto-azul {
    line-height: .9;
    font-weight: 700 !important;
    font-size: 3rem;
    color: #24669F !important;
}

.texto-gris {
    line-height: .9;
    font-weight: 700 !important;
    font-size: 3rem;
    color: #8E8E8E !important;
}

/* BOTÓN DE REGISTRO */
.btn-registro {
    display: inline-block;
    padding: 18px 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.1rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #00315B 0%, #005A9C 100%);
    border-radius: 60px;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(0, 49, 91, 0.35);
    transition: all 0.25s ease-in-out;
    text-decoration: none !important;
}

.btn-registro:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 35px rgba(0, 49, 91, 0.55);
    background: #ffffff;
}

.btn-registro:active {
    transform: scale(0.97);
}

/* ANIMACIÓN AL BAJAR */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all .6s ease-out;
}

.fade-in-section.appear {
    opacity: 1;
    transform: translateY(0);
}

/* BOTONES DE CAROUSEL */
.carousel-control-prev {
    left: -50px;
}

.carousel-control-next {
    right: -50px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    padding: 30px;
}

.contact-card p {
    margin-bottom: 0.3rem;
}

.contact-card a {
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 3px;
    text-decoration: none;
}

.blue-name {
    color: #2D3A6C;
}

#registrate {
    background-color: #00315B;
    color: white;
    position: fixed;
    inset-block-end: 20px;
    inset-inline-end: 65px;
    border-radius: 16px;
    font-size: 25px;
}

#ir-arriba {
    background-color: #00315B;
    color: white;
    position: fixed;
    inset-block-end: 20px;
    inset-inline-end: 20px;
    border-radius: 16px;
    font-size: 25px;
}

/* ESTILOS PARA EL COLLAPSE EN MÓVIL */
@media (max-width: 991px) {

    /* Collapse en columna */
    #mainNavbar {
        padding-top: 15px;
        padding-bottom: 10px;
    }

    #mainNavbar .navbar-nav {
        width: 100%;
        flex-direction: column !important;
        gap: 10px !important;
        align-items: center;
        /* centrar todo */
    }

    /* Enlaces */
    #mainNavbar .nav-link {
        padding: 10px 0;
        font-size: 18px;
        width: 100%;
    }

    /* Botones de idioma */
    #mainNavbar .lang-option {
        width: 100%;
        padding: 8px 12px;
        font-size: 16px;
        border-radius: 6px;
        border: 1px solid #ddd;
        background: #f8f8f8;
        display: flex;
        justify-content: center;
        gap: 8px;
    }
}