/* Layout: Travel Services identity — globe blue + flight-path lime from the logo; boarding-pass references, rubber-stamp statuses. */
:root {
  --paper: #F2F6F9; --surface: #FFFFFF; --surface-2: #E6EEF4; --ink: #0F1F2B; --muted: #536A7A; --line: #D2DEE7;
  --brand: #1276AA; --brand-2: #1793CF; --on-brand: #FFFFFF; --sun: #86EC1A; --on-sun: #0B2A06; --logo-blue: #1793CF; --logo-green: #86EC1A; --leaf: #3D7F0C; --stamp: #B4302A;
  --ok: #2E7D32; --warn: #A3670F; --bad: #B4302A; --info: #1468A0;
  --ok-bg: #E4F3E2; --warn-bg: #FBF0DC; --bad-bg: #F8E3E0; --info-bg: #E1EFF8;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 14px; --r-sm: 10px; --night: #052A45; --night-2: #0B5585;
  --shadow: 0 1px 2px rgba(12, 40, 60, .06), 0 8px 24px rgba(12, 40, 60, .08);
  --shadow-lg: 0 2px 4px rgba(12, 40, 60, .05), 0 18px 44px rgba(12, 40, 60, .14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A141B; --surface: #111F29; --surface-2: #182A36; --ink: #E5EEF4; --muted: #94AAB8; --line: #243846;
    --brand: #47B3E6; --brand-2: #6CC4ED; --on-brand: #04131C; --sun: #95EE3A; --on-sun: #0B2A06; --leaf: #A4EF55; --logo-blue: #1793CF; --logo-green: #86EC1A; --stamp: #E06459;
    --ok: #74C77A; --warn: #E4AA4E; --bad: #E06459; --info: #6FB9E8;
    --ok-bg: #16301A; --warn-bg: #33270F; --bad-bg: #3A1A17; --info-bg: #102A3C;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); --shadow-lg: 0 18px 44px rgba(0,0,0,.45); --night: #06131E; --night-2: #0B2840; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0A141B; --surface: #111F29; --surface-2: #182A36; --ink: #E5EEF4; --muted: #94AAB8; --line: #243846;
  --brand: #47B3E6; --brand-2: #6CC4ED; --on-brand: #04131C; --sun: #95EE3A; --on-sun: #0B2A06; --leaf: #A4EF55; --logo-blue: #1793CF; --logo-green: #86EC1A; --stamp: #E06459;
  --ok: #74C77A; --warn: #E4AA4E; --bad: #E06459; --info: #6FB9E8;
  --ok-bg: #16301A; --warn-bg: #33270F; --bad-bg: #3A1A17; --info-bg: #102A3C;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); --shadow-lg: 0 18px 44px rgba(0,0,0,.45); --night: #06131E; --night-2: #0B2840; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: var(--display); font-stretch: 112%; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 780; letter-spacing: -.015em; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--brand); }
img { max-width: 100%; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.small { font-size: .86rem; color: var(--muted); }
.eyebrow { font: 600 .74rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--brand); }
:focus-visible { outline: 2.5px solid var(--sun); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }

/* ---------- Buttons & inputs ---------- */
.btn { appearance: none; border: 1.5px solid transparent; border-radius: 12px; padding: 11px 20px; font: 600 .95rem/1.2 var(--body);
  cursor: pointer; display: inline-flex; gap: 8px; align-items: center; justify-content: center; text-decoration: none; transition: background .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 1px 2px rgba(10,40,60,.15); }
.btn-primary:hover:not([disabled]) { background: var(--brand-2); }
.btn-sun { background: var(--sun); color: var(--on-sun); box-shadow: 0 8px 24px rgba(134, 236, 26, .35); }
.btn-sun:hover { filter: brightness(1.06); }
.btn-glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: #FFFFFF; }
.btn-glass:hover { background: rgba(255, 255, 255, .16); }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover:not([disabled]) { border-color: var(--brand); }
.btn-danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-sm { padding: 7px 13px; font-size: .84rem; border-radius: 9px; }
.btn-block { width: 100%; }
.icon-btn { border: 0; background: transparent; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 6px; border-radius: 6px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field > span { font-size: .84rem; font-weight: 600; }
.field > span em { font-style: normal; font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: 400 .95rem/1.4 var(--body); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-sm); padding: 11px 13px; min-width: 0; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--info-bg); }
.invalid { border-color: var(--bad) !important; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.form-error { color: var(--bad); font-weight: 600; font-size: .9rem; }
.notice { border-radius: var(--r-sm); padding: 10px 12px; font-size: .9rem; }
.notice.info { background: var(--info-bg); color: var(--info); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; min-width: 0; box-shadow: 0 1px 2px rgba(12, 40, 60, .04); }

/* ---------- Status pill (stamp style) ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em;
  padding: 6px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); white-space: nowrap; }
.pill.info { color: var(--info); background: var(--info-bg); }
.pill.warn { color: var(--warn); background: var(--warn-bg); }
.pill.ok { color: var(--ok); background: var(--ok-bg); }
.pill.bad { color: var(--bad); background: var(--bad-bg); }
.pill.muted { color: var(--muted); background: var(--surface-2); }

/* ---------- Header ---------- */
.demo-bar { background: var(--sun); color: var(--on-sun); font-size: .82rem; text-align: center; padding: 6px 16px; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line);
  background-image: linear-gradient(90deg, var(--logo-blue), var(--logo-green)); background-size: 100% 3px; background-repeat: no-repeat; background-position: bottom; box-shadow: 0 1px 0 rgba(12, 40, 60, .02); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 46px; height: 38px; object-fit: contain; }
.logo-name { font: 800 1.18rem/1 var(--display); font-stretch: 118%; color: var(--logo-blue); }
.logo-name b { color: var(--leaf); font-weight: 800; }
.logo-sub { display: block; font: 500 .66rem/1.2 var(--mono); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; padding: 8px 12px; border-radius: 9px; }
.nav a.nav-cta { color: var(--on-brand); margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--brand-2); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); }
.lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { border: 0; background: transparent; color: var(--muted); font: 600 .75rem/1 var(--mono); padding: 6px 9px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; margin-left: auto; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column;
    align-items: stretch; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav .lang { align-self: flex-start; margin-top: 6px; }
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(8, 20, 17, .55); display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.modal-card { background: var(--surface); border-radius: 18px; width: min(460px, 100%); padding: 22px; display: grid; gap: 14px; box-shadow: var(--shadow); max-height: 100%; overflow: auto; }
.modal-card.wide { width: min(640px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.amount { font: 800 1.7rem/1.1 var(--display); font-stretch: 112%; margin-top: 4px; font-variant-numeric: tabular-nums; }
details.manual { border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
details.manual summary { cursor: pointer; font-weight: 600; }
details.manual[open] { display: grid; gap: 10px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: .9rem; max-width: calc(100% - 32px); box-shadow: var(--shadow); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
