/* =======================
   VARIABLES Y ESTILOS GLOBALES
   ======================= */
:root {
    --seg-azul-oscuro: #003366;
    --seg-azul-medio: #00569c;
    --seg-azul-bajo: #E4ECFA;
    --seg-gris: #f0f0f0;
    --texto-claro: #ffffff;
    --texto-oscuro: #333333;
    --texto-medio:#003366;
}

body {
    font-family: 'Montserrat', sans-serif; /* Puedes cambiarla por la fuente que prefieras */
    color: var(--texto-oscuro);
    line-height: 1.6;
}

a {
    color: var(--seg-azul-medio);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--seg-azul-oscuro);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--seg-azul-oscuro);
}


/* =======================
   ENCABEZADO (HEADER)
   ======================= */

/* --- Barra Superior --- */
.top-bar {
    background-color: var(--seg-azul-bajo);
    color: var(--texto-medio);
    padding: 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 700;
}

.top-bar a {
    color: var(--texto-medio);
    margin-right: 1.5rem;
    text-decoration: none;
    font-size:small;
    font-weight:lighter;
    font-weight: 700;

}

.top-bar a:hover {
    text-decoration: underline;
}

.top-bar .bi {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.social-icons a {
    margin-right: 1rem;
    font-size: 1.1rem;
}

.language-dropdown .btn {
    color: var(--texto-medio);
    background: transparent;
    border: none;
    padding: 0.2rem 0.5rem;
    
}



.language-dropdown .btn:hover,
.language-dropdown .btn:focus {
    color: var(--texto-claro);
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    border-radius: 0;
    z-index: 9999 !important;
}

/* --- Barra de Navegación Principal --- */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1020;
    color: var(--texto-medio);
    font-weight: bold;
    font-size:larger;
}

.navbar-brand img {
    max-height: 50px;
}

.navbar-nav .nav-link {
    color: var(--seg-azul-oscuro);
    font-weight: 600;
    font-size:xx-large;
    margin: 0 0.5rem;
    padding: 0.8rem 1rem;
    text-transform: uppercase;
    position: relative;
    font-size: 0.9rem;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--seg-azul-medio);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link .bi {
    font-size: 1.5rem;
}

/* =======================
   PIE DE PÁGINA (FOOTER)
   ======================= */
.main-footer {
    background-color: var(--seg-azul-bajo);
    color: var(--seg-azul-oscuro) !important;
    padding: 4rem 0;
}

.main-footer h5 {
    color: var(--texto-medio);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--seg-azul-medio);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-logos img {
    max-height: 60px;
    margin: 0 1rem 1rem 1rem;
}

.contact-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.contact-line .bi {
    font-size: 1.5rem;
    color: var(--texto-medio);
    margin-right: 1rem;
}

.headquarters-column .bi {
    font-size: 2rem;
    color: var(--texto-medio);
    margin-bottom: 0.5rem;
}
.headquarters-column p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* --- Listas de enlaces del footer --- */
.footer-links-section .list-group-item {
    background-color: transparent;
    border: none;
    padding: 0.5rem 0;
}

.footer-links-section .list-group-item a {
    color: var(--texto-medio);
    text-decoration: none;
}

.footer-links-section .list-group-item a:hover {
    color: var(--texto-claro);
    text-decoration: underline;
}

.footer-links-section .bi {
    margin-right: 0.75rem;
}

/* --- Barra inferior del footer --- */
.footer-bottom {
    background-color: #001a33; /* Un azul aún más oscuro */
    color: #a0a0a0;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #c0c0c0;
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: var(--texto-claro);
}