﻿



.header-inner {
    position: relative; 
}


.sidebar-toggle {
    position: absolute;
    top: 0px;
    right: 0;
    width: 60px;
    height: 90px;
    color: #444444;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1040; /* encima del sidebar */
    max-width: 1228px;
}

.sidebar-right {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 100vh;
    /*background-color: #343a40;*/
    background-color: #444444;
    overflow: hidden;
    transition: width 0.3s ease;
    z-index: 1030;
    /*margin-top: 35px;*/
}

.texto-side {
    color: white;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 6px;

}

    .texto-side:hover {
        background-color: #5a5a5a; 
        color: #f0f0f0;
        box-shadow: 0 8px 8px rgba(0, 0, 0, 0.2);
    }

    /* Mostrar por hover o por clase activa */
    .sidebar-toggle:hover + .sidebar-right,
    .sidebar-right:hover,
    .sidebar-right.active {
        width: 280px;
    }


    .sidebar-right ul {
        list-style: none;
        padding: 0;
        margin: 0;
        margin-top:90px;
    }

        .sidebar-right ul li {
            padding-left: 20px;
            padding-top: 18px;
        }

            .sidebar-right ul li a,
            .sidebar-right ul li button {
                color: white;
                text-decoration: none;
                display: block;
                white-space: nowrap;
                font-size: 0.95rem;

            }

.icon-sidebar {
    font-size: 15px;
    /*padding-left: 4px;*/
}



