/* ============================================================
   Liquidador · Diseño Minimalista
   ============================================================ */

:root {
    --bg:          #f7f5f2;
    --bg-soft:     #fcfbf8;
    --text:        #233142;
    --muted:       #6f7682;
    --input-bg:    #efe9e1;
    --input-bg-2:  #f4ece3;
    --btn-main:    #d8cfe9;
    --btn-main-2:  #c9d9e8;
    --btn-text:    #2f3a4a;
    --add-btn:     #e8c6b3;
    --border-line: #e0d8ce;
    --danger:      #c96b63;
    --success:     #7aa67a;
    --accent:      #b8cde0;
    --font:        'Inter', system-ui, -apple-system, sans-serif;
    --max-w:       560px;
    --radius-pill: 999px;
    --radius-md:   16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: linear-gradient(135deg, var(--bg) 0%, #f2ede8 100%); color: var(--text); min-height: 100vh; }

/* ── Utility ─────────────────────────────────────────────── */
.d-none { display: none !important; }

/* ── Screen (contenedor centrado) ───────────────────────── */
.screen {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 48px 24px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ── Títulos ─────────────────────────────────────────────── */
.screen-title {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.class-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.3;
}

.class-subtitle {
    color: var(--muted);
    font-weight: 400;
}

.step-summary {
    width: 100%;
    margin-bottom: 16px;
    padding: 16px 18px;
    background: var(--bg-soft);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(35, 49, 66, 0.04);
}

.summary-title {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--muted);
    margin-bottom: 8px;
}

.summary-group {
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.summary-group:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.summary-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.summary-group-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-item-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: .82rem;
    color: var(--muted);
}

.summary-item-line span:first-child {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-empty {
    font-size: .82rem;
    color: var(--muted);
    padding: 2px 0;
}

.step-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #ececec;
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 28px;
    color: var(--text);
}

/* ── Inputs ──────────────────────────────────────────────── */
.field-input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    padding: 15px 22px;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text);
    outline: none;
    transition: all .15s ease;
    -webkit-appearance: none;
}
.field-input::placeholder { color: #9aa1aa; }
.field-input:focus { background: var(--input-bg-2); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184, 205, 224, 0.22); }
.field-input.field-error { background: #fde8e8; }

/* Los spinners nativos de los inputs numéricos recortaban los dígitos
   en pills angostos (ej. montos de 6-7 cifras) — se quitan siempre. */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

textarea.field-input {
    border-radius: var(--radius-md);
    resize: vertical;
    min-height: 80px;
}

/* ── Field group ─────────────────────────────────────────── */
.field-group {
    width: 100%;
    margin-bottom: 14px;
}

.form-card { width: 100%; }

/* ── Botones ─────────────────────────────────────────────── */
.btn-siguiente {
    background: linear-gradient(135deg, #D1A400 0%, #B89200 100%);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-pill);
    padding: 15px 36px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(35, 49, 66, 0.08);
}
.btn-siguiente:hover {
    transform: translateY(-1px); 
    box-shadow: 0 10px 22px rgba(35, 49, 66, 0.12);
    background: linear-gradient(135deg, #C49A00 0%, #A88500 100%);
}
.btn-siguiente:active { transform: scale(.97); }
.btn-siguiente:disabled { opacity: .4; cursor: not-allowed; }
.btn-siguiente.btn-sm { padding: 11px 22px; font-size: .875rem; }

.btn-outline {
    background: rgba(255,255,255,0.6);
    color: var(--text);
    border: 1.5px solid var(--border-line);
    border-radius: var(--radius-pill);
    padding: 13px 28px;
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
}
.btn-outline:hover { border-color: var(--accent); background: rgba(255,255,255,0.9); }
.btn-outline:disabled { opacity: .4; cursor: not-allowed; }

.btn-edit-class {
    margin-top: 10px;
    border: 1px solid #6f7682;
    background: transparent;
    color: #6f7682;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}
.btn-edit-class:hover {
    background: #C49A00 ;
    color: #fff;
    border: 1px solid #C49A00;
}

/* Botón + (agregar ítem) */
.btn-add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--add-btn) 0%, #e3b79c 100%);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    align-self: flex-end;
    margin: 10px 0 6px auto;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(232, 198, 179, 0.28);
}
.btn-add:hover  { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(232, 198, 179, 0.35); }
.btn-add:active { transform: scale(.93); }
.btn-add-icon   { margin-top: -2px; display: block; }

/* ── btn-row ─────────────────────────────────────────────── */
.btn-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}
.btn-row-final {
    gap: 12px;
    margin-top: 20px;
}

/* ── Error / Hint ────────────────────────────────────────── */
.error-msg {
    color: var(--danger);
    font-size: .875rem;
    margin-bottom: 16px;
    text-align: center;
}
.hint-link { margin-top: 16px; font-size: .85rem; }
.hint-link a { color: var(--muted); text-decoration: none; }
.hint-link a:hover { text-decoration: underline; }
.skip-hint { font-size: .85rem; color: var(--muted); text-align: center; }

/* ── Botón "Salir" flotante (esquina superior derecha) ──── */
.exit-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.75);
    border: 1.5px solid var(--border-line);
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-family: var(--font);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(35, 49, 66, 0.08);
    backdrop-filter: blur(6px);
    transition: all .15s ease;
    z-index: 100;
}
.exit-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(255,255,255,0.95);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(201, 107, 99, 0.18);
}
.exit-btn:active { transform: scale(.96); }
.exit-btn-icon { width: 17px; height: 17px; flex-shrink: 0; }

