/* =========================================================
   HEADER PRINCIPAL
   ========================================================= */
.header {
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, #1a1f4e 100%);
    color: var(--texto-claro);
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

/* Contenedor principal del header */
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-left: 0;
    padding-right: 15px;
}

/* =========================================================
   LOGO Y TEXTO
   ========================================================= */
.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-img {
    width: 78px;
    height: 78px;
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dorado);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0.2rem;
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--blanco);
    opacity: 0.9;
}

/* =========================================================
   NAVEGACIÓN GENERAL
   ========================================================= */
.nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Cada <li> necesita position: relative para dropdown */
.nav ul li {
    position: relative;
}

/* Enlaces del menú principal */
.nav ul li a {
    color: var(--blanco);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Línea dorada inferior al hacer hover */
.nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: var(--dorado);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav ul li a:hover::after {
    width: 100%;
}

.nav ul li a:hover {
    color: var(--dorado-claro);
}

/* =========================================================
   BOTÓN DESTACADO "CUOTA SOCIAL"
   ========================================================= */
.cuota-link {
    background-color: var(--rojo-vino);
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cuota-link:hover {
    background-color: var(--dorado);
    color: var(--azul-oscuro) !important;
}

.cuota-link:hover::after {
    display: none;
}

/* =========================================================
   MENÚ DESPLEGABLE (Dropdown)
   ========================================================= */

/* Contenedor del dropdown */
.dropdown {
    position: relative;
}

/* Dropdown simple para Nosotros */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--azul-oscuro);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 5px;
    top: 100%;
    left: 10px; /* 👈 Desplaza el menú hacia la derecha */
    z-index: 1000;
}

.dropdown-content a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--blanco);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: var(--dorado);
    color: var(--azul-oscuro);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Para móviles */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        background: transparent;
        box-shadow: none;
    }
    
    .dropdown-content a {
        padding-left: 2rem;
    }
}
/* =========================================================
   MENÚ RESPONSIVE
   ========================================================= */

/* Ícono hamburguesa */
.menu-toggle {
    display: none;
    color: var(--blanco);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Estilos móviles */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
        padding-right: 0;
    }

    .logo-container {
        margin-top: 2.5rem;
        margin-bottom: 1rem;
        justify-content: center;
    }

    .logo-img {
        width: 58px;
        height: 58px;
    }

    /* Menú en columna */
    .nav ul {
        flex-direction: column;
        gap: 0.5rem;
        display: none;
        width: 100%;
        background: linear-gradient(135deg, var(--azul-oscuro) 0%, #1a1f4e 100%);
        padding: 1rem 0;
        border-radius: 0 0 10px 10px;
    }

    /* Mostrar menú al activar toggle */
    .nav ul.show {
        display: flex;
    }

    /* Mostrar botón hamburguesa */
    .menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 1100;
    }

    /* Alineación del texto del logo */
    .logo-text {
        text-align: center;
        transform: none; /* Evita desbordes laterales en móviles */
        padding: 0 8px;
    }
}