/* Tabs de tipo de beca */
.beca-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
}

.beca-tab {
    flex: 1;
    min-width: 130px;
    padding: 0.6rem 0.7rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-soft);
    font-family: var(--font-primary);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    line-height: 1.3;
}

.beca-tab.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.beca-tab i {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

/* Tabla de asignaturas */
.asig-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.83rem;
    font-family: var(--font-primary);
    margin-top: 0.5rem;
}

.asig-tabla th {
    background: var(--bg-soft);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.7rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

.asig-tabla th:nth-child(2),
.asig-tabla th:nth-child(3),
.asig-tabla th:last-child {
    text-align: center;
}

.asig-tabla td {
    padding: 0.42rem 0.7rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.asig-tabla td:nth-child(2),
.asig-tabla td:nth-child(3) {
    text-align: center;
}

.asig-tabla td:last-child {
    text-align: center;
}

.asig-tabla input[type=text],
.asig-tabla input[type=number] {
    width: 100%;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    background: var(--bg-soft);
    color: var(--text-color);
    text-align: center;
    transition: border-color var(--transition);
}

.asig-tabla input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

.asig-tabla input.ok {
    border-color: #059669;
    background: #f0fdf4;
}

.asig-tabla input.warn {
    border-color: #d97706;
    background: #fffbeb;
}

.asig-tabla input.error {
    border-color: #dc2626;
    background: #fef2f2;
}

.btn-del-asig {
    background: none;
    border: none;
    cursor: pointer;
    color: #dc2626;
    font-size: 0.85rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    transition: background var(--transition);
}

.btn-del-asig:hover {
    background: #fee2e2;
}

.asig-tabla tfoot td {
    font-weight: 700;
    color: var(--primary-color);
    background: #eff6ff;
    padding: 0.55rem 0.7rem;
}

.tabla-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Medidor de nota */
.medidor-nota-wrap {
    margin: 1rem 0 0.5rem;
}

.medidor-nota-track {
    position: relative;
    height: 24px;
    border-radius: 12px;
    overflow: visible;
    background: linear-gradient(to right,
            #dc2626 0%, #dc2626 40%,
            #d97706 40%, #d97706 60%,
            #059669 60%, #059669 80%,
            #2563eb 80%, #2563eb 100%);
}

.medidor-nota-needle {
    position: absolute;
    top: -5px;
    width: 4px;
    height: 34px;
    background: #1e293b;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: left 0.6s ease;
}

.medidor-nota-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.35rem;
    font-family: var(--font-primary);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.nota-grande {
    text-align: center;
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin: 0.7rem 0 0.2rem;
}

.nota-sobre {
    text-align: center;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Indicador resultado beca */
.beca-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    background: var(--bg-soft);
    margin-top: 1rem;
}

.beca-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.beca-icon.cumple {
    background: #d1fae5;
    color: #059669;
}

.beca-icon.cerca {
    background: #fef3c7;
    color: #d97706;
}

.beca-icon.nocumple {
    background: #fee2e2;
    color: #dc2626;
}

.beca-icon.excelente {
    background: #dbeafe;
    color: #2563eb;
}

.beca-verdict {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
}

.beca-verdict span {
    display: block;
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    line-height: 1.5;
}

/* Tabla de becas referencia */
.tabla-becas {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    font-family: var(--font-primary);
}

.tabla-becas th {
    background: var(--bg-soft);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.8rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

.tabla-becas td {
    padding: 0.45rem 0.8rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.tabla-becas td:nth-child(3) {
    font-weight: 700;
    text-align: center;
}

.tabla-becas tr.cumple-fila td {
    background: #f0fdf4;
}

.tabla-becas tr.nocumple-fila td {
    background: #fef2f2;
}

.tabla-becas tr.activa-fila td {
    background: #eff6ff;
    font-weight: 700;
    color: var(--primary-color);
}

.badge-cumple {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #d1fae5;
    color: #059669;
}

.badge-nocumple {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #fee2e2;
    color: #dc2626;
}

.badge-cerca {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #fef3c7;
    color: #d97706;
}

/* Calculadora de nota necesaria */
.nota-necesaria-card {
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.4rem;
}

.nota-necesaria-card h3 {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.nota-nec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-primary);
    font-size: 0.85rem;
}

.nota-nec-row:last-child {
    border-bottom: none;
}

.nota-nec-label {
    color: var(--text-muted);
}

.nota-nec-val {
    font-weight: 700;
    color: var(--text-color);
}

.nota-nec-val.verde {
    color: #059669;
}

.nota-nec-val.naranja {
    color: #d97706;
}

.nota-nec-val.rojo {
    color: #dc2626;
}

.nota-nec-val.azul {
    color: #2563eb;
}

/* Disclaimer */
.disclaimer {
    background: #fef9ec;
    border-left: 3px solid #d97706;
    border-radius: 0 6px 6px 0;
    padding: 0.7rem 1rem;
    font-family: var(--font-primary);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}