@media (max-width: 480px) {
    .exit-btn { top: 14px; right: 14px; padding: 9px 14px; font-size: .8rem; }
    .exit-btn span { display: none; }
}

/* ── Deudor badge en wizard ──────────────────────────────── */
.debtor-display { text-align: center; margin-bottom: 32px; }
.debtor-label-small { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; }
.debtor-big { font-size: 1.5rem; font-weight: 600; color: var(--text); }

/* ============================================================
   TAB BAR
   ============================================================ */
.app-wrap { min-height: 100vh; }

.tab-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 20px 0;
    border-bottom: 1px solid var(--border-line);
    background: rgba(247,245,242,0.95);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.tab-btn {
    padding: 10px 22px;
    border-radius: var(--radius-pill) var(--radius-pill) 0 0;
    border: none;
    background: transparent;
    color: var(--muted);
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
    display: inline-block;
}
.tab-btn:hover  { color: var(--text); background: rgba(255,255,255,0.5); }
.tab-btn.active { background: var(--input-bg); color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }

.tab-bar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tab-logout { font-size: .8rem; color: var(--muted); }

/* ── Menú de ajustes (engranaje) ──────────────────────────── */
.settings-menu { position: relative; }

.settings-gear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all .15s ease;
}
.settings-gear-btn svg { width: 19px; height: 19px; }
.settings-gear-btn:hover,
.settings-gear-btn.active {
    color: var(--text);
    background: var(--input-bg);
    border-color: var(--border-line);
}

.settings-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--border-line);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 28px rgba(35, 49, 66, 0.14);
    padding: 6px;
    z-index: 80;
    animation: modalFadeIn .15s ease-out;
}

.settings-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    font-size: .88rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s ease;
    white-space: nowrap;
}
.settings-dropdown-item svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.settings-dropdown-item:hover { background: var(--input-bg); }

/* ── Panels ──────────────────────────────────────────────── */
.panel { display: none; }
.panel.active { display: block; }

/* ============================================================
   WIZARD
   ============================================================ */
.wizard-step { display: none; }
.wizard-step.active { display: block; }

/* Step footer */
.step-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 20px;
    gap: 14px;
}
.step-footer-buttons {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.btn-back { padding: 15px 28px; }

/* ── Items en el wizard ──────────────────────────────────── */
.items-list { width: 100%; }

.item-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: background .15s ease, border-color .15s ease;
}
.item-row-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.item-desc { width: 100%; }
.item-amount-wrap { display: flex; align-items: center; justify-content: flex-end; gap: 6px; width: 100%; }
.item-amount { width: 140px; text-align: right; }

/* Tipo de ítem */
.item-type-select {
    width: 100%;
    padding: 12px 16px;
    font-size: .9rem;
    cursor: pointer;
}

