/* =====================================================================
   Altura Vuelos — sitio público (rojo · blanco · negro, estilo aerolínea)
   ===================================================================== */
:root {
  --primary: #D7192D;
  --dark: #111111;
  --accent: #D7192D;
  --primary-ink: color-mix(in srgb, var(--primary) 86%, #000);
  --primary-soft: color-mix(in srgb, var(--primary) 8%, #fff);
  --primary-line: color-mix(in srgb, var(--primary) 24%, #fff);
  --bg: #F5F5F6;
  --surface: #FFFFFF;
  --line: #E4E4E7;
  --line-2: #D4D4D8;
  --ink: #141414;
  --muted: #4B5059;
  --muted-2: #5C626C;
  --ok: #138A52;
  --ok-ink: #0E6B3F;
  --ok-soft: #E6F5EC;
  --warn-ink: #9A4A00;
  --warn-soft: #FFF2E2;
  --danger: #B3141F;
  --danger-soft: #FDECEC;
  --radius: 16px;
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, .35);
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--primary-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
::placeholder { color: #9A9EA6; opacity: 1; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, #fff); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted-2); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.warn { color: var(--warn-ink); }
.okc { color: var(--ok-ink); }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 0; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none !important; transition: background .15s ease, transform .1s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-ink); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #2A2A2A; }
.btn-soft { background: var(--primary-soft); color: var(--primary-ink); }
.btn-soft:hover { background: var(--primary-line); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { background: #fff; color: var(--dark); }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn-outline-light:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn-lg { min-height: 54px; font-size: 16px; padding: 0 26px; }
.btn-block { width: 100%; }
.btn-sq { border-radius: 12px; }

/* ---------- campos ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); min-width: 0; }
.field input, .field select, .field textarea, .input { height: 50px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 0 14px; font-size: 16px; font-weight: 500; color: var(--ink); background: #fff; width: 100%; min-width: 0; }
.field textarea { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(0, 0, 0, .08); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .hint { font-weight: 400; color: var(--muted-2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--primary); flex: none; }

/* ---------- encabezado ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; text-decoration: none !important; min-width: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.brand-mark svg { width: 22px; height: 22px; }
.brand-logo { height: 42px; width: auto; max-width: 190px; object-fit: contain; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--ink); padding: 10px 14px; border-radius: 999px; }
.nav a:hover { background: var(--bg); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; background: var(--bg); border-radius: 999px; padding: 4px; }
.lang-switch button { border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; background: transparent; color: var(--muted-2); cursor: pointer; min-height: 32px; }
.lang-switch button[aria-pressed="true"] { background: var(--dark); color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; border-radius: 10px; }
  .menu-btn { display: inline-flex; }
  .header-actions .btn { display: none; }
}

/* ---------- hero con mapa ---------- */
.hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; isolation: isolate; }
.hero-map { position: absolute; top: 0; bottom: 0; right: 0; left: 30%; z-index: -2; background: #fff; opacity: .2; -webkit-mask: url(/img/worldmap.svg) center / cover no-repeat; mask: url(/img/worldmap.svg) center / cover no-repeat; }
.hero-photo { position: absolute; inset: 0; z-index: -3; background: center / cover no-repeat; opacity: .55; }
.hero::before { content: ""; position: absolute; z-index: -1; right: -12%; top: -30%; width: 58%; height: 160%; background: var(--primary); transform: skewX(-18deg); opacity: .95; }
.hero::after { content: ""; position: absolute; z-index: -1; right: 40%; top: -30%; width: 14px; height: 160%; background: var(--primary); transform: skewX(-18deg); opacity: .9; }
.hero-arcs { position: absolute; top: 0; right: 0; left: 30%; z-index: -1; width: 70%; height: 100%; pointer-events: none; }
@media (max-width: 860px) { .hero-map, .hero-arcs { left: 0; width: 100%; opacity: .5; } }
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 150px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); padding: 8px 14px; border-radius: 999px; }
.hero-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 35%, transparent); }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); font-weight: 800; letter-spacing: -0.045em; line-height: .98; margin: 22px 0 18px; max-width: 760px; }
.hero p.lead { font-size: 19px; color: rgba(255, 255, 255, .82); max-width: 560px; margin: 0; }
@media (max-width: 860px) { .hero::before { right: -45%; width: 80%; opacity: .9; } .hero::after { display: none; } .hero .wrap { padding-top: 44px; padding-bottom: 130px; } }

