/* Dominicocubano Express — sitio público */
:root {
  --ink: #14262a;
  --ink-2: #47595c;
  --sea: #0e5e63;
  --sea-d: #0a4549;
  --mango: #f4a63a;
  --mango-d: #c97d12;
  --foam: #e6f2ef;
  --paper: #fbfcfa;
  --white: #ffffff;
  --line: #cfddda;
  --ok: #1d7a4a;
  --ok-bg: #e3f4ea;
  --warn: #8a5a00;
  --warn-bg: #fff3dc;
  --err: #b3261e;
  --err-bg: #fbe9e7;
  --r-sm: 8px;
  --r-md: 14px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; }
a { color: var(--sea); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
main { flex: 1; }

/* ---------- cabecera ---------- */
.top {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1; }
.brand small { display: block; font-size: 0.78rem; color: var(--ink-2); font-weight: 400; margin-top: 2px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: var(--r-sm); font-size: 0.95rem; }
.nav a:hover { background: var(--foam); }
.nav a[aria-current="page"] { background: var(--foam); color: var(--sea-d); font-weight: 700; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white);
         flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* ---------- botones y campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 13px 24px; cursor: pointer;
  font-weight: 700; text-decoration: none; font-size: 1rem; line-height: 1.2;
  background: var(--sea); color: var(--white);
}
.btn:hover { background: var(--sea-d); }
.btn.mango { background: var(--mango); color: var(--ink); }
.btn.mango:hover { background: #f0951a; }
.btn.ghost { background: transparent; color: var(--sea); border: 1.5px solid var(--sea); }
.btn.ghost:hover { background: var(--foam); }
.btn.danger { background: transparent; color: var(--err); border: 1.5px solid var(--err); }
.btn.block { width: 100%; }
.btn.small { padding: 8px 14px; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

label.f { display: block; margin-bottom: 16px; }
label.f > span { display: block; font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; }
label.f > em { display: block; font-style: normal; font-size: 0.85rem; color: var(--ink-2); margin-top: 5px; }
.in {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); font-size: 1rem;
}
.in:focus { border-color: var(--sea); outline: none; box-shadow: 0 0 0 3px rgba(14, 94, 99, 0.18); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

.alert { padding: 12px 14px; border-radius: var(--r-sm); margin-bottom: 16px; font-size: 0.95rem; }
.alert.err { background: var(--err-bg); color: var(--err); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.info { background: var(--foam); color: var(--sea-d); }

/* ---------- portada ---------- */
.hero { padding: 56px 0 72px; background: var(--foam); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; grid-template-areas: "copy ticket" "facts ticket"; gap: 0 56px; align-items: center; }
.hero .copy { grid-area: copy; align-self: end; }
.hero .facts { grid-area: facts; align-self: start; }
.hero #homeTicket { grid-area: ticket; }
.hero h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.035em;
  font-size: clamp(2.4rem, 5.4vw, 4.1rem); line-height: 1.02; max-width: 12ch;
}
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); margin: 20px 0 28px; max-width: 46ch; }
.hero ul.facts { margin-top: 28px; list-style: none; display: grid; gap: 10px; max-width: 46ch; }
/* Atkinson tacha el cero: las cifras van en la tipografía de titulares */
.breakdown, .pkg span, .kv dd, .list .meta, .amount-row select, .track-form .in { font-family: var(--display); font-weight: 600; }
.track-form .btn { white-space: nowrap; }
.hero ul.facts li { display: flex; gap: 12px; align-items: baseline; }
.hero ul.facts li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--mango); flex: none; transform: translateY(-1px); }
@media (max-width: 900px) {
  .hero { padding: 32px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; grid-template-areas: "copy" "ticket" "facts"; gap: 24px; }
  .hero p.lead { margin-bottom: 0; }
}

/* El ticket: la pieza memorable de la página */
.ticket {
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -22px rgba(10, 69, 73, 0.45);
  position: relative;
}
.ticket-top { padding: 22px 22px 18px; }
.ticket-bottom { padding: 18px 22px 22px; background: var(--white); border-radius: 0 0 var(--r-md) var(--r-md); }
.perf {
  height: 0; border-top: 2px dashed var(--line); margin: 0 18px; position: relative;
}
.perf::before, .perf::after {
  content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--foam);
}
.perf::before { left: -31px; }
.perf::after { right: -31px; }
.ticket.on-paper .perf::before, .ticket.on-paper .perf::after { background: var(--paper); }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--foam); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.seg button {
  border: 0; background: transparent; padding: 10px 6px; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 0.92rem; color: var(--ink-2);
}
.seg button[aria-pressed="true"] { background: var(--white); color: var(--sea-d); box-shadow: 0 1px 3px rgba(20, 38, 42, 0.18); }

.pkgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pkg {
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); padding: 12px; text-align: left; cursor: pointer;
}
.pkg b { display: block; font-family: var(--display); font-size: 1.2rem; }
.pkg span { font-size: 0.85rem; color: var(--ink-2); }
.pkg[aria-pressed="true"] { border-color: var(--sea); background: var(--foam); }

.amount-row { display: grid; grid-template-columns: 1fr 112px; gap: 10px; }
.amount-row .in.big { font-family: var(--display); font-size: 1.6rem; font-weight: 700; padding: 10px 14px; }

