/* Portal del cliente de RAV24: identidad aprobada (blanco, cabecera y botones negros, acento del negocio). Nada de azul marino. */
:root {
  --ink: #111111; --bg: #FFFFFF; --muted: #5F5F5A; --on-dark: #C9C9C4; --border: #E5E5E3; --border-strong: #D4D4D0;
  --accent: #0D9488; --accent-light: #7FD3CA; --accent-soft: #E2F2F0; --accent-dark: #0A7369;
  --ok: #166534; --danger: #B91C1C;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); }
body { font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
.frame { max-width: 520px; min-height: 100dvh; margin: 0 auto; background: var(--bg); display: flex; flex-direction: column; }

.hero { background: var(--ink); color: #fff; padding: 28px 20px 24px; padding-top: max(28px, env(safe-area-inset-top)); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: #fff; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--accent-light); text-transform: uppercase; }
.hero h1 { margin: 6px 0 0; font-size: 28px; line-height: 1.2; font-weight: 700; }
.hero p { margin: 6px 0 0; font-size: 14px; color: var(--on-dark); }

.body { flex: 1; padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.card { border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.big { font-size: 20px; font-weight: 700; }
.muted { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }
h2 { margin: 0; font-size: 18px; font-weight: 600; }
a { color: inherit; }

.btn { min-height: 54px; border-radius: 14px; border: 0; background: var(--ink); color: #fff; font: 600 16px/1 Inter, system-ui, sans-serif; cursor: pointer; padding: 0 16px; width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.secondary { min-height: 48px; background: #fff; color: var(--ink); border: 1px solid var(--border-strong); font-size: 15px; }
.btn.ghost { min-height: 44px; background: transparent; color: var(--muted); font-weight: 500; font-size: 14px; }
.btn:focus-visible, .chip:focus-visible, .pill:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.stack { display: flex; flex-direction: column; gap: 10px; }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; align-self: flex-start; }
.status i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

.ok-title { display: flex; align-items: center; gap: 10px; color: var(--ok); }
.ok-title h2 { color: var(--ink); }
.onway { background: #EDE9FE; border: 1px solid #C4B5FD; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.onway .tag { display: flex; align-items: center; gap: 8px; color: #5B21B6; font-size: 13px; font-weight: 700; }
.onway .tag i { width: 8px; height: 8px; border-radius: 50%; background: #7C3AED; }

.card.extra { flex-direction: row; align-items: center; gap: 12px; }
.card.extra .grow { flex: 1; min-width: 0; }
.pill { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--accent); background: #fff; color: var(--accent-dark); font: 600 14px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--accent-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: #fff; color: var(--muted); font: 600 13px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }

.msg { border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.msg.ok { background: #DCFCE7; color: var(--ok); }
.msg.err { background: #FEE2E2; color: var(--danger); }
.foot { padding: 10px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); text-align: center; font-size: 12px; color: var(--muted); }