/* Color según el tipo seleccionado */
.item-row.item-type-libranza {
    background: #eaf7ec;
    border-color: #bfe3c4;
}
.item-row.item-type-mora90 {
    background: #fdecea;
    border-color: #f3b7ae;
}
.item-row.item-type-opcion3 {
    background: #eaf1fb;
    border-color: #b9d0f0;
}

/* Punto de color usado en los resúmenes */
.item-type-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.item-type-dot.item-type-libranza { background: #5fa86a; }
.item-type-dot.item-type-mora90   { background: #d9695c; }
.item-type-dot.item-type-opcion3  { background: #5b8fd6; }

/* Porcentaje del ítem */
.item-pct {
    font-size: .8rem;
    color: var(--muted);
    min-width: 52px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Botón eliminar ítem */
.btn-del {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color .15s;
    flex-shrink: 0;
}
.btn-del:hover { color: var(--danger); }

/* ============================================================
   RESUMEN FINAL
   ============================================================ */
#resumen-container { width: 100%; margin-bottom: 20px; }

/* Aviso de regla "mora 90 días" ≥ 30% del total */
.mora-alert {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: .9rem;
    line-height: 1.45;
    margin-bottom: 20px;
    border: 1px solid transparent;
}
.mora-alert-yes { background: #fdecea; border-color: #f3b7ae; color: #a33b30; }
.mora-alert-no  { background: #eaf7ec; border-color: #bfe3c4; color: #2f6b3a; }

.resumen-group { margin-bottom: 16px; }
.resumen-group-title {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--muted);
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-line);
}
.resumen-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: .9rem;
    border-bottom: 1px solid #f5f5f5;
}
.resumen-item-desc { color: var(--muted); flex: 1; }
.resumen-item-amount { font-weight: 600; text-align: right; min-width: 90px; }
.resumen-item-pct { color: var(--muted); text-align: right; min-width: 60px; font-size: .82rem; }

.total-final {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--input-bg) 0%, var(--input-bg-2) 100%);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    box-shadow: 0 8px 18px rgba(35,49,66,0.04);
}
.total-final-label { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.total-final-value { font-size: 1.4rem; font-weight: 700; color: var(--text); }

.notas-wrap { width: 100%; margin-bottom: 4px; }

/* ── Toast ───────────────────────────────────────────────── */
.toast-msg {
    width: 100%;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: .875rem;
    margin-top: 14px;
    text-align: center;
}
.toast-msg.ok  { background: #e8f5e9; color: #2e7d32; }
.toast-msg.err { background: #fde8e8; color: #c62828; }

/* ============================================================
   CALCULADORA DE CUOTA
   ============================================================ */
.calc-grid { width: 100%; margin-bottom: 24px; }

.calc-summary-card {
    background: linear-gradient(135deg, #fff 0%, var(--input-bg) 100%);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 8px 18px rgba(35,49,66,0.05);
}
.calc-summary-header { margin-bottom: 10px; }
.calc-summary-label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--muted);
    margin-bottom: 4px;
}
.calc-summary-sub {
    font-size: .92rem;
    color: var(--text);
    margin: 0;
}
.class-summary-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.class-summary-card {
    width: 100%;
    border: 1px solid var(--border-line);
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fbff 100%);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    transition: all .2s ease;
    box-shadow: 0 4px 12px rgba(35,49,66,0.04);
}
.class-summary-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 18px rgba(35,49,66,0.08);
    transform: translateY(-2px);
}
.class-summary-card.active {
    border-color: var(--accent);
    background: linear-gradient(135deg, #eef6ff 0%, #f7fbff 100%);
    box-shadow: 0 10px 20px rgba(35,49,66,0.10);
}
.class-summary-card-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}
.class-summary-card-value {
    font-weight: 700;
    color: var(--accent);
    font-size: 1rem;
}
.class-summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--input-bg);
    color: var(--accent);
    font-weight: 700;
    font-size: .9rem;
}
.calc-selection-pill {
    margin-top: 10px;
    font-size: .92rem;
    color: var(--muted);
    padding: 10px 12px;
    background: rgba(35,49,66,0.03);
    border-radius: 10px;
}
.calc-empty-state {
    border: 1px dashed var(--border-line);
    border-radius: 12px;
    padding: 12px;
    color: var(--muted);
    text-align: center;
    background: #fff;
}

