/* Verificar matrícula — página v2 */

.vm-page {
    background: #fff;
}

.vm-hero {
    padding: 2rem 0 2.25rem;
    background: linear-gradient(135deg, #002966 0%, #0047ab 100%);
    color: #fff;
    border-bottom: 3px solid #c8102e;
}

.vm-hero__inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.vm-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    margin-bottom: 0.75rem;
}

.vm-hero h1 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.vm-hero__lead {
    margin: 0 0 1.25rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.vm-hero__form {
    max-width: 480px;
    margin: 0 auto;
}

.vm-hero__input-group {
    display: flex;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vm-hero__input-group:focus-within {
    border-color: #fde047;
    box-shadow: 0 0 0 3px rgba(253, 224, 71, 0.25);
}

.vm-hero__input-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    color: #0f172a;
    letter-spacing: 0.15em;
    background: transparent;
}

.vm-hero__input-group input::placeholder {
    letter-spacing: 0;
    color: #94a3b8;
}

.vm-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #fde047, #f59e0b);
    color: #0f172a;
    border: none;
    padding: 0.85rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease;
}

.vm-hero__btn:hover {
    transform: translateY(-1px);
}

.vm-hero__hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.72);
}

.vm-hero__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 0;
    list-style: none;
}

.vm-hero__chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
}

.mod-quick-bar--verificar .mod-quick-bar__link {
    color: #0047ab;
    background: #f4f7fc;
    border-color: #d6e2f3;
}

.vm-section {
    padding: 1.25rem 0 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.vm-section[hidden] {
    display: none !important;
}

.vm-result-area {
    animation: vmFadeIn 0.35s ease;
}

@keyframes vmFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Alertas */
.vm-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    font-size: 0.88rem;
    max-width: 720px;
    margin: 0 auto;
}

.vm-alert__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.vm-alert-warn {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.vm-alert-warn .vm-alert__icon {
    background: #fef3c7;
    color: #b45309;
}

.vm-alert-err {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.vm-alert-err .vm-alert__icon {
    background: #fee2e2;
    color: #c8102e;
}

.vm-alert strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.92rem;
}

.vm-alert p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
}

.vm-alert__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Loading */
.vm-loading {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #64748b;
}

.vm-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #e2e8f0;
    border-top-color: #0047ab;
    border-radius: 50%;
    animation: vmSpin 0.8s linear infinite;
    margin: 0 auto 0.85rem;
}

@keyframes vmSpin {
    to { transform: rotate(360deg); }
}

/* Tabla */
.vm-table-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.vm-table-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #002966, #0047ab);
    color: #fff;
}

.vm-table-head__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.vm-table-head strong {
    display: block;
    font-size: 0.95rem;
}

.vm-table-head p {
    font-size: 0.78rem;
    opacity: 0.88;
    margin: 0.15rem 0 0;
}

.vm-table-wrap {
    overflow-x: auto;
}

.vm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.vm-table thead tr {
    background: #f8fafc;
}

.vm-table th {
    padding: 0.7rem 0.9rem;
    text-align: left;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.vm-table td {
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.vm-table tbody tr:last-child td {
    border-bottom: none;
}

.vm-table tbody tr:hover td {
    background: #f8fafc;
}

.vm-cod {
    font-family: ui-monospace, monospace;
    font-size: 0.78rem;
    font-weight: 700;
    background: #eff6ff;
    color: #0047ab;
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
}

.vm-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.vm-b-activo { background: #d1fae5; color: #065f46; }
.vm-b-beca { background: #fef3c7; color: #92400e; }
.vm-b-pendiente { background: #e0e7ff; color: #3730a3; }
.vm-b-inactivo { background: #f3f4f6; color: #6b7280; }
.vm-b-retirado { background: #fee2e2; color: #991b1b; }
.vm-b-finalizado { background: #ede9fe; color: #5b21b6; }
.vm-b-observado { background: #fff7ed; color: #c2410c; }

.vm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.vm-btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.74rem;
}

.vm-btn-blue {
    background: #0047ab;
    color: #fff;
}

.vm-btn-blue:hover {
    color: #fff;
    transform: translateY(-1px);
}

.vm-btn-gold {
    background: linear-gradient(135deg, #fde047, #f59e0b);
    color: #0f172a;
}

.vm-btn-outline {
    background: #fff;
    color: #0047ab;
    border: 1px solid #bfdbfe;
}

.vm-btn-outline:hover {
    background: #eff6ff;
    color: #0047ab;
}

.vm-btn-gray {
    background: #f1f5f9;
    color: #475569;
}

/* Modal */
.vm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.vm-modal {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 660px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.vm-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.95rem 1.25rem;
    background: linear-gradient(135deg, #002966, #0047ab);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    flex-shrink: 0;
}

.vm-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.vm-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.vm-modal-body {
    overflow-y: auto;
    flex: 1;
    background: #f8fafc;
}

.vm-modal-foot {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    flex-shrink: 0;
}

.md-perfil {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.md-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #002966, #0047ab);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.md-info {
    flex: 1;
    min-width: 0;
}

.md-info h4 {
    margin: 0 0 0.2rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}

.md-sub {
    font-size: 0.76rem;
    color: #64748b;
    margin-right: 0.35rem;
}

.md-cod-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.08rem;
    flex-shrink: 0;
}

.md-cod-lbl {
    font-size: 0.64rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.md-tabs {
    display: flex;
    background: #fff;
    border-bottom: 2px solid #e2e8f0;
    padding: 0 1.25rem;
}

.md-tab {
    padding: 0.65rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
}

.md-tab:hover,
.md-tab.active {
    color: #0047ab;
}

.md-tab.active {
    border-bottom-color: #0047ab;
}

.md-panel {
    display: none;
    padding: 0.85rem 1.25rem;
}

.md-panel.active {
    display: block;
}

.md-fila {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 0.85rem;
}

.md-fila:last-child {
    border-bottom: none;
}

.md-lbl {
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 500;
    flex-shrink: 0;
    min-width: 110px;
}

.md-val {
    font-size: 0.82rem;
    color: #0f172a;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.md-vacio {
    color: #cbd5e1;
    font-weight: 400;
}

@media (max-width: 768px) {
    .vm-hero__btn span:last-child {
        display: none;
    }

    .vm-table th,
    .vm-table td {
        padding: 0.6rem 0.7rem;
    }
}

@media (max-width: 640px) {
    .vm-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .vm-modal {
        border-radius: 16px 16px 0 0;
        max-height: 92vh;
    }

    .md-cod-box {
        align-items: flex-start;
    }

    .md-tabs {
        overflow-x: auto;
    }

    .vm-modal-foot .vm-btn {
        flex: 1;
        justify-content: center;
    }
}
