
/* =========================================================
   DASHBOARD V2
========================================================= */

.portal-dashboard-v2 {
    max-width: 1500px;
    margin: 0 auto;
}

.dashboard-hero {
    padding: 2.2rem;
    border-radius: 1.25rem;
    color: #ffffff;
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 255, 255, 0.16),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #212529,
            #495057
        );
    box-shadow: 0 18px 45px rgba(33, 37, 41, 0.16);
}

.dashboard-hero-etiqueta {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.045rem;
    background: rgba(255, 255, 255, 0.14);
}

.dashboard-hero-titulo {
    max-width: 720px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 750;
    line-height: 1.05;
}

.dashboard-hero-texto {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.78);
}

.dashboard-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.09);
}

.dashboard-search-card {
    padding: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.dashboard-search-label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.dashboard-search-box {
    position: relative;
}

.dashboard-search-box > i {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 2;
    color: #6c757d;
    transform: translateY(-50%);
}

.dashboard-search-box .form-control {
    min-height: 48px;
    padding-left: 2.75rem;
    border: 0;
    border-radius: 0.85rem;
}

.dashboard-search-help,
.dashboard-search-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
}

.dashboard-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-section-eyebrow {
    display: block;
    margin-bottom: 0.2rem;
    color: #6c757d;
    font-size: 0.7rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.055rem;
}

.dashboard-section-title {
    font-size: 1.45rem;
    font-weight: 750;
}

.dashboard-admin-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    height: 100%;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 0.95rem;
    color: #212529;
    text-decoration: none;
    background: #ffffff;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.dashboard-admin-card:hover {
    color: #212529;
    border-color: #adb5bd;
    box-shadow: 0 10px 28px rgba(33, 37, 41, 0.1);
    transform: translateY(-3px);
}

.dashboard-admin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 0.75rem;
    background: #f1f3f5;
}

.dashboard-admin-card strong,
.dashboard-admin-card small {
    display: block;
}

.dashboard-admin-card small {
    color: #6c757d;
    font-size: 0.72rem;
}

.dashboard-featured-card {
    display: flex;
    flex-direction: column;
    min-height: 290px;
    height: 100%;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 1.15rem;
    color: #212529;
    text-decoration: none;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(33, 37, 41, 0.06);
    overflow: hidden;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.dashboard-featured-card:hover {
    color: #212529;
    border-color: #adb5bd;
    box-shadow: 0 18px 42px rgba(33, 37, 41, 0.13);
    transform: translateY(-5px);
}

.dashboard-featured-primary {
    border-color: rgba(13, 110, 253, 0.35);
    background:
        radial-gradient(
            circle at top right,
            rgba(13, 110, 253, 0.11),
            transparent 35%
        ),
        #ffffff;
}

.dashboard-featured-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.dashboard-featured-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 1rem;
    font-size: 1.45rem;
    background: #f1f3f5;
}

.dashboard-featured-primary .dashboard-featured-icon {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.12);
}

.dashboard-featured-label {
    padding: 0.32rem 0.58rem;
    border-radius: 999px;
    color: #495057;
    font-size: 0.65rem;
    font-weight: 700;
    background: #f1f3f5;
}

.dashboard-featured-body {
    margin-top: 1.5rem;
    flex-grow: 1;
}

.dashboard-featured-category {
    color: #6c757d;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
}

.dashboard-featured-body h3 {
    margin-top: 0.35rem;
    font-size: 1.1rem;
    font-weight: 750;
    line-height: 1.25;
}

.dashboard-featured-body p {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 0.82rem;
    line-height: 1.55;
}

.dashboard-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #edf0f2;
    font-size: 0.78rem;
    font-weight: 750;
}

.dashboard-category-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.dashboard-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 0.85rem;
    background: #f1f3f5;
}

.dashboard-category-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 750;
}

.dashboard-category-header p {
    margin: 0.15rem 0 0;
    color: #6c757d;
    font-size: 0.76rem;
}

.dashboard-system-card {
    display: flex;
    flex-direction: column;
    min-height: 245px;
    height: 100%;
    padding: 1.1rem;
    border: 1px solid #e7eaed;
    border-radius: 1rem;
    color: #212529;
    text-decoration: none;
    background: #ffffff;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.dashboard-system-card:hover {
    color: #212529;
    border-color: #adb5bd;
    box-shadow: 0 14px 30px rgba(33, 37, 41, 0.1);
    transform: translateY(-4px);
}

.dashboard-system-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 0.8rem;
    font-size: 1.15rem;
    background: #f1f3f5;
}

.dashboard-system-content {
    margin-top: 1rem;
    flex-grow: 1;
}

.dashboard-system-badge {
    display: inline-block;
    margin-bottom: 0.55rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    color: #664d03;
    font-size: 0.62rem;
    font-weight: 750;
    background: #fff3cd;
}

.dashboard-system-content h4 {
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.35;
}

.dashboard-system-content p {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 0.76rem;
    line-height: 1.5;
}

.dashboard-system-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #edf0f2;
    font-size: 0.72rem;
    font-weight: 750;
}

.dashboard-notices {
    position: sticky;
    top: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 1.15rem;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(33, 37, 41, 0.06);
    overflow: hidden;
}