.calc-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.calc-label {
    min-width: 80px;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text);
}
.calc-input-wrap { position: relative; flex: 1; }
.calc-input-wrap .field-input { padding-right: 44px; }
.calc-unit {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: .9rem;
    pointer-events: none;
}
.field-input-calc { flex: 1; }

.calc-date-hint {
    width: 100%;
    font-size: .8rem;
    color: var(--muted);
    margin-top: -6px;
    margin-bottom: 14px;
}

.export-all-row {
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-line);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.export-all-row .calc-date-hint { margin-top: 0; margin-bottom: 0; }

.calc-check-row { margin-bottom: 14px; }
.calc-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    color: var(--text);
    cursor: pointer;
}
.calc-check-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
    cursor: pointer;
}

.calc-action-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.vr-cuota-box {
    flex: 1;
    background: var(--input-bg);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    min-width: 140px;
}
.vr-cuota-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 4px; }
.vr-cuota-value { font-size: 1.35rem; font-weight: 700; color: var(--text); }

/* Tabla amortización */
.table-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}
.btn-table-toggle {
    background: none;
    border: none;
    color: var(--muted);
    font-size: .875rem;
    cursor: pointer;
    font-family: var(--font);
    padding: 6px 0;
}
.btn-table-toggle:hover { color: var(--text); }
.amort-btns { display: flex; gap: 10px; align-items: center; }

#amort-table-inner {
    overflow-x: auto;
    max-width: 100%;
    padding: 0 24px 24px;
}

.amort-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
    min-width: 400px;
}
.amort-table th {
    background: var(--input-bg);
    padding: 9px 12px;
    text-align: right;
    font-weight: 600;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--muted);
    border-bottom: 1px solid var(--border-line);
}
.amort-table th:first-child { text-align: center; }
.amort-table td {
    padding: 8px 12px;
    text-align: right;
    border-bottom: 1px solid #f5f5f5;
    color: var(--text);
}
.amort-table td:first-child { text-align: center; color: var(--muted); font-size: .8rem; }
.amort-table tr:hover td { background: #fafafa; }
.amort-total td { font-weight: 700; background: var(--input-bg); border-top: 1px solid var(--border-line); }

/* ── Modal de datos del deudor ─────────────────────────── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(35, 49, 66, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2147483647;
}
.modal-card {
    width: min(100%, 420px);
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(35, 49, 66, 0.22);
    animation: modalFadeIn .2s ease-out;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-backdrop.d-none {
    display: none !important;
}
.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.modal-help {
    font-size: .92rem;
    color: var(--muted);
    margin-bottom: 18px;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
    .screen-title { font-size: 1.9rem; }
    .class-title  { font-size: 1.4rem; }
    .calc-row { flex-direction: column; align-items: flex-start; gap: 6px; }
    .calc-label { min-width: unset; }
    .calc-input-wrap, .field-input-calc { width: 100%; }
    .calc-action-row { flex-direction: column; }
    .vr-cuota-box { width: 100%; }
    .tab-bar { flex-wrap: wrap; justify-content: center; row-gap: 8px; padding-bottom: 10px; }
    .tab-bar-actions { margin-left: 0; }
    .modal-card { padding: 20px; }
}

@media (max-width: 340px) {
    .item-amount { width: 120px; }
}

/* Opción 1: Logo centrado */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-img {
    max-width: 250px;
    height: auto;
    display: inline-block;
}

/* Opción 2: Logo en el título */
.logo-title {
    height: 40px;
    width: auto;
    vertical-align: middle;
    margin-right: 10px;
}

.screen-title {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Opción 3: Logo en header */
.main-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.header-logo {
    height: 40px;
    width: auto;
    margin-right: 15px;
}

.header-title {
    font-size: 20px;
    font-weight: bold;
}

.screen-title {
    font-size: 42px;
    font-weight: 800;
    color: #2f3a4a;
    margin: 10px 0 5px 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.screen-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #2f3a4a;
    margin: 0 0 15px 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
}

.screen-description {
    font-size: 16px;
    line-height: 1.7;
    color: #2f3a4a;
    text-align: center;
    max-width: 650px;
    margin: 0 auto 10px auto;
}