/* Estilos para el botón hamburguesa */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    color: var(--primary);
}

/* Media queries para responsive */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px; /* altura del nav */
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        transition: 0.3s ease-in-out;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 10px 0;
    }

    /* Ajustes para el mega-menu en móvil */
    .mega-menu {
        position: relative;
        width: 100%;
        top: 0;
        box-shadow: none;
        padding: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .mega-menu.active {
        display: flex;
        flex-direction: column;
    }

    .menu-column {
        width: 100%;
        margin-bottom: 20px;
    }

    .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }

    /* Ajuste para el logo */
    .logo img {
        height: 5ch;
    }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media screen and (max-width: 480px) {
    .nav-links {
        padding: 15px;
    }

    .mega-menu {
        padding: 5px;
    }

    .menu-column h3 {
        font-size: 1rem;
    }

    .menu-column ul li a {
        font-size: 0.9rem;
    }
}



/* Estilos base del footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 5% 30px;
}

/* Footer Columns */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

/* Estilos responsive para móviles */
@media (max-width: 768px) {
    footer {
        padding: 40px 20px 20px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-column {
        text-align: center;
    }

    /* Ajustes para la información de contacto */
    .contact-info li {
        justify-content: center;
    }

    /* Ajustes para iconos sociales */
    .social-icons {
        justify-content: center;
        grid-template-columns: repeat(5, auto);
        gap: 20px;
        margin: 20px auto;
    }

    /* Ajuste para libro de reclamaciones */
    .libro-reclamaciones {
        text-align: center;
        margin-top: 30px;
    }

    .libro-reclamaciones img {
        width: 120px;
        margin: 10px auto;
    }

    /* Footer bottom */
    .footer-bottom {
        height: auto;
        padding: 15px 0;
    }

    .footer-link {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        width: 100%;
        padding: 15px;
    }

    .footer-link span {
        order: -1; /* Mueve el copyright al principio en móviles */
        margin: 10px 0;
    }

    /* Ajustes adicionales para mejor espaciado */
    .footer-column h3 {
        margin-bottom: 15px;
    }

    .footer-column ul li {
        margin-bottom: 10px;
    }

    .whatsapp-contact {
        margin-top: 15px;
    }

    /* Mejora la interactividad en móviles */
    .social-icons a {
        width: 45px;
        height: 45px;
    }

    .footer-link a,
    .footer-link span {
        font-size: 0.9rem;
        padding: 5px 0;
    }
}

/* Media query para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-column:last-child {
        grid-column: span 2;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}


/* =============== TOP NAV - CORPORATIVO INTENSO ================ */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #04112A 0%, #21548D 50%, #04112A 100%);
    color: white;
    z-index: 1100;
    height: 42px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    box-shadow: 0 4px 15px rgba(2, 18, 43, 0.3);
    border-bottom: 1px solid rgba(167, 199, 255, 0.2);
}

.top-nav-links {
    display: flex;
    gap: 2.8rem;
    margin-left: 4ch;
}

.top-nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.3px;
}

.top-nav-link:hover {
    color: white;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);

}

.top-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f14042c2);
    transition: width 0.4s ease;
}

.top-nav-link:hover::before {
    width: 100%;
}

.main-nav.scrolled {
    top: 0;
    transition: top 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.top-nav.hidden {
    transform: translateY(-100%);
    opacity: 0;
}