/* ===== NAVBAR DENTRO DEL HERO ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .logo img {
    width: max-content;
    height: 40px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.navbar ul li a {
    position: relative;
    /* necesario para el pseudo-elemento */
    color: white;
    font-weight: 700;
    text-decoration: none;
    z-index: 1;
    /* el texto sobre la pincelada */
    transition: color 0.3s;
}

/* Pincelada detrás del texto */
.navbar ul li a::before {
    content: '';
    position: absolute;
    left: -10px;
    bottom: 0px;
    width: 0;
    height: 24px;
    background: #E67E22;
    z-index: -1;
    transition: width 0.4s ease;
    display: inline-block;
}

/* Hover: expandimos la pincelada */
.navbar ul li a:hover::before {
    width: 75%;
    /* 75% del ancho del contenedor del link */
}

/* Opcional: mantener color del texto sobre la pincelada */
.navbar ul li a:hover {
    color: #fff;
}

.navbar .btn-contact {
    background-color: #E67E22;
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.navbar .btn-contact:hover {
    background-color: #0d6efd;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s;
}

/* ===== RESPONSIVE NAVBAR ===== */
@media (max-width: 768px) {
    .navbar ul {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100% - 70px);
        background-color: rgba(30, 30, 47, 0.95);
        flex-direction: column;
        gap: 25px;
        padding-top: 40px;
        transition: right 0.4s ease;
        border-radius: 0 0 0 8px;
        display: flex;
    }

    .navbar ul.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 480px) {
    .navbar ul {
        position: absolute;
        top: 65px;
        right: 0;
        background-color: rgba(30, 30, 47, 0.9);
        flex-direction: column;
        width: 200px;
        padding: 15px;
        display: none;
        border-radius: 0 0 8px 8px;
    }

    .navbar ul.active {
        display: flex;
        width: 100%;
        height: auto;
    }
}