/* Dashboard estilo tarjetas — listados de exámenes (sin fotos de stock) */

.examen-dash-page {
    --ed-dash-indigo: #3730a3;
    --ed-dash-violet: #5b21b6;
    --ed-dash-slate: #0f172a;
}

.examen-dash-hero {
    position: relative;
    overflow: hidden; /* mantiene CTAs dentro del degradé */
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 42%, #4338ca 88%);
    color: #fff;
    /* Más bajo que antes: una sola “banda” de contenido */
    padding: 1rem 1.15rem;
    box-shadow: 0 20px 50px -20px rgba(49, 46, 129, 0.55);
}

@media (min-width: 768px) {
    .examen-dash-hero {
        padding: 1.15rem 1.5rem;
    }
}

.examen-dash-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.14) 0%, transparent 42%),
        radial-gradient(circle at 88% 78%, rgba(129, 140, 248, 0.35) 0%, transparent 45%);
    pointer-events: none;
}

.examen-dash-deco {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: clamp(4rem, 14vw, 9rem);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.examen-dash-deco.d1 {
    top: -0.5rem;
    right: 4%;
}

.examen-dash-deco.d2 {
    bottom: -1rem;
    left: 2%;
    font-size: clamp(3rem, 10vw, 6rem);
    opacity: 0.85;
}

.examen-dash-hero-inner {
    position: relative;
    z-index: 1;
}

.examen-dash-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    margin-bottom: 0.35rem;
}

.examen-dash-title {
    font-size: clamp(1.1rem, 2.4vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.2rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}

.examen-dash-sub {
    margin: 0;
    opacity: 0.9;
    font-size: 0.8125rem;
    line-height: 1.35;
    max-width: min(36rem, 100%);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    word-break: break-word;
}

/* Fila hero: textos a la izquierda (min-width 0) y CTAs que envuelven dentro del bloque */
.examen-dash-hero-inner > .d-flex {
    min-width: 0;
}

.examen-dash-hero .examen-dash-hero-text {
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
}

@media (min-width: 768px) {
    .examen-dash-hero .examen-dash-hero-text {
        max-width: calc(100% - 14rem);
    }
}

.examen-dash-hero-cta {
    min-width: 0;
    max-width: 100%;
    flex: 0 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .examen-dash-hero-cta {
        justify-content: flex-end;
        max-width: min(100%, 22rem);
    }
}

.examen-dash-hero-cta .btn {
    border-radius: 0.65rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.examen-dash-stat {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 1rem 1.1rem;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.examen-dash-stat:hover {
    box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.25);
    transform: translateY(-2px);
}

.examen-dash-stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.examen-dash-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.15rem;
}

.examen-dash-stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.examen-dash-toolbar {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding: 1rem 1.15rem;
}

.examen-dash-card {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
    overflow: hidden;
}

.examen-dash-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 16px 40px -24px rgba(67, 56, 202, 0.45);
    transform: translateY(-3px);
}

.examen-dash-card-head {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1.15rem 1.15rem 0.75rem;
}

.examen-dash-card-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.examen-dash-card-body {
    padding: 0 1.15rem 1rem;
    flex: 1;
}

.examen-dash-card-foot {
    padding: 0.85rem 1.15rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.examen-dash-progress {
    height: 0.35rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-top: 0.5rem;
}

.examen-dash-progress-bar {
    height: 100%;
    border-radius: 999px;
    transition: width 0.35s ease;
}

.examen-dash-empty {
    border-radius: 1rem;
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    padding: 3rem 1.5rem;
    text-align: center;
}

.examen-dash-empty-icon {
    font-size: 3.5rem;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

/* Variantes de color iconos tarjetas */
.ed-ic-indigo {
    background: #eef2ff;
    color: #4338ca;
}

.ed-ic-emerald {
    background: #d1fae5;
    color: #047857;
}

.ed-ic-amber {
    background: #fef3c7;
    color: #b45309;
}

.ed-ic-rose {
    background: #ffe4e6;
    color: #be123c;
}
