
/* HEADER */
header {
    padding: 15px 30px;
    position: fixed;
    width: 100%;
    background: #3f3f41;
    padding: 15px;
    z-index: 9999;
margin-left: -10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    transition: all 0.3s ease;

}

header img {
    height: 120px;
    
 height: 120px;
    transition: height 0.3s ease;
}

header.scrolled {
    padding: 5px 30px; /* menos alto */
    background: #3f3f41;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* logo más pequeño */
header.scrolled img {
    height: 50px;
}


nav {
    
    margin-right: 30px;
    display: flex;
    gap: 30px;
}

/* enlaces */
nav a {
    position: relative;
    color: rgb(255, 255, 255);
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover {
    color: gold;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: gold;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
    margin-right: 60px; /* ajusta este valor */
    display: none;
    width: 30px;
    cursor: pointer;
    z-index: 10001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: black;
    margin: 6px 0;
    transition: 0.4s;
}

/* animación X */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 📱 MOBILE */
@media (max-width: 1224px) {

    nav {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: #3f3f41;

        display: flex;
        flex-direction: column;
        align-items: flex-start;

        padding: 80px 20px;
        gap: 20px;

        transition: right 0.4s ease;
        z-index: 10000;
    }

    nav.active {
        right: -20px;
    }

    .menu-toggle {
        display: block;
    }
}