
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px; 
    display: flex;
    transition: top 0.5s ease-in-out;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background-color: #000000;
    color: #fff;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}


.menu-toggle {
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 150;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 999;
}

    /* Overlay oscuro */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 90;
}

.overlay.show {
    opacity: 1;
    pointer-events: auto;
}

    /* Panel deslizante */
.menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: #000000;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: right 0.4s ease;
    z-index: 120;
}

.menu-panel.show {
    right: 0;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.menu-list li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.menu-list li a:hover {
    transform: translateX(8px);
}

.menu-desktop {
    display: none;
}

/* RESPONSIVE DESKTOP */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .menu-panel,
    .overlay {
        display: none;
    }

    .menu-desktop {
        display: flex;
        align-items: center;
    }

    .menu-desktop .menu-list {
        flex-direction: row;
        gap: 2rem;
    }

    .menu-desktop li a {
        font-size: 1rem;
    }

    .menu-desktop li a:hover {
        text-decoration: underline;
        transform: none;
    }
}

.menu-list li a {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.menu-list li a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8b5cf6; 
    transition: width 0.3s ease;
}

.menu-list li a:hover::after {
    width: 100%;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    font-size: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    border-radius: 50%;
    transition: transform 0.2s ease-in-out;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    text-decoration: none;
    color: white;
}