/* ===========================
   LAYOUT GENERAL
=========================== */

.portal-wrapper{
    display:flex;
    min-height:100vh;
    background:#f8f9fa;
}

/* ===========================
   SIDEBAR
=========================== */

.portal-sidebar{

    width:270px;

    background:
        linear-gradient(
            180deg,
            #212529,
            #343a40,
            #495057);

    color:white;

    position:fixed;

    top:0;
    bottom:0;
    left:0;

    overflow-y:auto;

    transition:.3s;

}

.sidebar-brand{

    padding:25px;

    font-size:22px;

    font-weight:bold;

    text-align:center;

    border-bottom:1px solid rgba(255,255,255,.15);

}

.sidebar-menu{

    padding:15px;

}

.sidebar-link{

    display:flex;

    align-items:center;

    gap:12px;

    color:white;

    text-decoration:none;

    padding:14px;

    border-radius:10px;

    margin-bottom:6px;

    transition:.25s;

}

.sidebar-link:hover{

    background:rgba(255,255,255,.12);

}

.sidebar-link.active{

    background:white;

    color:#212529;

    font-weight:600;

}

/* ===========================
   CONTENIDO
=========================== */

.portal-content{

    margin-left:270px;

    width:100%;

    display:flex;

    flex-direction:column;

}

/* ===========================
   NAVBAR
=========================== */

.portal-navbar{

    background:white;

    min-height:75px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 30px;

    border-bottom:1px solid #ddd;

}

/* ===========================
   MAIN
=========================== */

.portal-main{

    padding:30px;

    flex:1;

}

/* ===========================
   FOOTER
=========================== */

.portal-footer{

    background:white;

    padding:18px;

    text-align:center;

    color:#6c757d;

    border-top:1px solid #ddd;

}
.portal-dashboard {
    max-width: 1500px;
    margin: 0 auto;
}

.portal-bienvenida {
    padding: 2.5rem;
    border-radius: 1.25rem;
    background:
        linear-gradient(
            135deg,
            #212529 0%,
            #495057 100%
        );
    color: #ffffff;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.12);
}

.portal-etiqueta {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portal-titulo {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 750;
    letter-spacing: -0.04em;
}

.portal-subtitulo {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
}

.portal-buscador {
    position: relative;
}

.portal-buscador > i {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 2;
    color: #6c757d;
    transform: translateY(-50%);
}

.portal-buscador .form-control {
    min-height: 58px;
    padding-left: 2.8rem;
    border: 0;
    border-radius: 0.9rem;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.16);
}

.portal-seccion-titulo {
    font-size: 1.45rem;
    font-weight: 750;
}

.portal-icono-categoria {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 0.8rem;
    background: #eef1f4;
    color: #343a40;
    font-size: 1.25rem;
}

.portal-enlace {
    display: flex;
    min-height: 118px;
    height: 100%;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    background: #ffffff;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.portal-enlace:hover {
    transform: translateY(-3px);
    border-color: #adb5bd;
    box-shadow: 0 0.9rem 2rem rgba(0, 0, 0, 0.09);
}

.portal-icono-enlace {
    display: grid;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 1rem;
    background: #f1f3f5;
    color: #343a40;
    font-size: 1.45rem;
}

.portal-flecha {
    color: #adb5bd;
    font-size: 1.1rem;
}

.portal-aviso {
    padding: 1.25rem;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    background: #ffffff;
}

.portal-modal-header {
    border: 0;
    background:
        linear-gradient(
            135deg,
            #212529 0%,
            #495057 100%
        );
    color: #ffffff;
}

.portal-modal-icono {
    display: grid;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    background: #f1f3f5;
    color: #343a40;
    font-size: 1.5rem;
}

.aviso-contenido {
    white-space: pre-line;
    line-height: 1.65;
}

@media (max-width: 767.98px) {
    .portal-bienvenida {
        padding: 1.5rem;
    }

    .portal-titulo {
        font-size: 2rem;
    }
}