.dashboard-notices-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid #edf0f2;
}

.dashboard-notices-link {
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-notices-list {
    padding: 0 1.25rem;
}

.dashboard-notice-item {
    padding: 1.15rem 0;
    border-bottom: 1px solid #edf0f2;
}

.dashboard-notice-item:last-child {
    border-bottom: 0;
}

.dashboard-notice-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.dashboard-notice-meta small {
    color: #868e96;
}

.dashboard-notice-item h3 {
    font-size: 0.95rem;
    font-weight: 750;
}

.dashboard-notice-item p {
    color: #6c757d;
    font-size: 0.76rem;
    line-height: 1.55;
}

.dashboard-notice-item a {
    font-size: 0.73rem;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-notices-empty,
.dashboard-empty-state {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #6c757d;
}

.dashboard-notices-empty span,
.dashboard-empty-state > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1rem;
    border-radius: 50%;
    color: #198754;
    font-size: 1.55rem;
    background: rgba(25, 135, 84, 0.1);
}

.dashboard-notices-empty h3,
.dashboard-empty-state h3 {
    color: #343a40;
    font-size: 1rem;
    font-weight: 750;
}

.dashboard-notices-empty p,
.dashboard-empty-state p {
    font-size: 0.78rem;
}

@media (max-width: 991.98px) {

    .dashboard-hero {
        padding: 1.5rem;
    }

    .dashboard-featured-card {
        min-height: 250px;
    }

    .dashboard-notices {
        position: static;
    }

}

@media (max-width: 575.98px) {

    .dashboard-hero-titulo {
        font-size: 1.75rem;
    }

    .dashboard-section-title {
        font-size: 1.2rem;
    }

    .dashboard-admin-card {
        align-items: flex-start;
        flex-direction: column;
    }

}
/* =========================================================
   AJUSTE DE COLOR Y CONTRASTE
========================================================= */

.portal-main {
    background:
        linear-gradient(
            180deg,
            #eef2f6 0%,
            #f7f8fa 320px,
            #f1f3f5 100%
        );
}

/* Hero con mayor presencia institucional */

.dashboard-hero {
    background:
        radial-gradient(
            circle at 88% 15%,
            rgba(255, 255, 255, 0.18),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #17202a 0%,
            #263747 48%,
            #465b6d 100%
        );
    box-shadow: 0 20px 45px rgba(23, 32, 42, 0.24);
}

/* Accesos administrativos */

.dashboard-admin-card {
    border-color: #d7dee5;
    box-shadow: 0 6px 18px rgba(33, 37, 41, 0.07);
}

.dashboard-admin-icon {
    color: #0d6efd;
    background: #e7f1ff;
}

.dashboard-admin-card:nth-child(2n) .dashboard-admin-icon {
    color: #6f42c1;
    background: #f0e9fb;
}

/* Tarjetas destacadas */

.dashboard-featured-card {
    border-color: #d6dde4;
    box-shadow: 0 10px 28px rgba(33, 37, 41, 0.1);
}

.dashboard-featured-card:nth-child(4n + 1)
.dashboard-featured-icon {
    color: #0d6efd;
    background: #e7f1ff;
}

.dashboard-featured-card:nth-child(4n + 2)
.dashboard-featured-icon {
    color: #198754;
    background: #e4f4eb;
}

.dashboard-featured-card:nth-child(4n + 3)
.dashboard-featured-icon {
    color: #6f42c1;
    background: #f0e9fb;
}

.dashboard-featured-card:nth-child(4n + 4)
.dashboard-featured-icon {
    color: #d97706;
    background: #fff1d6;
}

/* Tarjetas de sistemas */

.dashboard-system-card {
    border-color: #d8dfe6;
    box-shadow: 0 7px 20px rgba(33, 37, 41, 0.075);
}

.dashboard-system-icon {
    color: #0d6efd;
    background: #e7f1ff;
}

.portal-enlace-contenedor:nth-child(3n + 2)
.dashboard-system-icon {
    color: #198754;
    background: #e4f4eb;
}

.portal-enlace-contenedor:nth-child(3n + 3)
.dashboard-system-icon {
    color: #6f42c1;
    background: #f0e9fb;
}

/* Encabezados de categoría */

.dashboard-category {
    padding: 1.2rem;
    border: 1px solid #dde3e9;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.72);
}

.dashboard-category-icon {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #364957,
            #667c8d
        );
    box-shadow: 0 7px 16px rgba(52, 73, 87, 0.2);
}

/* Avisos */

.dashboard-notices {
    border-color: #d8dfe6;
    box-shadow: 0 10px 28px rgba(33, 37, 41, 0.1);
}

.dashboard-notices-header {
    background:
        linear-gradient(
            135deg,
            #f8f9fa,
            #edf2f6
        );
}

.dashboard-notices-empty span {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #198754,
            #42a575
        );
    box-shadow: 0 8px 18px rgba(25, 135, 84, 0.2);
}

/* Títulos */

.dashboard-section-title {
    color: #263747;
}

.dashboard-section-eyebrow {
    color: #597083;
    font-weight: 800;
}