/* ===== HEADER ===== */
.header {
    height: 77px;
    /* UI Properties */
    background: var(--unnamed-color-fbf9ef) 0% 0% no-repeat padding-box;
    background: var(--header-bg) 0% 0% no-repeat padding-box;
    opacity: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #d0d0d0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #d0d0d0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 0;
    margin-left: 0;
}

.nav-brand .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.nav-brand .logo-link:hover {
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.logo-image {
    width: 221px;
    height: 31px;
    background: transparent url('../../assets/images/logos/Logo-1.png') 0% 0% no-repeat padding-box;
    background-size: contain;
    opacity: 1;
    display: block;
    min-width: 221px;
    min-height: 31px;
}

.logo-main {
    font-family: 'Lato-Local', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #026751;
    letter-spacing: 0px;
}

.logo-sub {
    display: flex;
    flex-direction: column;
    font-family: 'Lato-Local', Arial, sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #026751;
    line-height: 1.2;
}

.logo-sub div {
    margin: 0;
}

/* Estilos del logo ya están en .logo-main y .logo-sub */

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 0;
    padding-right: 0;
    margin-right: 0;
    flex-direction: row;
    flex-wrap: nowrap;
}

.nav-menu a {
    width: 102px;
    height: 61px;
    /* UI Properties */
    background: transparent;
    opacity: 1;
    color: #026751 !important;
    text-align: center;
    font: normal normal bold 15px/18px 'Lato-Local', Arial, sans-serif;
    letter-spacing: 0px;
    text-decoration: none !important;
    font-weight: 700;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 0;
}

.nav-menu a:hover {
    background: var(--unnamed-color-e0f3ab) 0% 0% no-repeat padding-box;
    background: #E0F3AB 0% 0% no-repeat padding-box;
    border-radius: 0;
    text-decoration: none !important;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #026751;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 200px;
    background: #FBF9EF;
    opacity: 1;
    z-index: 1002;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: visible;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0 2rem;
    height: 77px;
    border: none;
    border-bottom: none;
    background: #FBF9EF;
    box-shadow: none;
    position: relative;
    z-index: 1003;
    width: 100%;
    flex-direction: row;
}

.mobile-menu-close {
    display: flex;
    background: none;
    border: none;
    font-size: 2.8rem;
    cursor: pointer;
    color: #026751;
    padding: 0;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    opacity: 1;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    line-height: 1;
    font-family: 'Lato-Local', Arial, sans-serif;
    letter-spacing: 0;
}

.mobile-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    margin-left: 0;
    gap: 1rem;
    flex-shrink: 0;
}

.mobile-logo-image {
    width: 221px !important;
    height: 31px !important;
    background: transparent url('../../assets/images/logos/Logo-1.png') 0% 0% no-repeat padding-box !important;
    background-size: contain !important;
    opacity: 1 !important;
    display: block !important;
    content: none !important;
}

.mobile-menu.active {
    display: block !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.mobile-menu.active .mobile-menu-close {
    display: flex;
}

.mobile-menu.active * {
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

body.mobile-menu-open .header-line {
    display: block !important;
}

.header.mobile-menu-open .nav-brand,
.header.mobile-menu-open .nav-menu {
    display: none;
}

@media (max-width: 768px) {
    .header.mobile-menu-open .mobile-menu-toggle {
        display: block;
    }
    
}

.header.mobile-menu-open .header-line {
    display: block !important;
}

.mobile-menu.active ~ .header-line {
    display: block !important;
}

.header.mobile-menu-open .mobile-menu {
    display: block !important;
}

body.mobile-menu-open {
    overflow-y: hidden !important;
    overflow-x: clip !important;
    margin: 0 !important;
    padding: 0 !important;
}

html.mobile-menu-open {
    margin: 0 !important;
    padding: 0 !important;
}


.mobile-nav-menu {
    list-style: none;
    padding: 0 2rem 2rem 2rem;
    margin: 0;
    margin-top: 0;
    position: relative;
    z-index: 1002;
    background: transparent;
}

.mobile-nav-menu li {
    border-bottom: none;
    opacity: 1;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
}

/* Parte transparente de abajo del menú móvil */
.mobile-menu-bottom-transparent {
    height: 100vh;
    background: transparent;
    width: 100%;
}

.mobile-nav-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #026751;
    text-decoration: none;
    font-family: 'Lato-Local', Arial, sans-serif;
    font-weight: bold;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0px;
    text-align: left;
    opacity: 1;
    padding: 1rem 0;
    transition: background-color 0.3s ease;
    width: 100%;
}

.mobile-nav-menu a:hover {
    background-color: #F7BDF7;
}

.mobile-nav-menu .arrow {
    color: #026751;
    font-size: 1.2rem;
}

/* ===== HEADER LINE ===== */
.header-line {
    height: 1px !important;
    /* UI Properties */
    border: 1px solid var(--unnamed-color-026751);
    border: 1px solid #026751;
    opacity: 1;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    display: block !important;
    clear: both !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 77px !important;
    z-index: 999 !important;
    box-sizing: border-box !important;
}

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 768px) {
    .header .container {
        padding: 0 1rem;
    }
    
    .header-line {
        padding: 0 1rem !important;
    }
    
    .navigation {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 1;
    }
    
    .nav-brand {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: flex-start;
        margin-left: 1rem;
    }
    
    .navigation .nav-menu {
        display: none;
    }
    
    .logo-image {
        width: 221px;
        height: 31px;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0 0.5rem;
    }
    
    .logo-image {
        width: 221px;
        height: 31px;
    }
    
    .mobile-menu-toggle {
        font-size: 1.2rem;
    }
}
