.widget {
    background: #fff;
    border: 1px solid #404040;
    border-radius: 6px;
    overflow: hidden;
}

.widget-title {
    background: #A21D22;
    color: #fff;
    padding: 10px 15px;
}

.widget-title h4 {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.widget-body {
    padding: 20px;
}

.widget-body h3 {
    margin-top: 10px;
}

.widget-body ul {
    padding-left: 20px;
}

/* Tarjeta de bootstrapped */
.card {
    border: none;
}
/* Fin Tarjeta de bootstrapped */


/* Inicio Frame Bienvenida */
.bienvenida-box {
    position: relative;
}

.watermark-img {
    position: absolute;
    right: -220px;
    top: 0px;
    opacity: 0.10;
    width: 450px;
    pointer-events: none;
}

.student-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 .125rem .5rem rgba(0, 0, 0, 0.08);
    min-height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* 
.student-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.12);
} */

.student-card-number {
    flex: 0 0 78px; /* ancho fijo estable */
    width: 78px;
    min-width: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--num-color), color-mix(in srgb, var(--num-color) 80%, #000 20%));
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    position: relative;
}

.student-card-number span {
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
}

/* detalle visual suave */
.student-card-number::before {
    content: "";
    position: absolute;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    top: 10px;
    right: 8px;
}

.student-card-number::after {
    content: "";
    position: absolute;
    inset: 0;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.student-card-text {
    flex: 1;
    padding: 0.5rem 0.6rem;
    display: flex;
    align-items: center;
    font-size: 12px;
    line-height: 1.4;
    color: #212529;
}

.footer-logo {
    max-height: 70px;
}

/* Responsive */
@media (max-width: 767.98px) {
    .student-card {
        border-radius: 14px;
    }

    .student-card-number {
        flex: 0 0 64px;
        width: 64px;
        min-width: 64px;
        font-size: 1.05rem;
    }

    .student-card-text {
        padding: 0.9rem 1rem;
        font-size: 12px;
    }

    .watermark-img {
        right: -250px;
        top: 100px;
        width: 500px;
    }

    .footer-logo {
        max-height: 56px;
    }
}

/* FIN Frame Bienvenida */