/* ===== DIP Viajes · App del viajero · Identidad de marca DIP ===== */
:root {
  --sky: #F3F7FA;
  --paper: #FFFFFF;
  --ink: #12345E;
  --ink-2: #4B6079;
  --ink-3: #8798AC;
  --line: #DDE6EE;
  --ocean: #1F61AB;      /* azul Dip (logotipo) */
  --ocean-soft: #E6EFF8;
  --teal: #237F95;       /* centro de la estrella */
  --mango: #33A872;      /* verde de la estrella (acento) */
  --mango-soft: #E4F4EC;
  --green-ink: #1C7A52;
  --alert: #E0475B;
  --ok: #2E9E7D;
  --grad: linear-gradient(115deg, #1F61AB 0%, #237F95 55%, #33A872 100%);
  --radius-ticket: 22px;
  --radius: 14px;
  --display: 'Figtree', system-ui, -apple-system, sans-serif;
  --text: 'Figtree', system-ui, -apple-system, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sky); color: var(--ink);
  font: 16px/1.5 var(--text); -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--ocean); }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

#app { max-width: 560px; margin: 0 auto; padding: calc(16px + var(--safe-t)) 16px calc(96px + var(--safe-b)); }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

/* ---------- Header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 18px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--mango); display: grid; place-items: center; font-size: 14px; letter-spacing: .02em; }
.back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 8px 4px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.greet { margin-bottom: 18px; }
.greet p { margin-top: 4px; }

/* ---------- Ticket (tarjeta de embarque) ---------- */
.ticket {
  position: relative; display: block; text-decoration: none; color: #fff;
  background: var(--ink); border-radius: var(--radius-ticket); overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(15, 42, 74, .55);
}
.ticket-main { padding: 22px 22px 18px; background:
  radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--hero, #0A5DA8) 85%, transparent) 0%, transparent 70%), var(--ink); }
.ticket-route { display: flex; align-items: center; justify-content: space-between; font-size: 14px; opacity: .85; }
.ticket-code { font-family: var(--display); font-weight: 700; letter-spacing: .04em; }
.ticket-dest { font-family: var(--display); font-size: 34px; font-weight: 800; margin: 10px 0 2px; line-height: 1.05; }
.ticket-dates { font-size: 15px; opacity: .85; }
.ticket-perf { position: relative; height: 0; border-top: 2px dashed rgba(255,255,255,.28); margin: 0 18px; }
.ticket-perf::before, .ticket-perf::after { content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--sky); }
.ticket-perf::before { left: -31px; } .ticket-perf::after { right: -31px; }
.ticket-stub { padding: 16px 22px 22px; }
.count { display: flex; align-items: flex-end; gap: 14px; }
.count-days { font-family: var(--display); font-weight: 800; font-size: 76px; line-height: .85; color: var(--mango); font-variant-numeric: tabular-nums; }
.count-label { font-size: 15px; line-height: 1.25; padding-bottom: 4px; }
.count-label strong { display: block; font-size: 17px; }
.count-clock { display: flex; gap: 18px; margin-top: 14px; font-variant-numeric: tabular-nums; }
.count-clock div { font-family: var(--display); font-size: 22px; font-weight: 700; }
.count-clock span { display: block; font-family: var(--text); font-size: 12px; font-weight: 500; opacity: .7; }
.ticket-flag { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; background: var(--mango); color: var(--ink); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.ticket.compact .ticket-dest { font-size: 26px; }
.ticket.onTrip .count-days { font-size: 44px; }

/* ---------- Lista de viajes ---------- */
.section-title { margin: 28px 0 10px; font-size: 15px; font-weight: 700; color: var(--ink-2); font-family: var(--text); }
.trip-row { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: inherit; margin-bottom: 10px; }
.trip-dot { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.trip-row .info { flex: 1; min-width: 0; }
.trip-row strong { display: block; font-weight: 700; }
.chev { color: var(--ink-3); }

/* ---------- Detalle de viaje ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 20px -16px 16px; padding: 0 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--ink-2); position: relative; }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab .pip { position: absolute; top: 4px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--mango); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; }
.note { background: var(--mango-soft); border-color: #F6DE9E; display: flex; gap: 12px; }
.note svg { flex: none; color: #B07400; margin-top: 2px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; }

/* Itinerario: es una secuencia → línea de tiempo */
.timeline { list-style: none; margin: 0; padding: 0; }
.day-head { font-family: var(--display); font-weight: 700; font-size: 16px; margin: 18px 0 8px; text-transform: none; }
.day-head:first-child { margin-top: 0; }
.tl-item { display: grid; grid-template-columns: 48px 34px 1fr; gap: 0 10px; position: relative; padding-bottom: 16px; }
.tl-item::before { content: ''; position: absolute; left: 74px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-time { font-variant-numeric: tabular-nums; font-weight: 700; padding-top: 6px; font-size: 15px; }
.tl-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ocean-soft); color: var(--ocean); }
.tl-body { padding-top: 5px; }
.tl-body strong { display: block; }
.tl-body p { font-size: 14px; color: var(--ink-2); margin-top: 2px; }

/* Documentos */
.doc { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.doc:last-child { border-bottom: 0; padding-bottom: 0; }
.doc:first-child { padding-top: 0; }
.doc-ico { width: 44px; height: 52px; border-radius: 8px; background: var(--ocean-soft); color: var(--ocean); display: grid; place-items: center; flex: none; font-size: 11px; font-weight: 800; }
.doc .info { flex: 1; min-width: 0; }
.doc .info strong { display: block; overflow-wrap: break-word; }
.doc-actions { display: flex; gap: 6px; }
.empty { text-align: center; padding: 30px 12px; }
.empty .big { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; background: var(--ocean-soft); color: var(--ocean); display: grid; place-items: center; }
.empty h3 { margin-bottom: 6px; }

/* Guía */
.guide-hero { border-radius: var(--radius); padding: 20px; color: #fff; margin-bottom: 12px; }
.guide-hero h2 { font-size: 26px; }
.guide-hero p { opacity: .9; margin-top: 6px; }
.guide-sec { display: flex; gap: 14px; }
.guide-sec + .guide-sec { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.guide-sec .tl-icon { flex: none; }
.guide-sec p { color: var(--ink-2); margin-top: 4px; white-space: pre-line; }
.check { display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
.check input { width: 22px; height: 22px; accent-color: var(--ok); flex: none; }
.check input:checked + span { color: var(--ink-3); text-decoration: line-through; }
.progress { height: 6px; background: var(--ocean-soft); border-radius: 6px; overflow: hidden; margin: 8px 0 6px; }
.progress div { height: 100%; background: var(--ok); transition: width .3s; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 700; cursor: pointer; text-decoration: none; font-size: 16px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-mango { background: var(--mango); color: var(--ink); }
.btn-ghost { background: var(--ocean-soft); color: var(--ocean); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--ocean-soft); color: var(--ocean); display: grid; place-items: center; cursor: pointer; text-decoration: none; }

/* ---------- Login ---------- */
.login { min-height: calc(100dvh - 40px); display: flex; flex-direction: column; justify-content: center; }
.login-hero { background: var(--ink); color: #fff; border-radius: var(--radius-ticket); padding: 28px 22px 24px; position: relative; overflow: hidden; }
.login-hero h1 { font-size: 34px; margin-top: 18px; }
.login-hero p { opacity: .85; margin-top: 8px; max-width: 34ch; }
.login-hero .plane { position: absolute; right: -10px; top: 18px; color: var(--mango); opacity: .9; }
.login form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-ticket); padding: 22px; margin-top: 14px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 5px; }
.input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; font-size: 17px; background: #fff; }
.input:focus { border-color: var(--ocean); outline: none; box-shadow: 0 0 0 4px var(--ocean-soft); }
.error { background: #FDECEF; color: #A3192F; border-radius: 10px; padding: 10px 12px; font-size: 15px; margin-bottom: 14px; }
.help { text-align: center; margin-top: 16px; font-size: 15px; }

/* ---------- Avisos / Banners ---------- */
.banner { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--mango); border-radius: var(--radius); padding: 14px; margin-bottom: 16px; }
.banner .txt { flex: 1; }
.banner .txt strong { display: block; }
.banner .txt p { font-size: 14px; color: var(--ink-2); margin: 2px 0 10px; }
.banner .x { background: none; border: 0; color: var(--ink-3); cursor: pointer; padding: 2px; }

.notif { display: flex; gap: 14px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; text-decoration: none; color: inherit; }
.notif.unread { border-color: #F6DE9E; background: #FFFBF1; }
.notif .tl-icon.promo { background: var(--mango-soft); color: #B07400; }
.notif .when { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.notif p { font-size: 15px; color: var(--ink-2); margin-top: 2px; }

.contact { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.contact:last-child { border-bottom: 0; padding-bottom: 0; }
.contact:first-child { padding-top: 0; }
.contact .info { flex: 1; }
.contact .info span { display: block; font-size: 14px; color: var(--ink-2); }
.switch-row { display: flex; align-items: center; gap: 14px; }
.switch-row .info { flex: 1; }

/* ---------- Tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: center; gap: 4px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + var(--safe-b)); }
.tabbar a { flex: 1; max-width: 160px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--ink-3); font-size: 12px; font-weight: 600; padding: 4px 0; position: relative; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar .badge { position: absolute; top: 0; left: calc(50% + 6px); background: var(--alert); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }

.toast { position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 20; max-width: calc(100% - 32px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }

.skeleton { height: 220px; border-radius: var(--radius-ticket); background: linear-gradient(90deg, #e7eef6, #f4f8fc, #e7eef6); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* Única animación orquestada: el ticket "sale de la impresora" al entrar */
@media (prefers-reduced-motion: no-preference) {
  .ticket.enter { animation: print .6s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-8px); } to { clip-path: inset(0 0 0 0); transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* Ajustes */
.tab, .back { text-decoration: none; }
.login-hero .brand-mark { background: var(--mango); color: var(--ink); }


/* ===== Marca DIP: degradé de la estrella ===== */
.logo { display: block; height: 34px; width: auto; }
.logo-lg { height: 44px; }
.ticket { background: var(--grad); box-shadow: 0 20px 44px -20px rgba(31, 97, 171, .6); isolation: isolate; }
.ticket::after { content: ''; position: absolute; z-index: -1; right: -46px; top: -30px; width: 260px; height: 250px;
  background: url('/brand/star-white.png') center / contain no-repeat; opacity: .13; transform: rotate(-8deg); pointer-events: none; }
.ticket-main { background: none; }
.ticket-perf { border-top-color: rgba(255,255,255,.4); }
.count-days { color: #fff; }
.ticket-flag { background: #fff; color: var(--green-ink); box-shadow: 0 6px 16px -8px rgba(0,0,0,.35); }
.ticket-flag svg { color: var(--mango); }
.tab[aria-selected="true"] { background: var(--ocean); border-color: var(--ocean); }
.btn-primary { background: var(--ocean); }
.btn-mango { background: var(--mango); color: #fff; }
.tabbar a[aria-current="page"] { color: var(--ocean); }
.note { background: var(--mango-soft); border-color: #BFE3CF; }
.note svg { color: var(--green-ink); }
.notif.unread { border-color: #BFE3CF; background: #F4FBF7; }
.notif .tl-icon.promo { background: var(--mango-soft); color: var(--green-ink); }
.tl-icon { background: var(--ocean-soft); color: var(--ocean); }
:focus-visible { outline-color: var(--mango); }
.input:focus { border-color: var(--ocean); box-shadow: 0 0 0 4px var(--ocean-soft); }
.progress div { background: var(--grad); }
.check input { accent-color: var(--mango); }

/* Login */
.login-hero { background: var(--grad); isolation: isolate; }
.login-hero::after { content: ''; position: absolute; z-index: -1; right: -80px; bottom: -90px; width: 260px; height: 250px;
  background: url('/brand/star-white.png') center / contain no-repeat; opacity: .10; transform: rotate(-10deg); }
.login-hero .plane { display: none; }
.login-hero h1 { margin-top: 26px; }
.login-hero .logo { height: 46px; }
.linkish { background: none; border: 0; padding: 0; color: var(--ocean); font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ===== Funciones de postventa ===== */
.trip-actions { display: flex; gap: 8px; margin: 14px 0 -4px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--paper); color: var(--ocean); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; }
.survey-cta { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; border-color: #BFE3CF; background: var(--mango-soft); }
.survey-cta > span:nth-child(2) { flex: 1; } .survey-cta strong { display: block; }
.tl-icon.sos { background: #FDECEF; color: var(--alert); }

/* Ayuda en viaje */
.help-fab { position: fixed; right: 16px; bottom: calc(84px + var(--safe-b)); z-index: 15; display: inline-flex; align-items: center; gap: 8px; background: var(--alert); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 18px; border-radius: 999px; box-shadow: 0 12px 28px -10px rgba(224, 71, 91, .7); }
@media (min-width: 600px) { .help-fab { right: calc(50% - 264px); } }

/* Extras */
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.extra { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; background: #FBFDFF; }
.extra strong { font-size: 15px; } .extra .tl-icon { width: 30px; height: 30px; border-radius: 9px; }
.extra:last-child:nth-child(odd) { grid-column: span 2; }
.link-web { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ocean); }

/* Prepárate */
.prep-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ring { --p: 0; width: 62px; height: 62px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--mango) calc(var(--p) * 1%), var(--ocean-soft) 0); }
.ring span { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.prep-item { align-items: flex-start; }
.prep-item input { margin-top: 2px; }
.prep-item input:checked + span { text-decoration: none; color: var(--ink-3); }
.prep-link { display: inline-block; margin-top: 4px; font-weight: 600; font-size: 14px; }
.airlines { margin-top: 10px; } .airlines summary { cursor: pointer; font-weight: 600; color: var(--ocean); font-size: 14px; }
.airlines div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.airlines a { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; text-decoration: none; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ocean); }
.mini-row:last-child { border-bottom: 0; } .mini-row > span { flex: 1; color: var(--ink); } .mini-row strong { display: block; }
.pill-now { background: var(--mango-soft); color: var(--green-ink); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.assist-head { display: flex; gap: 12px; color: var(--ocean); } .assist-head h3 { color: var(--ink); }
.assist-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.vsteps { list-style: none; margin: 0; padding: 0; }
.vsteps li { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--ink-3); position: relative; }
.vsteps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--ocean-soft); color: var(--ink-3); flex: none; }
.vsteps li.ok { color: var(--ink); } .vsteps li.ok span { background: var(--mango); color: #fff; }
.vsteps li.now { color: var(--ink); font-weight: 600; } .vsteps li.now span { background: #fff; border: 2px solid var(--mango); color: var(--green-ink); }

/* Pagos */
.pay-card { background: var(--grad); color: #fff; border: 0; }
.pay-card .muted { color: rgba(255,255,255,.8); }
.pay-top { display: flex; justify-content: space-between; align-items: center; }
.pay-top .live { font-size: 12px; opacity: .85; }
.pay-balance { font-size: 40px; font-weight: 800; margin: 4px 0 12px; font-variant-numeric: tabular-nums; }
.pay-card .progress { background: rgba(255,255,255,.25); } .pay-card .progress div { background: #fff; }
.pay-row { display: flex; justify-content: space-between; font-size: 14px; opacity: .9; }
.next-due { display: flex; gap: 12px; align-items: center; } .next-due strong { display: block; }
.next-due.soon { border-color: #F6DE9E; background: #FFF8E6; } .next-due.late { border-color: #F3B4BE; background: #FDECEF; }
.next-due.late .tl-icon { background: #FBD5DB; color: var(--alert); }
.inst-list .inst { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.inst:last-child { border-bottom: 0; }
.inst .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ocean-soft); color: var(--ocean); font-weight: 700; font-size: 13px; flex: none; }
.inst .info { flex: 1; } .inst .info strong { display: block; font-variant-numeric: tabular-nums; }
.inst .st { font-size: 13px; font-weight: 600; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; }
.inst.paid .n { background: var(--mango); color: #fff; } .inst.paid .st { color: var(--green-ink); }
.inst.soon .st { color: #B07400; } .inst.late .st { color: var(--alert); } .inst.late .n { background: #FDECEF; color: var(--alert); }

/* Encuesta */
.survey-hero { margin: 4px 0 16px; } .survey-hero p { color: var(--ink-2); margin-top: 6px; }
.stars { display: flex; gap: 4px; } .stars.big { margin: 10px 0 4px; gap: 8px; }
.stars button { background: none; border: 0; font-size: 26px; color: #D5DEE8; cursor: pointer; padding: 2px; line-height: 1; }
.stars.big button { font-size: 42px; }
.stars button.on { color: #F5B301; }
.asp { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.asp:last-child { border-bottom: 0; }
textarea.input { resize: vertical; font-size: 16px; }
.thanks { text-align: center; padding-top: 30px; }
.thanks h1 { margin: 14px 0 6px; } .thanks > p { margin-bottom: 20px; }
.big-ok { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto; background: var(--grad); color: #fff; display: grid; place-items: center; }
.thanks .review { text-align: left; margin-bottom: 12px; }
.thanks .btn + .btn { margin-top: 10px; }

/* Recomendá */
.ref-hero { background: var(--grad); color: #fff; border-radius: var(--radius-ticket); padding: 24px 20px; margin-bottom: 14px; position: relative; overflow: hidden; isolation: isolate; }
.ref-hero::after { content: ''; position: absolute; z-index: -1; right: -50px; top: -40px; width: 200px; height: 190px; background: url('/brand/star-white.png') center / contain no-repeat; opacity: .12; }
.ref-gift { width: 58px; height: 58px; border-radius: 16px; background: rgba(255,255,255,.18); display: grid; place-items: center; margin-bottom: 12px; }
.ref-hero h2 { font-size: 26px; margin-bottom: 8px; } .ref-hero p { opacity: .95; }
.ref-code { display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 10px 10px 16px; margin-top: 16px; }
.ref-code strong { font-size: 22px; letter-spacing: .06em; flex: 1; } .ref-code .muted { margin-right: 4px; }
.howto { margin: 0; padding-left: 20px; color: var(--ink-2); } .howto li { margin-bottom: 8px; }
.ref-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ref-stats div { background: var(--sky); border-radius: 12px; padding: 12px; text-align: center; }
.ref-stats b { display: block; font-size: 26px; } .ref-stats span { font-size: 13px; color: var(--ink-2); }
.icon-btn { border: 0; }

/* Compartir en redes */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(15, 42, 74, .55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #fff; width: 100%; max-width: 520px; border-radius: 24px 24px 0 0; padding: 22px 18px calc(18px + var(--safe-b)); position: relative; max-height: 94dvh; overflow-y: auto; }
@media (min-width: 600px) { .modal { align-items: center; } .sheet { border-radius: 24px; } }
.sheet .x { position: absolute; right: 14px; top: 14px; background: var(--sky); border: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.share-prev { height: 46dvh; margin: 14px 0; display: grid; place-items: center; }
.share-prev img { max-height: 100%; max-width: 100%; border-radius: 16px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); }
.seg-mini { display: inline-flex; background: var(--sky); border-radius: 12px; padding: 3px; margin-top: 10px; }
.seg-mini.wide { display: flex; margin: 0 0 14px; }
.seg-mini button, .seg-mini a { flex: 1; text-align: center; border: 0; background: none; padding: 8px 16px; border-radius: 9px; font-weight: 600; color: var(--ink-2); cursor: pointer; text-decoration: none; font-size: 15px; }
.seg-mini .on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* Guía de instalación */
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin-bottom: 14px; }
.phone-step { margin: 0; text-align: center; }
.phone-step svg { width: 100%; max-width: 170px; height: auto; display: block; margin: 0 auto 8px; filter: drop-shadow(0 8px 16px rgba(15, 42, 74, .18)); }
.phone-step figcaption { font-size: 14px; font-weight: 600; line-height: 1.3; }
@media (min-width: 720px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
:root { --grad: linear-gradient(115deg, #1F61AB 0%, #237F95 55%, #33A872 100%); }

.share-prev img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.ticket-flag[style] svg { color: #fff; }
.share-prev { height: 46vh; overflow: hidden; }
.share-prev img { height: 46vh; width: auto; }

/* Datos para transferir */
.bank { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-top: 10px; background: #fff; }
.bank-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.bank-head .pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--sky); color: var(--ink); }
.bank-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.bank-row span { color: var(--ink-2); font-size: 12.5px; }
.bank-row b { font-weight: 600; font-size: 13.5px; letter-spacing: -.01em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.bank-row .copy { border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 10px; cursor: pointer; }
.bank-row .copy:active { background: var(--sky); }
