﻿/* ----------  SIDEBAR BUZÓN (ESCRITORIO)  ---------- */
.sidebar-buzon {
    width: 310px;
    background: rgb(249,220,214);
    color: #fff;
    min-height: calc(100vh - 70px);
    position: sticky;
    top: 70px;
    left: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: background .3s ease;
    z-index: 500;
}

    .sidebar-buzon .components {
        padding: 20px 0;
        flex-grow: 1;
    }

        .sidebar-buzon .components li a {
            padding: 20px 28px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: #545454;
            text-decoration: none;
            font-size: 1rem;
            transition: background .3s ease;
        }

            .sidebar-buzon .components li a:hover {
                background: #bb9c685c;
                border-radius: 0 10px 10px 0;
            }

        .sidebar-buzon .components li .icon {
            width: 24px;
            height: 24px;
            fill: #545454;
            flex-shrink: 0;
        }

/* Texto y flechas visibles por defecto */
.menu-text-option {
    margin-left: 10px;
    margin-right: auto;
    white-space: nowrap;
    opacity: 1;
}

.icon {
    width: 24px;
    height: 24px;
    fill: white;
    flex-shrink: 0;
}

/* Contador de notificaciones (escritorio) */
.notification-counter {
    color: #545454;
    font-size: .75rem;
    font-weight: bold;
    border-radius: 50%;
    padding: .2rem .5rem;
    margin-left: .5rem;
    display: inline-block;
    min-width: 20px;
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 768px) {

    .sidebar-buzon {
        width: 100%;
        position: relative; /* corregido */
        top: auto;
        left: auto;
        min-height: auto;
        background: rgb(249,220,214);
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0;
        z-index: 10;
    }

        .sidebar-buzon .components {
            display: flex;
            flex-direction: row;
            align-items: center;
            padding: 4px 2px;
            margin: 0;
        }

            .sidebar-buzon .components li {
                flex: 0 0 auto;
                list-style: none;
            }

                .sidebar-buzon .components li a {
                    position: relative;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    padding: 8px 14px;
                    min-width: 14vw;
                }

    .menu-text-option {
        display: none;
    }

    .notification-counter {
        position: absolute;
        top: 2px;
        right: 6px;
        background: #bb9c68;
        color: #fff;
        border-radius: 50%;
        font-size: .65rem;
        font-weight: bold;
        padding: 0 4px;
        min-width: 16px;
        text-align: center;
        line-height: 1.3;
    }

    .sidebar-buzon .components li .icon,
    .sidebar-buzon .components li a .icon {
        width: 26px;
        height: 26px;
        fill: #545454;
    }

    .sidebar-buzon .components li.active a {
        background: #bb9c685c;
        border-radius: 8px;
    }
}
