.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 200;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 3px;
    background: #2C2C2A;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

@media (max-width: 768px) {
    header {
        justify-content: flex-start;
    }

    .btn-contacto {
        margin-left: auto;
    }

    .menu-toggle {
        display: flex;
        margin-left: 10px;
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 80vw;
        height: 100vh;
        margin: 0;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 80px 24px 24px;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 150;
    }

    header nav.nav-open {
        right: 0;
    }

    header nav .nav-link {
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid #e5e5e5;
    }

    .submenu-container {
        width: 100%;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border: none;
        padding: 8px 0 8px 12px;
        min-width: 0;
        max-height: none;
        margin-bottom: 8px;
    }

    .submenu-container.open .submenu {
        display: block;
    }
}
