/* MyRemesas: los mismos colores y letras que el prototipo aprobado (paleta de Dror KYC:
   azul petróleo sobre plateado). Una columna central; en computadora, la misma columna más ancha. */
:root {
  --bg: #eef3f4; --surface: #ffffff; --raised: #f6f9fa; --ink: #0d1b22; --muted: #56707a; --line: #d6e1e4;
  --brand: #0a708f; --brand-ink: #ffffff; --brand-soft: #e1f1f5; --ok: #138a5a; --ok-soft: #e2f4ec;
  --warn: #a8650f; --warn-soft: #fbf0df; --bad: #b8322a; --bad-soft: #fbe7e5;
  --silver-1: #fbfdfd; --silver-2: #e4ecef; --silver-3: #c9d6db;
  --display: "Sora", "Figtree", system-ui, sans-serif;
  --body: "Figtree", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg:#0A111F; --surface:#111B2E; --raised:#16223A; --ink:#E9EEF8; --muted:#8093B3; --line:#1E2C47; --brand:#12A6CF; --brand-ink:#04161d; --brand-soft:#0f2f45; --ok:#19C37D; --ok-soft:#0f2e25; --warn:#F0B90B; --warn-soft:#2e2510; --bad:#F6465D; --bad-soft:#3a1720; --silver-1:#1a2740; --silver-2:#131e33; --silver-3:#2a3a58; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg:#0A111F; --surface:#111B2E; --raised:#16223A; --ink:#E9EEF8; --muted:#8093B3; --line:#1E2C47; --brand:#12A6CF; --brand-ink:#04161d; --brand-soft:#0f2f45; --ok:#19C37D; --ok-soft:#0f2e25; --warn:#F0B90B; --warn-soft:#2e2510; --bad:#F6465D; --bad-soft:#3a1720; --silver-1:#1a2740; --silver-2:#131e33; --silver-3:#2a3a58; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
[hidden] { display: none !important; }
p { margin: 0; }

.pagina { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column;
  padding-block: max(10px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .pagina { max-width: 620px; padding-block-start: 28px; } }
.cab { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px 12px; }
.logo { display: flex; align-items: center; gap: 9px; font: 700 19px var(--display); letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.logo i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(145deg, #0d86a8, #075a73); color: #fff; font: 700 15px var(--display); font-style: normal; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.logo b { color: var(--brand); }
.who { font-size: 13px; color: var(--muted); }
.app { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 4px 0 18px; }
.app > * { flex-shrink: 0; }
.pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.sel { user-select: all; color: var(--ink); }
.cargando { color: var(--muted); text-align: center; padding: 60px 0; }

/* Carrusel */
.frase { border-radius: 18px; padding: 16px 18px; color: #f2f7f9; background: linear-gradient(135deg, #0a3d4f 0%, #0a708f 55%, #3d95ad 100%); position: relative; overflow: hidden; }
.frase::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.16) 48%, transparent 62%); pointer-events: none; }
.frase strong { display: block; font: 700 21px/1.25 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.frase strong em { font-style: normal; letter-spacing: .02em; color: #a8e6f5; }
.frase small { display: block; margin-top: 2px; font-size: 13px; opacity: .88; }
.frase small em { font-style: normal; color: #a8e6f5; font-weight: 600; }
.frase .peq { margin-top: 8px; }
.carr { position: relative; border-radius: 18px; overflow: hidden; touch-action: pan-y; user-select: none; }
.pista { display: flex; transition: transform .45s ease; }
.pista > .frase { flex: 0 0 100%; border-radius: 0; min-height: 164px; display: flex; flex-direction: column; justify-content: center; }
.puntos { position: absolute; right: 10px; bottom: 8px; display: flex; gap: 2px; z-index: 1; }
.puntos button { width: 22px; height: 22px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.puntos button::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.45); transition: width .2s, background .2s; }
.puntos button.on::before { width: 16px; background: #fff; }
.puntos button:focus-visible { outline: 2px solid #fff; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .pista, .puntos button::before { transition: none; } }

/* Pestañas y formulario */
.modo { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--silver-2); border: 1px solid var(--silver-3); }
.modo button { border: 0; border-radius: 10px; padding: 10px 6px; font: 700 14px var(--body); background: transparent; color: var(--muted); cursor: pointer; }
.modo button.on { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(10,60,80,.15); }
.calc { border: 1px solid var(--silver-3); border-radius: 18px; background: linear-gradient(180deg, var(--silver-1), var(--silver-2)); padding: 14px; display: grid; gap: 10px; }
.sec-t { display: flex; align-items: center; gap: 8px; font: 600 14px var(--display); color: var(--ink); margin-top: 4px; }
.sec-t i { width: 21px; height: 21px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font: 700 11px var(--display); font-style: normal; display: grid; place-items: center; flex: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 360px) { .grid2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; min-width: 0; }
.field input, .field select { font: 500 15px var(--body); padding: 11px 11px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; min-width: 0; }
.field input:focus, .field select:focus, .money:focus-within { outline: 2px solid var(--brand); outline-offset: 1px; }
.field .err { color: var(--bad); font-weight: 500; }
.money { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; display: flex; align-items: center; gap: 10px; }
.money label, .lbl { font-size: 12px; color: var(--muted); display: block; font-weight: 600; }
.money input { font: 700 24px var(--display); letter-spacing: -.01em; border: 0; background: transparent; color: var(--ink); width: 100%; padding: 0; outline: none; font-variant-numeric: tabular-nums; }
.cur { flex: none; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; padding: 6px 10px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.kv span:first-child { color: var(--muted); }
.kv b { font-variant-numeric: tabular-nums; text-align: right; }
.pm { display: grid; gap: 6px; }
.opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; background: var(--surface); }
.opt input { accent-color: var(--brand); margin-top: 3px; width: 18px; height: 18px; flex: none; }
.opt b { display: block; font-size: 14.5px; }
.opt small { color: var(--muted); font-size: 12.5px; display: block; }
.opt .fee { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.opt.off { opacity: .55; cursor: not-allowed; }
.res { border-radius: 16px; padding: 12px; background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); display: grid; gap: 6px; }
.res .big2 { font: 700 26px var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.res.wait { background: var(--raised); border-color: var(--line); color: var(--muted); font-size: 13.5px; }
.found { border-radius: 14px; padding: 12px; background: var(--brand-soft); display: grid; gap: 2px; }
.found b { font-size: 16.5px; }
.note { font-size: 12.5px; color: var(--muted); }
.note.c { text-align: center; }
.bad { color: var(--bad); }

.btn { border: 0; border-radius: 14px; padding: 14px; font: 700 15.5px var(--body); cursor: pointer; width: 100%; text-align: center; text-decoration: none; display: block; }
.btn.pri { background: var(--brand); color: var(--brand-ink); }
.btn.sec { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, .modo button:focus-visible, .back:focus-visible, .mini:focus-visible, .opt:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.back { background: none; border: 0; color: var(--brand); font: 600 14.5px var(--body); padding: 0; cursor: pointer; align-self: flex-start; }
.mini { border: 1px solid var(--line); background: var(--raised); color: var(--brand); border-radius: 9px; padding: 5px 10px; font: 700 12.5px var(--body); cursor: pointer; }
.h { font: 600 23px/1.2 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.sub { font-size: 14px; color: var(--muted); }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface); display: grid; gap: 7px; min-width: 0; }
.info { border-radius: 14px; padding: 12px; font-size: 14px; background: var(--brand-soft); color: var(--ink); display: grid; gap: 6px; }
.notice { border-radius: 14px; padding: 12px; font-size: 14px; background: var(--warn-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.notice b { color: var(--warn); }
.error { border-radius: 14px; padding: 12px; font-size: 14px; background: var(--bad-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); display: grid; gap: 8px; }
.refbox { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; background: var(--surface); border: 1px dashed var(--brand); border-radius: 12px; padding: 9px 11px; }
.refbox .lbl { grid-column: 1 / -1; }
.refbox b { font: 600 19px var(--mono); letter-spacing: .04em; word-break: break-all; }
.dato { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; border-bottom: 1px dashed var(--line); padding-bottom: 7px; }
.dato .lbl { grid-column: 1 / -1; }
.dato b { word-break: break-all; font-variant-numeric: tabular-nums; }
.monto-grande { font: 700 26px var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ref { font: 600 13.5px var(--mono); color: var(--brand); }
.mono { font-family: var(--mono); }
.bolt { font: 500 11.5px/1.4 var(--mono); word-break: break-all; color: var(--muted); max-height: 4.2em; overflow: hidden; }

/* Seguimiento */
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding-bottom: 14px; position: relative; }
.tl li::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; border: 2px solid var(--line); background: var(--surface); color: var(--muted); z-index: 1; }
.tl li.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.tl li.ahora i { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.tl li.mal i { border-color: var(--bad); color: var(--bad); }
.tl b { display: block; font-size: 14.5px; }
.tl small { color: var(--muted); font-size: 13px; }
.chip { display: inline-block; font-weight: 700; border-radius: 999px; padding: 3px 10px; font-size: 13px; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.w { background: var(--warn-soft); color: var(--warn); }
.chip.r { background: var(--bad-soft); color: var(--bad); }
.chip.b { background: var(--brand-soft); color: var(--brand); }

/* Recibo */
.recibo .fila { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; border-bottom: 1px dashed var(--line); padding-bottom: 7px; }
.recibo .fila span:first-child { color: var(--muted); }
.recibo .fila b, .recibo .fila span:last-child { text-align: right; }
.compr { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--raised); display: grid; gap: 6px; font-size: 13.5px; }
.compr img { border-radius: 8px; border: 1px solid var(--line); display: block; width: 100%; height: auto; }

.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.v { opacity: 1; }
