
.body{
    background-color: var(--color-white); ;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header-inner{
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.container {
    width: 100%;
    max-width: 100%; 
    margin-inline: auto;
    padding-inline: var(--space-4);
}


.logo{
    width: var(--space-18);
}

.logo img {
    width: auto;    
    display: block;
}

.menu-open{
    height:var(--space-5);
    width: var(--space-5);
    margin-right:-1rem;
    justify-content: end;
}

.menu-close{
    align-items: end;
    height:var(--space-6);
    width: var(--space-6);
    margin-top: var(--space-5);
    margin-right: -1rem;
}

.menu-open, .menu-close{
    display: flex;
    align-items: center;
    justify-content: end;
    border: 0;
    background-color:transparent; 
}

.open-img, .close-img{
    width: 100%;
}

.nav {
    opacity: 0;
    visibility:hidden ;
    display: flex;
    flex-direction: column;
    align-items: end;
    gap:0;
    padding-right: var(--space-4);
    padding-left: 0;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-first);
    transition: all 0.3s ease-in-out;
    overflow-y: auto;
    width: min-content;
    min-height: 100%;
}
.nav.visible{
    opacity: 1;
    visibility:visible;
    z-index: 100;

}
.nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch; 
    gap: var(--space-1);
    justify-content: space-between;
    padding-left: var(--space-2);
    padding-right: 0;
    margin-top: var(--space-2);
}

.li {
    list-style: none;
    font-family: var(--font-roboto);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-regular);
    position: relative; 
    text-transform: uppercase; 
    min-width:fit-content;
}

.li::first-letter{
    font-size: var(--font-size-2xl);
}

.li a{
    text-decoration: none;
    color: var(--color-white);


}

.li a:hover {
    color: var(--color-cream);

} 

.sub-menu {
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border-radius: 12px;
}
/* Language Dropdown*/
.language-dropdown {
    position: relative;
    list-style: none;
    font-family: var(--font-sans);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-regular);
    text-transform: uppercase;
}

.language-dropdown::first-letter{
    font-size: var(--font-size-2xl);
}

.language-toggle {
    background: none;
    border: none;
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-regular);
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    width: 100%;
    text-align: left;
}

.language-toggle:hover {
    color: var(--color-cream);
}

.dropdown-arrow {
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.language-dropdown.active .dropdown-arrow {
    transform: rotate(-135deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-first);
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    overflow: hidden;
    margin-top: var(--space-1);
    list-style: none;
    padding: 0;
    border-radius: 12px;
}

.language-dropdown.active .dropdown-content {
    display: block;
}

.dropdown-content li {
    list-style: none;
}

.lang-switcher {
    width: 100%;
    padding: var(--space-2);
    background: none;
    border: none;
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
}

.lang-switcher:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--color-cream);
}

.lang-switcher.active {
    background-color: rgba(255,255,255,0.2);
    color: var(--color-cream);
}



 /*============= screen 768px ======================== */
@media (width > 767px) and (width < 1023px){ 

.container {
    width: 100%;
    max-width: 100%; 
    margin-inline: auto;
    padding-inline: var(--space-6);
}

.header-inner{
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.logo{
width: var(--space-20);

}

.logo img {
    width: auto;    
    display: block;
}

.menu-open{
    height:var(--space-6);
    width: var(--space-6);
    margin-right: 0;
}


.menu-close{
    align-items: end;
    height:var(--space-6);
    width: var(--space-6);
    margin-top: var(--space-1);
    margin-right: var(--space-1)
}


.menu-open, .menu-close{
    display: flex;
    align-items: center;
    justify-content: end;
    border: 0;
    background-color:transparent;  
}

.open-img, .close-img{
    width: 100%;
}

.nav {
    opacity: 0;
    visibility:hidden ;
    display: flex;
    flex-direction: column;
    align-items: end;
    gap:0;
    padding: var(--space-4);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-first);
    transition: all 0.3s ease-in-out;
    overflow-y: auto;
    z-index: 100;
}
.nav.visible{
    opacity: 1;
    visibility:visible;

}
 .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch; 
    gap: var(--space-2);
    padding-inline: 0;
    margin-top: var(--space-4);
}

.li {
    list-style: none;
    font-family: var(--font-sans);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-regular);
    position: relative;
}
 .li a{
    text-decoration: none;
    color: var(--color-white);

}

.li a:hover {
    color: var(--color-cream);

} 

 .sub-menu {
    display: none;
}

}

/* =================== screen 1024px ===================== */

@media (width > 1023px){

.container {
    width: 100%;
    max-width: var(--container-desktop);
    margin-left: auto;
    margin-right: auto;
    padding-inline: var(--space-4);
}
    
.header-inner{
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
}

.logo{
    width: 10rem;
}

.logo img {
    width: auto;    
    display: block;
}

.nav,
.nav.visible {
    display: flex;
    position: static;
    opacity: 1;
    visibility: visible;
    background-color: transparent;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0;
    overflow: visible;
    z-index: 100;
}

.nav .nav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-0-5);
}

.nav-list .li{
    margin-left: var(--space-2);
    list-style: none;
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
}

.nav-list .li::first-letter{
    font-size: var(--font-size-lg);
}

.nav-list .li a{
    text-decoration: none;
    color: var(--color-black);
}

.li a:hover {
    color: var(--color-first);
} 

.menu-close, .menu-open{
    display: none;
}

.li .sub-menu {
    display: none;
    position: absolute;
    flex-direction: column;
    padding: var(--space-1);
    background-color: var(--color-first);

}

.li:hover .sub-menu {
    display: flex;
    width: content;
    gap: var(--space-2);
    padding: var(--space-2);
    z-index: 100;
}
.sub-menu.active{
    display: flex;
    width: content;
    padding: var(--space-1);
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Estilos específicos para submenu items - CORREGIDO */
.sub-menu-item{
    list-style-type: none;
    font-size: var(--font-size-sm);
    line-height: 1.1rem;
}

.sub-menu-item a {
    color: var(--color-white) !important;
    text-decoration: none;
}

.sub-menu-item a:hover{
    color: var(--color-cream) !important;
}

/* Desktop Language Dropdown Styles */
.language-dropdown {
    margin-left: var(--space-2);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-transform: none;
}

.language-dropdown::first-letter{
    font-size: var(--font-size-base);
}

.language-toggle {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-transform: none;
    color: var(--color-black);
}

.language-toggle:hover {
    color: var(--color-first);
}

.dropdown-content {
    right: 0;
    left: auto;
}

}