/* ===== HEADER ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--vino-oscuro);
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s ease-in-out;
}

.header-hidden {
    transform: translateY(-110%);
}

/* ===== SECCIONES - SCROLL PADDING ===== */
section[id] {
    scroll-margin-top: 100px;
}

/* ===== LOGO ===== */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    border-radius: 50%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--blanco);
}

/* ===== MENÚ HAMBURGUESA ===== */
.nav-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    gap: 5px;
    z-index: 1001;
    padding: 10px;
}

.bar {
    width: 30px;
    height: 4px;
    background-color: var(--vino-claro);
    transition: 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ===== MENÚ LATERAL ===== */
.nav-menu {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    width: 300px;
    background-color: var(--blanco);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.nav-menu.active {
    right: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--gris-texto);
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--verde);
}