/* ---------- widget de reserva ---------- */
.booker-wrap { position: relative; z-index: 5; margin-top: -104px; }
.booker { background: #fff; border-radius: 22px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .45), 0 0 0 1px var(--line); overflow: visible; }
.booker-tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 12px; }
.booker-tabs button { border: 0; background: transparent; padding: 18px 18px 16px; font-weight: 800; font-size: 15px; color: var(--muted-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; display: flex; gap: 8px; align-items: center; }
.booker-tabs button svg { width: 18px; height: 18px; }
.booker-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--primary); }
.booker-body { padding: 18px 22px 22px; }
.trip-toggle { display: flex; gap: 18px; margin-bottom: 14px; flex-wrap: wrap; }
.trip-toggle label { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; cursor: pointer; }
.trip-toggle input { width: 18px; height: 18px; accent-color: var(--primary); }
.booker-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 0; border: 1.5px solid var(--line-2); border-radius: 16px; position: relative; }
.booker-grid.oneway { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
.bk-cell { position: relative; padding: 10px 16px; border-right: 1.5px solid var(--line-2); min-width: 0; display: flex; flex-direction: column; justify-content: center; min-height: 72px; }
.bk-cell[data-pax] { border-right: 0; }
.bk-cell > span { font-size: 12px; font-weight: 700; color: var(--muted-2); letter-spacing: .02em; }
.bk-cell input, .bk-cell .bk-btn { border: 0; padding: 0; height: 30px; font-size: 17px; font-weight: 700; background: transparent; width: 100%; min-width: 0; color: var(--ink); text-align: left; cursor: pointer; }
.bk-cell input:focus { outline: none; }
.bk-cell:focus-within { background: var(--bg); border-radius: 14px; }
.bk-cell .bk-sub { font-size: 12px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-search { padding: 8px; display: flex; align-items: center; }
.bk-search .btn { height: 100%; min-height: 56px; border-radius: 12px; padding: 0 26px; }
.swap-btn { position: absolute; left: calc(50% - 18px); top: 50%; transform: translate(0, -50%); width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; }
.od-pair { display: contents; }
.swap-anchor { position: relative; }
.swap-anchor .swap-btn { left: auto; right: -18px; }
@media (max-width: 1060px) {
  .booker-grid, .booker-grid.oneway { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-cell { border-right: 0; border-bottom: 1.5px solid var(--line-2); }
  .bk-cell:nth-child(odd) { border-right: 1.5px solid var(--line-2); }
  .bk-search { grid-column: 1 / -1; }
  .bk-search .btn { width: 100%; }
}
@media (max-width: 560px) {
  .booker-grid, .booker-grid.oneway { grid-template-columns: minmax(0, 1fr); }
  .bk-cell, .bk-cell:nth-child(odd) { border-right: 0; }
  .swap-anchor .swap-btn { right: 14px; top: 100%; }
}
/* autocompletar */
.ac-list { position: absolute; left: -2px; top: calc(100% + 6px); width: min(440px, 92vw); max-height: 360px; overflow: auto; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35), 0 0 0 1px var(--line); z-index: 30; padding: 6px; list-style: none; margin: 0; }
.ac-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.ac-list li[aria-selected="true"], .ac-list li:hover { background: var(--bg); }
.ac-list .ac-code { width: 48px; height: 36px; border-radius: 8px; background: var(--dark); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; flex: none; letter-spacing: .04em; }
.ac-list .ac-city { font-weight: 700; }
.ac-list .ac-country { font-size: 13px; color: var(--muted-2); }
.ac-list .ac-group { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); padding: 10px 12px 4px; cursor: default; background: none !important; }
.ac-empty { padding: 14px; color: var(--muted-2); font-size: 14px; }
/* pasajeros */
.pax-pop { position: absolute; right: 0; top: calc(100% + 6px); width: 320px; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35), 0 0 0 1px var(--line); z-index: 30; padding: 8px 18px 16px; }
.pax-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.pax-row:last-of-type { border-bottom: 0; }
.pax-row strong { display: block; font-size: 15px; }
.pax-row span { font-size: 12px; color: var(--muted-2); }
.counter { display: flex; align-items: center; gap: 12px; }
.counter button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; font-size: 18px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.counter button:disabled { opacity: .35; cursor: not-allowed; }
.counter output { min-width: 18px; text-align: center; font-weight: 800; }

