/**
 * Home dashboard — widgets Monster Admin, legible en 1080p+
 */

.home-dashboard {
    --home-base: 1.0625rem;
    --home-title: 2rem;
    --home-subtitle: 1.125rem;
    --home-label: 0.875rem;
    --home-body: 1.0625rem;

    max-width: min(1320px, 100%);
    margin: 0 auto;
    padding-bottom: 1.5rem;
    font-size: var(--home-base);
}

/* ── Hero widget ───────────────────────────────────────────────── */
.home-hero-widget {
    border: 0;
    border-radius: 6px;
    background: linear-gradient(125deg, #fff 0%, #f8fcfd 55%, rgba(207, 239, 252, 0.5) 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.home-hero-widget__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.75rem 2rem;
}

.home-hero-widget__eyebrow {
    font-size: var(--home-label);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--st-gold-intense);
    margin: 0 0 0.4rem;
}

.home-hero-widget__title {
    font-size: var(--home-title);
    font-weight: 600;
    color: var(--st-deep-blue);
    margin: 0;
    line-height: 1.2;
}

.home-hero-widget__subtitle {
    margin: 0.65rem 0 0;
    font-size: var(--home-subtitle);
    color: #54667a;
    line-height: 1.5;
    max-width: 40rem;
}

.home-hero-widget__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.15rem;
}

.home-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--st-deep-blue-dark-1);
    background: rgba(0, 144, 208, 0.1);
    border: 1px solid rgba(0, 144, 208, 0.12);
}

.home-meta-chip .bi {
    font-size: 1rem;
    opacity: 0.85;
}

.home-meta-chip-muted {
    color: #54667a;
    background: #f2f7f8;
    border-color: rgba(120, 130, 140, 0.15);
    font-weight: 500;
}

.home-hero-widget__brand {
    flex-shrink: 0;
    width: 108px;
    height: 108px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #fff, rgba(207, 239, 252, 0.8));
    box-shadow: 0 4px 20px rgba(0, 144, 208, 0.12);
}

.home-hero-widget__logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

/* ── Stat cards (widget) ───────────────────────────────────────── */
.home-dashboard .aurora-stat {
    border: 0;
    border-radius: 6px;
    padding: 1.35rem 1.4rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background: #fff;
    min-height: 120px;
}

.home-dashboard .aurora-stat__icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.35rem;
}

.home-dashboard .aurora-stat__value {
    font-size: 2rem;
    font-weight: 600;
    color: #2c2b2e;
}

.home-dashboard .aurora-stat__label {
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    margin-top: 0.25rem;
}

/* ── Panel cards ───────────────────────────────────────────────── */
.home-widget-card {
    border: 0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.home-widget-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.15rem 1.35rem 0;
}

.home-widget-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--st-deep-blue);
    background: rgba(0, 144, 208, 0.1);
    flex-shrink: 0;
}

.home-widget-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c2b2e;
    margin: 0;
}

.home-widget-card__hint {
    font-size: 0.9rem;
    color: #90a4ae;
    margin: 0.15rem 0 0;
}

.home-widget-card__body {
    padding: 1rem 1.35rem 1.35rem;
}

/* ── Sesión (lista elegante) ───────────────────────────────────── */
.home-session-grid {
    display: grid;
    gap: 0;
}

.home-session-item {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(120, 130, 140, 0.12);
}

.home-session-item:last-child {
    border-bottom: 0;
}

.home-session-item dt {
    margin: 0;
    font-size: var(--home-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #90a4ae;
}

.home-session-item dd {
    margin: 0;
    font-size: var(--home-body);
    font-weight: 600;
    color: #2c2b2e;
}

.home-session-badge {
    display: inline-flex;
    padding: 0.3rem 0.65rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(to right, #0178bc, #00bdda);
}

/* ── Shortcuts tiles ───────────────────────────────────────────── */
.home-shortcuts-subtitle {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #90a4ae;
    margin: 0 0 0.65rem;
}

.home-shortcut-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.65rem;
}

.home-shortcut-tile {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(120, 130, 140, 0.12);
    background: #f2f7f8;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.home-shortcut-tile:hover {
    border-color: rgba(0, 144, 208, 0.35);
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 144, 208, 0.1);
    transform: translateY(-1px);
    color: inherit;
}

.home-shortcut-tile__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--st-deep-blue);
    background: rgba(0, 144, 208, 0.12);
}

.home-shortcut-tile__area {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--st-gold-intense);
    margin-bottom: 0.2rem;
}

.home-shortcut-tile__title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #2c2b2e;
    line-height: 1.35;
}

.home-shortcuts-empty {
    font-size: var(--home-body);
    color: #90a4ae;
    line-height: 1.5;
    margin: 0;
}

/* ── Áreas (explorar) ──────────────────────────────────────────── */
.home-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.home-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c2b2e;
    margin: 0;
}

.home-section-meta {
    font-size: 0.9375rem;
    color: #90a4ae;
}

.home-area-card {
    border: 0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.home-area-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.home-area-card__body {
    padding: 1.15rem 1.25rem 1.25rem;
}

.home-area-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(120, 130, 140, 0.12);
}

.home-area-card__title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--st-deep-blue);
    margin: 0;
}

.home-area-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 100px;
    color: var(--st-deep-blue);
    background: rgba(0, 144, 208, 0.1);
}

.home-area-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.25rem;
}

.home-area-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #54667a;
    text-decoration: none;
    transition: background 0.12s ease, color 0.12s ease;
}

.home-area-link:hover {
    background: rgba(0, 144, 208, 0.08);
    color: var(--st-deep-blue);
}

.home-area-link .bi {
    font-size: 0.85rem;
    opacity: 0.5;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.home-area-link:hover .bi {
    opacity: 1;
    transform: translateX(2px);
}

.home-area-more {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #90a4ae;
}

@media (max-width: 767.98px) {
    .home-hero-widget__body {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.35rem 1.25rem;
    }

    .home-hero-widget__brand {
        display: none;
    }

    .home-session-item {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .home-shortcut-tiles {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1920px) {
    .home-dashboard {
        --home-title: 2rem;
        --home-subtitle: 1.125rem;
        --home-body: 1.0625rem;
    }

    .home-dashboard .aurora-stat__value {
        font-size: 2.25rem;
    }
}