.receives small { display: block; color: var(--ink-2); font-size: 0.9rem; }
.receives .num {
  font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3rem); letter-spacing: -0.03em; line-height: 1.05;
  font-variant-numeric: tabular-nums; color: var(--sea-d);
}
.receives .num .cur { font-size: 0.45em; font-weight: 700; margin-left: 6px; letter-spacing: 0; color: var(--ink-2); }
.breakdown { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 14px 0 18px; font-size: 0.93rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.breakdown .total { color: var(--ink); font-weight: 700; font-size: 1.02rem; padding-top: 6px; border-top: 1px solid var(--line); }
.breakdown .total + .total { border-top: 1px solid var(--line); }
.quote-err { color: var(--err); font-size: 0.9rem; min-height: 1.2em; margin-top: 6px; }

/* ---------- secciones ---------- */
.sec { padding: 72px 0; }
.sec h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.1; margin-bottom: 12px; }
.sec .intro { color: var(--ink-2); max-width: 58ch; margin-bottom: 36px; }
@media (max-width: 700px) { .sec { padding: 48px 0; } }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--white); font-family: var(--display); font-weight: 800; margin-bottom: 14px;
}
.steps h3 { font-family: var(--display); font-size: 1.2rem; margin-bottom: 6px; }
.steps p { color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

.services { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.service-row h3 { font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.01em; }
.service-row p { color: var(--ink-2); max-width: 60ch; }
@media (max-width: 760px) { .service-row { grid-template-columns: 1fr; gap: 8px; } }

.paybox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.paybox h3 { font-family: var(--display); font-size: 1.15rem; margin-bottom: 6px; }
.paybox p { color: var(--ink-2); }
@media (max-width: 760px) { .paybox { grid-template-columns: 1fr; } }

.track-band { background: var(--ink); color: var(--white); }
.track-band .sec { padding: 56px 0; }
.track-band h2 { color: var(--white); }
.track-band .intro { color: #b8c7c9; margin-bottom: 20px; }
.track-form { display: flex; gap: 10px; max-width: 560px; }
.track-form .in { border-color: transparent; text-transform: uppercase; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--sea); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 68ch; }

/* ---------- pie ---------- */
.foot { background: var(--white); border-top: 1px solid var(--line); padding: 36px 0; font-size: 0.92rem; color: var(--ink-2); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; }
.foot a { color: var(--ink-2); }

.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.wa svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- área de cliente ---------- */
.page { padding: 40px 0 72px; }
.page h1 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 8px; }
.page .sub { color: var(--ink-2); margin-bottom: 28px; }
.narrow { max-width: 480px; }
.medium { max-width: 720px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-family: var(--display); font-size: 1.25rem; margin-bottom: 14px; }

.wizard-steps { display: flex; gap: 8px; list-style: none; margin-bottom: 22px; flex-wrap: wrap; }
.wizard-steps li { font-size: 0.88rem; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; background: var(--foam); }
.wizard-steps li[aria-current="step"] { background: var(--ink); color: var(--white); font-weight: 700; }
.wizard-steps li.done { color: var(--sea-d); }

.choice-list { display: grid; gap: 8px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 14px; cursor: pointer; background: var(--white);
}
.choice input { margin-top: 4px; accent-color: var(--sea); width: 18px; height: 18px; flex: none; }
.choice b { display: block; }
.choice small { color: var(--ink-2); font-size: 0.88rem; }
.choice:has(input:checked) { border-color: var(--sea); background: var(--foam); }

.row-actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 22px; flex-wrap: wrap; }

.list { list-style: none; }
.list > li { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.list > li:first-child { padding-top: 0; }
.list .meta { color: var(--ink-2); font-size: 0.9rem; }
.list a.rowlink { text-decoration: none; color: var(--ink); font-weight: 700; }
.list .amt { font-family: var(--display); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.pill { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.wait { background: var(--warn-bg); color: var(--warn); }
.pill.go { background: var(--foam); color: var(--sea-d); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.bad { background: var(--err-bg); color: var(--err); }
.pill.mute { background: #eef1f1; color: var(--ink-2); }

.timeline { list-style: none; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 18px 20px; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--sea); }
.timeline li:last-child::before { background: var(--mango); box-shadow: 0 0 0 4px rgba(244, 166, 58, 0.25); }
.timeline time { display: block; font-size: 0.85rem; color: var(--ink-2); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 0.97rem; }
.kv dt { color: var(--ink-2); }
.kv dd { font-variant-numeric: tabular-nums; }

.drop {
  border: 2px dashed var(--line); border-radius: var(--r-md); padding: 26px; text-align: center; background: var(--paper); cursor: pointer; display: block;
}
.drop:hover, .drop.over { border-color: var(--sea); background: var(--foam); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop b { display: block; color: var(--sea-d); }
.drop span { font-size: 0.88rem; color: var(--ink-2); }

.balance { font-family: var(--display); font-weight: 800; font-size: 2.8rem; letter-spacing: -0.03em; color: var(--sea-d); font-variant-numeric: tabular-nums; }
.empty { padding: 28px 0; color: var(--ink-2); }
.empty .btn { margin-top: 12px; }

.instructions { background: var(--warn-bg); border-radius: var(--r-sm); padding: 14px 16px; font-size: 0.95rem; margin-bottom: 18px; }
.instructions p + p { margin-top: 6px; }

@media (prefers-reduced-motion: no-preference) {
  .receives .num.flash { animation: flash 0.5s ease; }
  @keyframes flash { from { color: var(--mango-d); } to { color: var(--sea-d); } }
}

/* Cifras en campos numéricos con la tipografía de titulares (sin cero tachado) */
input[type=number], .edit-tbl input { font-family: var(--display); font-weight: 600; }
