/* Página para pacientes (/tramite). Usa los colores, botones y campos de app.css. */
.tramite { max-width: 520px; margin: 0 auto; padding: 20px 16px 40px; }
.tr-cab { display: flex; justify-content: center; padding: 8px 0 18px; }
.tr-logo { width: 210px; height: auto; }
.tr-hero { text-align: center; padding: 0 4px 6px; }
.tr-hero h1 { margin: 0 0 8px; font-size: clamp(24px, 6.4vw, 30px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.tr-hero p { margin: 0 auto; max-width: 42ch; color: var(--tinta-2); font-size: 15.5px; line-height: 1.5; font-weight: 600; }
.tramite .segmento { margin: 18px 0 14px; }
.tr-caja { background: var(--papel); border: 1px solid var(--linea); border-radius: 18px; padding: 20px 18px 18px; }
.tr-caja h2 { margin: 0 0 14px; font-size: 19px; font-weight: 800; }
.tr-caja .za { margin-bottom: 14px; }
.tr-caja .check { margin-bottom: 14px; font-size: 13.5px; line-height: 1.45; }
.tr-caja .check a { color: var(--accion-hondo); font-weight: 700; }
.tr-caja .btn.wsp { margin-top: 14px; }
.tr-caja .btn.ancho + .btn.ancho { margin-top: 10px; }
.tr-nota { margin: 12px 0 0; font-size: 13px; font-weight: 600; color: var(--tinta-3); line-height: 1.45; text-align: center; }
.tr-espera { margin: 10px 0 0; font-size: 14px; font-weight: 700; color: var(--accion-hondo); text-align: center; }
.tr-pie { margin-top: 26px; text-align: center; font-size: 13px; font-weight: 600; color: var(--tinta-3); line-height: 1.6; }
.tr-pie a { color: var(--tinta-2); }

/* Cotización lista */
.tr-listo { text-align: center; }
.tr-listo .cuadre { text-align: left; margin-top: 6px; }
.tr-ok { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--verde-suave); color: var(--verde); }
.tr-ok .ic { width: 30px; height: 30px; stroke-width: 2.6; }
.tr-cod { margin: -6px 0 12px; color: var(--tinta-2); font-weight: 600; }
.tr-cod b { color: var(--tinta); letter-spacing: 0.02em; }
.tr-sig { margin: 12px 0 0; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--tinta-2); }

/* Avance: los 4 pasos con los colores del archivador */
.tr-caso { border: 1px solid var(--linea-2); border-radius: 14px; padding: 14px; margin-bottom: 12px; background: var(--papel-2); }
.tr-caso-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.tr-caso-cab b { font-size: 16.5px; font-weight: 800; }
.tr-caso-cab small { font-size: 12.5px; font-weight: 700; color: var(--tinta-3); }
.tr-pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tr-pasos li { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--tinta-3); min-width: 0; }
.tr-pasos li i { display: block; height: 8px; border-radius: 6px; background: var(--linea); }
.tr-pasos li.hecho i, .tr-pasos li.actual i { background: var(--c); }
.tr-pasos li.actual { color: var(--tinta); }
.tr-pasos li.actual i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 28%, transparent); }
.tr-pasos li small { font-size: 11.5px; font-weight: 600; color: var(--tinta-3); min-height: 1em; }
.tr-caso .tr-sig { margin-top: 12px; font-size: 14.5px; }
.tr-cita { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-weight: 700; color: var(--accion-hondo); }
.tr-saldo { margin: 8px 0 0; font-weight: 800; color: var(--debe); }
.tr-avance h2 { margin-bottom: 12px; }
.tramite .segmento { -webkit-mask-image: none; mask-image: none; overflow: visible; }
.tramite .segmento button { flex: 1 1 0; white-space: normal; line-height: 1.2; padding: 8px 10px; }
.tr-pasos li span { line-height: 1.2; min-height: 2.4em; }
.tr-codigo { display: grid; gap: 2px; margin: 4px auto 14px; padding: 12px 14px; max-width: 320px; border-radius: 14px; border: 2px dashed var(--accion); background: var(--accion-suave); }
.tr-codigo small { font-size: 12.5px; font-weight: 700; color: var(--accion-hondo); }
.tr-codigo b { font-size: 26px; font-weight: 800; letter-spacing: 0.08em; color: var(--tinta); font-variant-numeric: tabular-nums; }
.tr-persona { display: flex; justify-content: center; margin: 0 0 12px; min-height: 0; }
.tr-persona:empty { display: none; }

/* Aviso tranquilo ante una falla técnica (no es un error rojo: es «estamos en eso» + WhatsApp) */
.tr-aviso { display: grid; gap: 6px; margin: 0 0 12px; padding: 14px 14px 12px; border-radius: 14px; background: var(--accion-suave); border: 1px solid color-mix(in srgb, var(--accion) 25%, transparent); color: var(--tinta-2); font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.tr-aviso b { color: var(--tinta); font-size: 15.5px; font-weight: 800; }
.tr-aviso .btn.wsp { margin-top: 6px; }
