/* ===================================
   HEADER / NAVEGACIÓN
   =================================== */
.header {
    background-color: var(--blanco);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    height: 100px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 35px;
}

.nav-link {
    color: var(--azul-corporativo);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--amarillo-estrategico);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-cotiza {
    background-color: var(--azul-corporativo);
    color: var(--blanco);
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--blanco);
    transition: all 0.3s ease;
}

.btn-cotiza:hover {
    background-color: var(--amarillo-estrategico);
    color: var(--azul-corporativo);
    border-color: var(--amarillo-estrategico);
}

/* ===================================
   MENÚ HAMBURGUESA
   =================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--azul-corporativo);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle:hover span {
    background-color: var(--amarillo-estrategico);
}

/* Botón cerrar dentro del menú móvil — oculto en desktop */
.nav-close-item {
    display: none;
}

.nav-close {
    background: transparent;
    border: none;
    color: var(--blanco);
    font-size: 38px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-close:hover {
    color: var(--amarillo-estrategico);
    transform: rotate(90deg);
}

/* Animación cuando está abierto */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}
