/* Nota acceso: estilos específicos */

/* Fórmula visual */
.formula-visual-nota {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    background: var(--color-surface, #f9fafb);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-muted, #6b7280);
}

.fn-bach {
    color: #2563eb;
}

.fn-ebau {
    color: #10b981;
}

.fn-espec {
    color: #f59e0b;
}

.fn-op {
    font-weight: 400;
    color: var(--color-text-muted, #6b7280);
}

.fn-result {
    color: var(--color-primary, #2563eb);
    font-size: 1.1rem;
}

/* Sección de fase específica — asignaturas */
.espec-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.espec-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 560px) {
    .espec-row {
        grid-template-columns: 2fr 1fr auto;
    }

    .espec-row .espec-pond-wrap {
        display: none;
    }
}

.espec-row input,
.espec-row select {
    width: 100%;
    padding: 0.52rem 0.6rem;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
    color: var(--color-text, #111827);
    transition: border-color 0.15s;
}

.espec-row input:focus,
.espec-row select:focus {
    outline: none;
    border-color: var(--color-primary, #2563eb);
}

.espec-row input[type="number"] {
    text-align: right;
    font-weight: 600;
}

.btn-remove-espec {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1rem;
    cursor: pointer;
    padding: 0 0.2rem;
    line-height: 1;
}

.btn-remove-espec:disabled {
    color: var(--color-border, #e5e7eb);
    cursor: default;
}

.btn-add-espec {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary, #2563eb);
    background: none;
    border: 2px dashed var(--color-primary, #2563eb);
    border-radius: 8px;
    padding: 0.45rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 1rem;
}

.btn-add-espec:hover {
    background: #eff6ff;
}

/* Resultado hero */
.nota-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.5rem 0 1.25rem;
}

.nota-numero {
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-primary, #2563eb);
}

.nota-sobre {
    font-size: 1rem;
    color: var(--color-text-muted, #6b7280);
    margin-top: 0.2rem;
}

/* Badge de acceso */
.acceso-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.75rem;
}

/* Desglose de puntos */
.desglose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (max-width: 480px) {
    .desglose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.desglose-card {
    background: var(--color-surface, #f9fafb);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 10px;
    padding: 0.85rem 0.5rem;
    text-align: center;
}

.desglose-num {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text, #111827);
}

.desglose-lbl {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-text-muted, #6b7280);
    margin-top: 0.25rem;
}

/* Barra de progreso nota */
.nota-progress-wrap {
    margin-top: 1.25rem;
}

.nota-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-muted, #6b7280);
    margin-bottom: 0.4rem;
}

.nota-progress-bar {
    height: 12px;
    background: var(--color-border, #e5e7eb);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
}

.nota-progress-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease;
}

/* Marcadores en la barra */
.nota-progress-marks {
    position: relative;
    height: 18px;
    margin-top: 0.25rem;
}

.nota-mark {
    position: absolute;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--color-text-muted, #6b7280);
}

/* Pasos */
.pasos-wrap {
    margin-top: 1.25rem;
}

.pasos-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--color-text, #111827);
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.paso {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    margin-bottom: .75rem;
}

.paso-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: var(--color-primary, #2563eb);
    color: #fff;
    border-radius: 50%;
    font-size: .78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: .1rem;
}

.paso-text {
    font-size: .9rem;
    color: var(--color-text, #111827);
    line-height: 1.55;
}

.paso-text code {
    background: var(--color-surface, #f9fafb);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 5px;
    padding: .1rem .4rem;
    font-size: .88rem;
}

/* Tabla de cortes orientativos */
.cortes-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.cortes-tabla th {
    background: var(--color-surface, #f9fafb);
    border: 1px solid var(--color-border, #e5e7eb);
    padding: 0.48rem 0.6rem;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted, #6b7280);
}

.cortes-tabla td {
    border: 1px solid var(--color-border, #e5e7eb);
    padding: 0.44rem 0.6rem;
    color: var(--color-text, #111827);
}

.cortes-tabla tr:nth-child(even) td {
    background: var(--color-surface, #f9fafb);
}

.dificultad-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.35rem;
    vertical-align: middle;
}

/* Gráfico */
.chart-wrap svg text {
    font-family: 'Montserrat', sans-serif;
}