.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--background-header);
    color: var(--text-light);
    padding: 0 20px;
    position: fixed;
    top: 0;
    width: 100vw;
    height: 45px; 
    z-index: 1000;
}

.logo1 {
    width: 40px;
    margin-left: 15px;
    align-items: center;
}

.title-header{
    font-size: 14px;
    color: var(--text-light);
}

.avatar-header {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.logout-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 7px;
    position: relative;
}

.user-name-header {
    font-size: 12px;
    font-weight: 500;
    margin-right: 60px;
}

.menu-btn {
    font-size: 1em;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 10px;
    margin: 0;
    width: 50px;
}

.sidebar {
    position: fixed;
    top: 45px;
    left: 0;
    width: 50px;
    height: calc(100% - 40px); 
    background-color: var(--primary-dark);
    color: var(--text-light);
    transition: width 0.3s;
    z-index: 999;
    overflow: hidden;
}

.sidebar.active {
    width: 210px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0px 0px 0px 20px;
    font-size: 12px;
    letter-spacing: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar ul li {
    padding: 15px;
    text-align: left;
    position: relative;
    padding-left: 5px;
}

.sidebar ul li a {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.icon {
    margin-right: 10px;
    font-size: 16px;
}

.hidden {
    display: none;
}

.show {
    display: block;
}

.user-menu {
    display: none;
    position: absolute;
    top: 37px;
    right: 0;
    background-color: var(--background-header);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    overflow: hidden;
    font-size: 12px;
}

.user-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.user-menu li {
    padding: 12px 16px;
    border-bottom: 1px solid var(--background-header);
}

.user-menu li a {
    color: var(--text-light);
    text-decoration: none;
    display: block;
}

.user-menu li a:hover {
    background-color: var(--background-header)
}

/* --- ESTILOS NUEVOS PARA EL HOME BANKING CON VARIABLES --- */
.body-main {
    padding-bottom: 80px;
    background-color: var(--background-main);
}

.main-content {
    margin-left: 0;
    padding: 15px;
    margin-top: 0;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: var(--background-card);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    flex-grow: 1;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 12px;
}

.nav-item.active {
    color: var(--primary-color);
}