/* Estilos complementarios a Tailwind - Sistema Condonación Ley 21.850 */
:root { --primary: #00A0A2; --secondary: #FED30F; --bg: #F5F7FA; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }

/* Campos de formulario */
.input, .select, .textarea {
  width: 100%; border: 1px solid #cbd5e1; border-radius: .6rem; padding: .62rem .8rem; font-size: .95rem;
  background: #fff; color: #0f172a; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,160,162,.18); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.input.is-valid { border-color: #16a34a; }
.label { display: block; font-size: .85rem; font-weight: 600; color: #334155; margin-bottom: .35rem; }
.label .req { color: #dc2626; margin-left: 2px; }
.help { font-size: .78rem; color: #64748b; margin-top: .25rem; }
.field-error { font-size: .78rem; color: #dc2626; margin-top: .3rem; display: none; }
.field-error.show { display: block; }
.input-sm { padding: .45rem .6rem; font-size: .85rem; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; border-radius: .65rem; padding: .62rem 1.1rem; font-size: .92rem; transition: all .15s; cursor: pointer; border: 1px solid transparent; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #008A8C; }
.btn-secondary { background: var(--secondary); color: #3b2f00; }
.btn-secondary:hover:not(:disabled) { background: #E5BC00; }
.btn-outline { background: #fff; color: #0f172a; border-color: #cbd5e1; }
.btn-outline:hover:not(:disabled) { border-color: var(--primary); color: #006E70; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-ghost { background: transparent; color: #475569; }
.btn-ghost:hover { background: #f1f5f9; }
.btn-sm { padding: .38rem .7rem; font-size: .8rem; border-radius: .5rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }

.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; box-shadow: 0 1px 2px rgba(15,23,42,.04); }

/* Tarjetas de opción (radio / checkbox) */
.option-card { display: flex; gap: .75rem; align-items: flex-start; border: 2px solid #e2e8f0; border-radius: .85rem; padding: .9rem 1rem; cursor: pointer; background: #fff; transition: all .15s; }
.option-card:hover { border-color: #99DADB; }
.option-card:has(input:checked) { border-color: var(--primary); background: #E6F6F6; }
.option-card input { margin-top: .2rem; accent-color: var(--primary); width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); }

/* Barra de progreso de pasos */
.steps { display: flex; gap: .25rem; }
.step-dot { flex: 1; text-align: center; font-size: .72rem; color: #94a3b8; position: relative; }
.step-dot .num { width: 2rem; height: 2rem; border-radius: 9999px; margin: 0 auto .35rem; display: flex; align-items: center; justify-content: center; font-weight: 700; background: #e2e8f0; color: #64748b; transition: all .2s; position: relative; z-index: 1; }
.step-dot.active .num { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(0,160,162,.2); }
.step-dot.done .num { background: #CCEDED; color: #006E70; }
.step-dot.active { color: #0f172a; font-weight: 600; }
.step-dot::before { content: ''; position: absolute; top: 1rem; left: -50%; right: 50%; height: 2px; background: #e2e8f0; }
.step-dot:first-child::before { display: none; }
.step-dot.done::before, .step-dot.active::before { background: var(--primary); }
@media (max-width: 640px) { .step-dot .lbl { display: none; } }

/* Zona de carga */
.dropzone { border: 2px dashed #cbd5e1; border-radius: .85rem; padding: 1rem; text-align: center; background: #f8fafc; cursor: pointer; transition: all .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: #E6F6F6; }

/* Tablas */
.table { width: 100%; font-size: .87rem; }
.table th { text-align: left; font-weight: 600; color: #475569; background: #f8fafc; padding: .65rem .8rem; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.table td { padding: .65rem .8rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.table tbody tr:hover { background: #fafcfc; }

/* Pestañas */
.tab-btn { padding: .65rem 1rem; font-size: .87rem; font-weight: 600; color: #64748b; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab-btn:hover { color: #0f172a; }
.tab-btn.active { color: #006E70; border-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.fade-in { animation: fadeIn .25s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.swal2-popup { font-family: 'Inter', sans-serif !important; border-radius: 1rem !important; }
.swal2-styled.swal2-confirm { background: var(--primary) !important; }

/* Impresión */
@media print {
  header, footer, aside, nav, .no-print, .btn { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}
