/* ==========================================
   LA TAPERA DEV
   Archivo: header.css
   Descripción:
   Header y navegación principal.
========================================== */


/* ==========================================
   HEADER
========================================== */

header {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: var(--header-height);

    display: flex;

    align-items: center;

    z-index: 1000;

    background: var(--color-header);

    transition: var(--transition);

}


/* ==========================================
   NAVBAR
========================================== */

nav {

    display: flex;

    justify-content: space-between;

    align-items: center;

    height: var(--header-height);

}


/* ==========================================
   LOGO
========================================== */

.logo {

    display: flex;

    align-items: center;

    gap: var(--space-2);

    font-size: 1.2rem;

    font-weight: var(--font-semibold);

    color: var(--color-text-light);

}

/* ==========================================
   IMAGEN
========================================== */

.logo img {

    width: 70px;

    height: auto;

    border-radius: 50%;

}


/* ==========================================
   MENÚ
========================================== */

nav ul {

    display: flex;

    align-items: center;

    gap: var(--space-4);

}

nav ul li {}

nav ul li a {

    position: relative;

    font-weight: var(--font-medium);

    transition: var(--transition);

    color: var(--color-text-light);

}

nav ul li a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -6px;

    width: 0;

    height: 2px;

    background: var(--color-accent);

    transition: var(--transition);

}

nav ul li a:hover::after {

    width: 100%;

}




/*---DESPLEGABLE---*/
.contact-dropdown {

    position: absolute;

    top: calc(100% + 1rem);

    right: 0;

    display: none;

    flex-direction: column;

    align-items: center;

    gap: 1rem;

    min-width: 280px;

    padding: 1.5rem;

    background: var(--color-header);

    border-radius: var(--radius-medium);

    box-shadow: 0 15px 40px rgba(0, 0, 0, .25);

    z-index: 1000;

}

.contact-dropdown.active {

    display: flex;

}

.contact-email {

    color: var(--color-text-light);

    font-size: .95rem;

    text-align: center;

}

.contact-dropdown.active {

    display: flex;

} 

.nav-contact {

    position: relative;

}

.nav-button {

    width: 90%;

    display: inline-flex;

    justify-content: center;

    align-items: center;

    padding: 1rem 2.5rem;

    border: 2px solid var(--color-text-light);

    border-radius: 999px;

    background: transparent;

    color: var(--color-text-light);

    font-size: 1rem;

    font-weight: var(--font-medium);

    letter-spacing: .02em;

    transition: var(--transition);


}

.nav-button:hover {

    background: var(--color-text-light);

    color: var(--color-header);

}

/* ==========================================
   MENÚ HAMBURGUESA
========================================== */

.menu-toggle {

    display: none;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 6px;

    background: none;

    border: none;

    cursor: pointer;

    padding: .5rem;

}

.menu-toggle span {

    width: 28px;

    height: 3px;

    background: var(--color-text-light);

    border-radius: 10px;

    transition: var(--transition);

}