
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    backdrop-filter: blur(5px); 
    transition: transform 0.3s ease-in-out;
    background-color: var(--color-primario);
}
header>section{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    gap: 1rem;
}


.menu__header>a>img{
    width: 5rem;
}
.menu__header>a>img:hover{
    transform: scale(1.1);
    transition: transform 0.5s ease;
}
.menu-celular {
    display: none;
  }

header>section>nav{
    display: flex;
    width: 50%;  
    font-family: 'Ubuntu', sans-serif; 
}
header>section>nav>ul{
    display: flex;
    transition: all 0.3s ease;
    width: 100%; /* aumentar el ancho al 80% */
    
}
header>section>nav>ul>li{
    margin: 0 auto; /* centrar horizontalmente */
}

header>section>nav>ul>li>a{
    font-size: 1.2rem;
    font-weight: 300;
    position: relative;
    transition: all 0.3s ease;
    color: var(--color-terciario);
}
header>section>nav>ul>li>a::after{
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease-out, left 0.3s ease-out;
}
header>section>nav>ul>li>a:hover::after{
    width: 100%;
    left: 0%;
}

@media only screen and (min-width: 768px) and (max-width: 1023px){
    header > section {
        padding: 0 5rem;
    }
    header > section > nav {
        width: 70%;
    }
    .menu__header>img{
        width: 4rem;
    }
    .menu__list__item>a{
        font-size: 0.7rem;
    }
    
}
/* Menú hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-terciario);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: white;
}

/* Contenedor para botones de control */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media only screen and (min-width: 768px) {
    .header-controls {
        order: 3;
    }
    
    .menu-toggle {
        display: none;
    }
}

.mobile-cv {
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 2rem;
}

.boton-cv-mobile {
    background-color: #008CBA;
    color: white !important;
    border: none;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
    font-family: 'Ubuntu', sans-serif;
    transition: all 0.3s ease;
}

.boton-cv-mobile:hover {
    background-color: var(--color-primario);
    color: white !important;
    box-shadow: 0 0 10px var(--color-terciario);
}

@media only screen and (min-width: 768px) {
    .mobile-cv {
        display: none;
    }
}

@media only screen and (min-width: 0px) and (max-width: 767px) {
    header > section {
        padding: 0 2rem;
        position: relative;
    }
    
    .header-controls {
        order: 2;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .theme-toggle {
        margin-right: 0.5rem;
    }
    
    header > section > nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--color-primario);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 10000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }
    
    header > section > nav.active {
        right: 0;
    }
    
    header > section > nav > ul {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        align-items: center;
    }
    
    header > section > nav > ul > li > a {
        font-size: 1.2rem;
        color: var(--color-terciario);
    }
    
    .menu__header > a > img {
        width: 3rem;
    }
    
    .menu-celular {
        display: none;
    }
}




