/*  ELEMENTOS DEL HEADER */

.header {
    position: sticky;
    top: 0;
    left: 0;
    max-width: 100%;
    min-height: 80px;
    max-height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
    background-color: var(--purple-primary);
    z-index: 99;
}

/*contenedor de ancla del logo*/
.header-ancla-logo-content {
    display: block;
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 50%;
}

/*propiedades de la img de logo*/
.header-ancla-logo-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    outline: none;
}

/*  CLASE PARA OCULTAR EL BOTON DEL CHECKLIST PARA EL MENU DESPLEGABLE*/
.menu-check {
    display: none;
}

/*boton del label contenedor de los spans animables*/
.menu-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    border: none;
    touch-action: manipulation;
}

/*efecto de hundimiento del boton del menu hamburguesa*/
.menu-toggle:active {
    transform: scale(0.9);
}

/* propiedades para las barras de spans que forman el boton del menu*/
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    transition: transform 0.3s ease-out;
    background-color: var(--soft-purple-bg);
}

/*transformacion del boton en x cuando el menu esta activo*/
.menu-check:checked~.menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

/* 2. Desvanecer la barra del medio (segunda) */
.menu-check:checked~.menu-toggle span:nth-child(2) {
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    /* Opcional: le da un efecto de salida lateral */
}

/* 3. Rotar la barra de abajo (tercera) */
.menu-check:checked~.menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/*menu de navegacion para mobile*/
.menu-nav {
    position: fixed;
    top: 80px;
    right: 0px;
    width: calc(100vw - 30%);
    height: calc(100vh - 80px);
    cursor: pointer;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out, opacity 0.3s ease, visibility 0.3s;
    z-index: 99;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

/*habilita el menu cuando el input esta activo*/
.menu-check:checked~.menu-nav {
    visibility: visible;
    opacity: 1;
    transform: translateX(0%);
    display: block;
}
.menu-nav-ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    gap: 2rem;
    margin-top: 1rem;
}

.menu-item {
    width: 100%;
    min-height: 2rem;
   
}

.menu-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 1.2rem;
    color: var(--purple-primary);
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.3s ease-in-out;
}

.menu-item-link:active {
    transform: scale(0.9);
}

/*version desktop*/



@media (min-width: 768px) {
    
    /*ocultamos el boton del menu*/
    .menu-toggle {
        display: none;
    }

    .menu-nav {
        visibility: visible;
        opacity: 1;
        transform: translateX(0%);
        position: static;
        display: block;
        top: 0;
        right: 0;
        background-color: initial;
        width: auto;
        height: 80px;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }

    .menu-nav-ul {
        flex-direction: row;
        gap: 0.5rem;
        margin-top: 0;
    }

    .menu-item {
        width: auto;
    }

    .menu-item-link {
        justify-content: center;
        color: var(--soft-purple-bg);
        transition: transform 0.3s ease-in-out;
    }

    .menu-item-link:hover {
        color: var(--cian-blue-primary);
        transform: translateY(-2px);
    }

    /*ocualta los favicons para el menu end esktop*/
    /* Forzamos la desaparición absoluta de los iconos en desktop */
    @media (min-width: 768px) {
    /* Red de seguridad: Oculta tanto la etiqueta original como el SVG generado */
    .menu-item-link i,
    .menu-item-link svg {
        display: none;
    }
    .menu-item-link :is(i, svg) {
        display: none;
    }
}

}