/* ============================================================================
   MENÚ HAMBURGUESA RESPONSIVE PROFESIONAL
   Añadir este código al final de tu CSS existente
   ============================================================================ */

/* Icono hamburguesa - oculto por defecto */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    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: var(--gray-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animación cuando el menú está abierto */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

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

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

/* Responsive - Mostrar hamburguesa en tablets y móviles */
@media (max-width: 768px) {
    /* Mostrar icono hamburguesa */
    .menu-toggle {
        display: flex;
    }

    /* Ocultar menú por defecto */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 85%;
        max-width: 320px;
        background: rgba(255, 255, 255, 0.99);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: 120px 0 30px 0;
        gap: 0;
        box-shadow: -8px 0 25px rgba(0, 0, 0, 0.12);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        z-index: 1000;
        overflow-y: auto;
    }

    /* Menú abierto */
    .nav-links.active {
        right: 0;
    }

    /* Estilos de los items del menú */
    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
        text-align: center;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Animación escalonada de los items */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }
    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }
    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }
    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links a {
        display: block;
        padding: 18px 30px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(46, 84, 166, 0.08);
        transition: all 0.3s ease;
        color: var(--gray-dark);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        background: rgba(46, 84, 166, 0.05);
        color: var(--primary-blue);
        padding-left: 30px;
        border-bottom-color: var(--primary-blue);
    }

    /* Botón CTA en menú móvil */
    .nav-cta {
        margin: 25px 30px !important;
        text-align: center;
        border-bottom: none;
        padding: 14px 24px !important;
        border-radius: 50px;
        background: var(--primary-blue) !important;
        color: white !important;
    }

    .nav-cta:hover {
        padding-left: 24px !important;
        background: var(--secondary-blue) !important;
    }

    /* Overlay oscuro cuando el menú está abierto */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .nav-links {
        width: 100%;
        max-width: 100%;
    }

    .nav-links a {
        padding: 16px 25px;
        font-size: 1.05rem;
    }

    .nav-cta {
        margin: 20px 25px !important;
        padding: 12px 20px !important;
    }
}
