/*
 * --------------------------------
 * ESTILOS DEL HEADER PRINCIPAL
 * --------------------------------
 */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    background-color: var(--color-black-noir);
    color: var(--color-white);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    margin: 0 auto;
}

/* ----------------------------------- */
/* ESTILOS DE LOS ELEMENTOS INTERNOS */
/* ----------------------------------- */

.logo-img {
    height: 40px;
    vertical-align: middle;
}

.user-avatar-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    transition: box-shadow 0.2s;
    line-height: 0;
}

.user-avatar-btn:hover {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

/* Si usas el SVG que te di antes */
.avatar-svg {
    height: 40px;
    width: 40px;
    fill: currentColor;
}

.avatar-img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}


/*
 * --------------------------------
 * ESTILOS DEL ENLACE (<a>) DEL MENÚ MÓVIL
 * --------------------------------
 */

.menu-toggle-btn {
    /* Estilos base para que se comporte como un área de clic */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none; /* Elimina el subrayado por defecto de <a> */
    color: inherit; /* Asegura que no tenga el color azul por defecto de <a> */

    /* Propiedades de layout */
    display: flex; /* Para centrar el SVG */
    align-items: center;
    justify-content: center;
    width: 44px; /* Tamaño del área clicable */
    height: 44px; /* Tamaño del área clicable */
    position: relative;
    z-index: 1001;
}

/* El resto de estilos del SVG y la animación son idénticos */

.menu-icon {
    width: 28px;
    height: 28px;
    position: relative;
    stroke: var(--color-white);
    transition: transform 0.3s ease-in-out;
    overflow: visible;
}

.menu-icon .line {
    transition: all 0.3s ease-in-out;
    transform-box: fill-box;
    transform-origin: center;
}

/*
 * --------------------------------
 * ANIMACIÓN A LA "X"
 * --------------------------------
 */

/* Cuando el ENLACE está activo */
.menu-toggle-btn.is-active .menu-icon .line-1 {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle-btn.is-active .menu-icon .line-2 {
    opacity: 0;
}

.menu-toggle-btn.is-active .menu-icon .line-3 {
    transform: translateY(-6px) rotate(-45deg);
}