/* ---------- secciones ---------- */
.section { padding-top: 84px; padding-bottom: 8px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.section-head p { margin: 8px 0 0; color: var(--muted); font-size: 17px; max-width: 620px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.kicker-light { color: #fff; opacity: .85; }
.card { background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }

/* destinos tipográficos */
.dest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dest { position: relative; border-radius: 20px; padding: 22px; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; cursor: pointer; border: 0; text-align: left; font: inherit; color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.dest:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), 0 24px 40px -26px rgba(0, 0, 0, .4); }
.dest .d-iata { font-family: var(--display); font-size: 72px; font-weight: 800; letter-spacing: -0.05em; line-height: .9; }
.dest .d-city { font-family: var(--display); font-weight: 800; font-size: 22px; margin-top: 10px; }
.dest .d-country { font-size: 14px; color: var(--muted-2); font-weight: 600; }
.dest .d-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.dest .d-from { font-size: 12px; color: var(--muted-2); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.dest .d-price { font-family: var(--display); font-weight: 800; font-size: 22px; }
.dest .d-go { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; flex: none; }
.dest .d-go svg { width: 18px; height: 18px; }
.dest .d-photo { position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat; }
.dest.has-photo { color: #fff; }
.dest.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .75)); }
.dest.has-photo .d-country, .dest.has-photo .d-from { color: rgba(255, 255, 255, .85); }
.dest.v-red { background: var(--primary); color: #fff; box-shadow: none; }
.dest.v-dark { background: var(--dark); color: #fff; box-shadow: none; }
.dest.v-red .d-country, .dest.v-dark .d-country, .dest.v-red .d-from, .dest.v-dark .d-from { color: rgba(255, 255, 255, .78); }
.dest.v-red .d-go, .dest.v-dark .d-go { background: rgba(255, 255, 255, .16); color: #fff; }
.dest .d-map { position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: .06; -webkit-mask: url(/img/worldmap.svg) 30% 40% / 260% auto no-repeat; mask: url(/img/worldmap.svg) 30% 40% / 260% auto no-repeat; }
@media (max-width: 1000px) { .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .dest-grid { grid-template-columns: minmax(0, 1fr); } .dest { min-height: 190px; } }

/* próximas salidas */
.deps { display: flex; flex-direction: column; gap: 10px; }
.dep { display: grid; grid-template-columns: 120px minmax(0, 1fr) 160px 150px auto; gap: 18px; align-items: center; background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: 0 0 0 1px var(--line); }
.dep .dep-date { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.1; }
.dep .dep-date span { display: block; font-size: 13px; color: var(--muted-2); font-weight: 600; font-family: var(--font); }
.dep .dep-route { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dep .dep-route b { font-family: var(--display); font-size: 24px; font-weight: 800; }
.dep .dep-route .ln { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); position: relative; min-width: 40px; }
.dep .dep-route .ln svg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(45deg); width: 18px; height: 18px; color: var(--primary); background: #fff; }
.dep .dep-route .cty { font-size: 13px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dep .dep-meta { font-size: 13px; color: var(--muted); }
.dep .dep-price { text-align: right; }
.dep .dep-price b { display: block; font-family: var(--display); font-size: 22px; font-weight: 800; }
@media (max-width: 860px) { .dep { grid-template-columns: minmax(0, 1fr) auto; } .dep .dep-meta { display: none; } .dep .dep-route { grid-column: 1 / -1; order: -1; } .dep .dep-price { text-align: left; } }

/* pasos */
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.steps4 li { list-style: none; background: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 0 0 1px var(--line); position: relative; }
.steps4 li::before { counter-increment: st; content: "0" counter(st); font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--primary); }
.steps4 h3 { font-size: 19px; margin: 14px 0 6px; }
.steps4 p { margin: 0; color: var(--muted); font-size: 15px; }
.steps4 { padding: 0; margin: 0; }
@media (max-width: 960px) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps4 { grid-template-columns: minmax(0, 1fr); } }

/* banda de gestión */
.band { position: relative; overflow: hidden; isolation: isolate; background: var(--primary); color: #fff; border-radius: 26px; padding: 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #000; opacity: .12; -webkit-mask: url(/img/worldmap.svg) center / cover no-repeat; mask: url(/img/worldmap.svg) center / cover no-repeat; }
.band h2 { font-size: 36px; font-weight: 800; }
.band p { color: rgba(255, 255, 255, .88); font-size: 17px; margin: 10px 0 0; }
.band form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.band .field { flex: 1 1 170px; color: rgba(255, 255, 255, .9); }
.band .field input { border-color: transparent; }
.band .btn { min-height: 50px; }
@media (max-width: 860px) { .band { grid-template-columns: minmax(0, 1fr); padding: 28px; } }

/* ---------- pie ---------- */
.site-footer { background: var(--dark); color: #BDBDC2; margin-top: 96px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.site-footer h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer a { color: #E8E8EA; display: block; padding: 4px 0; }
.site-footer .brand { color: #fff; display: inline-flex; padding: 0; }
.site-footer .brand .brand-logo { background: #fff; border-radius: 10px; padding: 4px 8px; }
.foot-brand p { max-width: 360px; margin-top: 14px; }
.foot-links { display: flex; flex-direction: column; align-items: flex-start; margin-top: 6px; }
.foot-note { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; font-size: 13px; color: #A5A5AC; }
.foot-stripe { height: 6px; background: var(--primary); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- cabecera de páginas internas ---------- */
.page-head { position: relative; background: var(--dark); color: #fff; overflow: hidden; isolation: isolate; padding: 40px 0 96px; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; opacity: .1; -webkit-mask: url(/img/worldmap.svg) center / cover no-repeat; mask: url(/img/worldmap.svg) center / cover no-repeat; }
.page-head::after { content: ""; position: absolute; z-index: -1; right: -10%; top: -40%; width: 40%; height: 180%; background: var(--primary); transform: skewX(-18deg); }
.page-head h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.page-head p { color: rgba(255, 255, 255, .82); margin: 8px 0 0; }
.page { padding: 0 0 40px; margin-top: -60px; position: relative; z-index: 2; }

/* ---------- paneles y estados ---------- */
.panel { background: #fff; border-radius: 20px; box-shadow: 0 0 0 1px var(--line), 0 20px 50px -36px rgba(0, 0, 0, .4); padding: 28px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; font-family: var(--font); letter-spacing: normal; vertical-align: middle; white-space: nowrap; }
.st-pending { background: var(--warn-soft); color: var(--warn-ink); }
.st-confirmed, .st-issued, .st-ok { background: var(--ok-soft); color: var(--ok-ink); }
.st-cancelled, .st-expired, .st-void, .st-bad { background: var(--danger-soft); color: var(--danger); }
.st-used { background: #EFEFF1; color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 20px; }
.kv .k { font-size: 12px; font-weight: 700; color: var(--muted-2); letter-spacing: .05em; text-transform: uppercase; }
.kv .v { font-weight: 700; font-size: 16px; margin-top: 2px; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-ok { background: var(--ok-soft); color: var(--ok-ink); }
.alert-info { background: #F1F1F3; color: var(--ink); }
.alert-warn { background: var(--warn-soft); color: var(--warn-ink); }
.empty { padding: 28px; text-align: center; color: var(--muted); background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line-2); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #ECECEE 0%, #F7F7F8 50%, #ECECEE 100%); background-size: 200% 100%; animation: sk 1.2s ease infinite; border-radius: 18px; min-height: 200px; }
@keyframes sk { to { background-position: -200% 0; } }

/* itinerario (reserva) */
.itin { display: flex; flex-direction: column; gap: 12px; }
.leg-card { border-radius: 16px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; background: #fff; }
.leg-card .lc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; background: var(--dark); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.leg-card .lc-head .tag { background: var(--primary); padding: 3px 10px; border-radius: 99px; text-transform: uppercase; }
.leg-card .lc-body { padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; align-items: center; }
.leg-card .pt b { display: block; font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1; }
.leg-card .pt .t { font-size: 20px; font-weight: 800; margin-top: 6px; }
.leg-card .pt span { display: block; font-size: 13px; color: var(--muted-2); }
.leg-card .mid { text-align: center; font-size: 12px; color: var(--muted-2); min-width: 120px; }
.leg-card .mid .ln { height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); margin: 6px 0; position: relative; }
.leg-card .mid .ln svg { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; transform: translate(-50%, -50%) rotate(45deg); color: var(--primary); background: #fff; }
.leg-card .pt.r { text-align: right; }
.pay-box { border-radius: 16px; padding: 18px 20px; background: #FFF8F0; box-shadow: inset 0 0 0 1.5px #F3D9B8; }
.pay-box pre { margin: 8px 0 0; font-family: var(--font); white-space: pre-wrap; font-size: 15px; line-height: 1.6; }
.pnr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; letter-spacing: .12em; }

/* diálogos */
dialog.sheet { border: 0; padding: 0; border-radius: 22px; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); color: var(--ink); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px); }
.sheet-head { position: sticky; top: 0; background: #fff; z-index: 2; padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet-head .eyebrow { font-size: 12px; font-weight: 800; color: var(--primary); letter-spacing: .08em; text-transform: uppercase; }
.sheet-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--bg); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

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

/* =====================================================================
   Flujo de reserva (vuelos.html)
   ===================================================================== */
.trip-bar { background: var(--dark); color: #fff; }
.trip-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
.trip-bar .tb-route { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.trip-bar .tb-route b { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.trip-bar .tb-route svg { width: 22px; height: 22px; color: var(--primary); }
.trip-bar .tb-meta { color: #C8C8CD; font-size: 14px; }
.trip-bar .tb-meta span + span::before { content: "·"; margin: 0 8px; color: #77777E; }
.modify { background: #fff; border-bottom: 1px solid var(--line); padding: 18px 0; }
.modify .booker { box-shadow: 0 0 0 1px var(--line); }
.stepper { background: #fff; border-bottom: 1px solid var(--line); }
.stepper ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; }
.stepper li { display: flex; align-items: center; gap: 10px; padding: 16px 14px; font-weight: 700; font-size: 14px; color: var(--muted-2); white-space: nowrap; border-bottom: 3px solid transparent; }
.stepper li .n { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; background: var(--bg); color: var(--muted-2); }
.stepper li.done .n { background: var(--dark); color: #fff; }
.stepper li.cur { color: var(--ink); border-bottom-color: var(--primary); }
.stepper li.cur .n { background: var(--primary); color: #fff; }
.stepper li + li::before { content: ""; width: 24px; height: 2px; background: var(--line-2); margin-right: 6px; }
.flow { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 28px; padding-bottom: 60px; }
.flow-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.flow-side { flex: 1 1 320px; position: sticky; top: 88px; }
@media (max-width: 960px) { .flow-side { position: static; } }
.leg-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.leg-title h2 { font-size: 26px; font-weight: 800; }
.leg-title .sub { color: var(--muted-2); font-weight: 600; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.days button { border: 0; background: #fff; padding: 12px 6px; cursor: pointer; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 76px; position: relative; }
.days button:last-child { border-right: 0; }
.days button .dw { font-size: 12px; font-weight: 700; color: var(--muted-2); text-transform: capitalize; }
.days button .dd { font-weight: 800; font-size: 15px; }
.days button .dp { font-size: 13px; font-weight: 700; color: var(--ok-ink); }
.days button .dp.none { color: #A0A3AA; font-weight: 600; }
.days button[aria-pressed="true"] { background: var(--dark); color: #fff; }
.days button[aria-pressed="true"] .dw, .days button[aria-pressed="true"] .dp { color: #fff; }
.days button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--primary); }
.days button:disabled { cursor: default; }
@media (max-width: 640px) { .days { grid-template-columns: repeat(7, 92px); overflow-x: auto; } }
.fl { background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); display: grid; grid-template-columns: minmax(0, 1fr) 210px; overflow: hidden; }
.fl.sel { box-shadow: 0 0 0 2.5px var(--ink); }
.fl-info { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.fl-times { display: flex; align-items: center; gap: 16px; }
.fl-times .pt b { display: block; font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1; }
.fl-times .pt span { font-size: 13px; font-weight: 700; color: var(--muted-2); }
.fl-times .mid { flex: 1; text-align: center; font-size: 12px; color: var(--muted-2); font-weight: 600; }
.fl-times .mid .ln { height: 2px; background: var(--line-2); margin: 6px 0; position: relative; }
.fl-times .mid .ln::before, .fl-times .mid .ln::after { content: ""; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.fl-times .mid .ln::before { left: 0; } .fl-times .mid .ln::after { right: 0; }
.fl-times .mid .direct { color: var(--ok-ink); }
.fl-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.fl-meta b { color: var(--ink); }
.fl-buy { background: var(--bg); padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 10px; border-left: 1px dashed var(--line-2); }
.fl-buy .from { font-size: 12px; color: var(--muted-2); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.fl-buy .price { font-family: var(--display); font-size: 28px; font-weight: 800; line-height: 1; }
.fl-buy .per { font-size: 12px; color: var(--muted-2); }
.fl.sel .fl-buy { background: var(--dark); color: #fff; }
.fl.sel .fl-buy .from, .fl.sel .fl-buy .per { color: #C8C8CD; }
@media (max-width: 640px) { .fl { grid-template-columns: minmax(0, 1fr); } .fl-buy { border-left: 0; border-top: 1px dashed var(--line-2); flex-direction: row; align-items: center; justify-content: space-between; } }
.box { background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); padding: 22px; }
.box h3 { font-size: 19px; margin-bottom: 4px; }
.box .box-sub { color: var(--muted-2); font-size: 14px; margin: 0 0 16px; }
.pax-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pax-form .span2 { grid-column: span 2; }
@media (max-width: 760px) { .pax-form { grid-template-columns: minmax(0, 1fr); } .pax-form .span2 { grid-column: auto; } }
.pax-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pax-head .av { width: 40px; height: 40px; border-radius: 50%; background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.pax-head .tp { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); }
.flow-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* resumen lateral */
.sum { background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 24px 40px -34px rgba(0, 0, 0, .4); overflow: hidden; }
.sum-head { background: var(--dark); color: #fff; padding: 16px 20px; font-family: var(--display); font-weight: 800; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
.sum-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.sum-leg { display: flex; gap: 12px; }
.sum-leg .tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: var(--primary-soft); color: var(--primary-ink); border-radius: 6px; padding: 3px 7px; height: fit-content; }
.sum-leg b { display: block; }
.sum-leg span { font-size: 13px; color: var(--muted-2); }
.sum-lines { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.sum-lines .row { display: flex; justify-content: space-between; gap: 10px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); padding-top: 12px; }
.sum-total b { font-family: var(--display); font-size: 28px; font-weight: 800; }
.sum .btn { width: 100%; }

/* mapa de asientos */
.seat-wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 860px) { .seat-wrap { grid-template-columns: minmax(0, 1fr); } }
.seat-pax { display: flex; flex-direction: column; gap: 8px; }
.seat-pax button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; cursor: pointer; text-align: left; }
.seat-pax button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.seat-pax button:disabled { cursor: default; opacity: .7; }
.seat-pax .nm { font-weight: 700; font-size: 14px; }
.seat-pax .tp { font-size: 12px; color: var(--muted-2); }
.seat-pax .st { font-family: var(--display); font-weight: 800; font-size: 18px; min-width: 44px; text-align: center; border-radius: 10px; padding: 4px 8px; background: var(--bg); }
.seat-pax .st.has { background: var(--primary); color: #fff; }
.leg-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.leg-tabs button { border: 1.5px solid var(--line-2); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; cursor: pointer; }
.leg-tabs button[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.plane { background: #fff; border-radius: 160px 160px 28px 28px; box-shadow: 0 0 0 1px var(--line), inset 0 0 0 10px #F2F2F4; padding: 90px 46px 28px; margin: 0 auto; width: fit-content; max-width: 100%; overflow-x: auto; position: relative; }
.plane .nose { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; }
.cabin { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.srow { display: flex; align-items: center; gap: 6px; }
.srow .rn { width: 28px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted-2); }
.srow .aisle { width: 26px; }
.srow.exit { margin-top: 10px; position: relative; }
.srow.exit::before, .srow.exit::after { content: "EXIT"; position: absolute; top: -12px; font-size: 9px; font-weight: 800; color: var(--primary); letter-spacing: .08em; }
.srow.exit::before { left: -34px; } .srow.exit::after { right: -34px; }
.letters { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.letters span { width: 36px; text-align: center; font-size: 12px; font-weight: 800; color: var(--muted-2); }
.letters .rn { width: 28px; } .letters .aisle { width: 26px; }
.seat { width: 36px; height: 40px; border-radius: 9px 9px 6px 6px; border: 1.5px solid #B9BCC3; background: #fff; cursor: pointer; font-size: 11px; font-weight: 800; color: transparent; position: relative; padding: 0; }
.seat::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 4px; height: 5px; border-radius: 3px; background: #E3E4E8; }
.seat:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.seat.taken { background: #D7D8DC; border-color: #D7D8DC; cursor: not-allowed; }
.seat.taken::after { background: #C3C5CA; }
.seat.mine { background: var(--primary); border-color: var(--primary); color: #fff; }
.seat.mine::after { background: rgba(255, 255, 255, .35); }
.seat.exitrow { border-color: #E59AA2; }
.seat.ghost { visibility: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 16px; justify-content: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 18px; height: 20px; border-radius: 5px; border: 1.5px solid #B9BCC3; background: #fff; display: inline-block; }
.legend i.t { background: #D7D8DC; border-color: #D7D8DC; }
.legend i.m { background: var(--primary); border-color: var(--primary); }
.legend i.e { border-color: #E59AA2; }

/* confirmación */
.done-hero { background: var(--dark); color: #fff; border-radius: 22px; padding: 30px; position: relative; overflow: hidden; isolation: isolate; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.done-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; opacity: .08; -webkit-mask: url(/img/worldmap.svg) center / cover no-repeat; mask: url(/img/worldmap.svg) center / cover no-repeat; }
.done-hero::after { content: ""; position: absolute; z-index: -1; right: -8%; top: -40%; width: 30%; height: 180%; background: var(--primary); transform: skewX(-18deg); }
.done-hero h2 { font-size: 30px; font-weight: 800; }
.done-hero .pnr-big { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 46px; font-weight: 800; letter-spacing: .14em; background: #fff; color: var(--ink); border-radius: 14px; padding: 8px 18px; display: inline-block; margin-top: 10px; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pax-list { display: flex; flex-direction: column; gap: 8px; }
.pax-list .pl { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 14px; flex-wrap: wrap; }
.pax-list .pl b { font-size: 15px; }
.pax-list .seats { display: flex; gap: 6px; flex-wrap: wrap; }
.pax-list .seats span { background: #fff; border-radius: 8px; padding: 2px 8px; font-weight: 700; box-shadow: 0 0 0 1px var(--line); }

.bk-datecell { cursor: pointer; }
.bk-datecell .bk-val { font-size: 17px; font-weight: 700; height: 30px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-datecell .bk-val.ph { color: #9A9EA6; font-weight: 600; text-transform: none; }
.bk-cell input.bk-date { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
