/* Aerolíneas Atlántida — web de demostración. Colores y fuente de la marca (Master → Aerolíneas → Sitio y marca). */
:root {
  --navy: #0B3954;
  --navy-2: #0f4a6d;
  --teal: #17BEBB;
  --orange: #E4572E;
  --orange-dk: #c9471f;
  --bg: #F5F7F8;
  --ink: #12232e;
  --muted: #5b6b75;
  --line: #dde4e8;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 57, 84, .14);
  --wrap: 1180px;
}
* { box-sizing: border-box; }
/* El atributo hidden debe ganar a las reglas de display (.pnr__grid es grid): si no, el formulario propio no se oculta en modo widget. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.15; margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.demo-bar { background: #fff4d6; color: #6b4e00; font-size: 13px; text-align: center; padding: 6px 16px; }

/* ── Botones ─────────────────────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; border-radius: 999px; padding: 12px 22px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn--action { background: var(--orange); color: #fff; }
.btn--action:hover { background: var(--orange-dk); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; padding: 8px 16px; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--teal); color: #fff; }

/* ── Cabecera ────────────────────────────────────────────────────────────────────────────── */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.header__logo img { width: 180px; height: auto; }
.nav { display: flex; gap: 22px; flex: 1; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--teal); }
.header__tools { display: flex; align-items: center; gap: 8px; }
.pill-select { font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; background: #fff; color: var(--ink); }
.header__menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger, .burger::before, .burger::after { display: block; width: 24px; height: 2px; background: var(--navy); position: relative; transition: transform .2s; }
.burger::before, .burger::after { content: ''; position: absolute; left: 0; }
.burger::before { top: -7px; } .burger::after { top: 7px; }

/* ── Hero ────────────────────────────────────────────────────────────────────────────────── */
.hero { position: relative; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 45%, #1b6a8a 100%); color: #fff; padding: 56px 0 120px; overflow: hidden; }
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.hero__waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 160px; }
.hero__plane { position: absolute; width: 56px; top: 48px; right: 8%; transform: rotate(8deg); opacity: .9; }
.hero__inner { position: relative; display: grid; gap: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--teal); margin: 0 0 10px; }
.eyebrow--light { color: #bff3f2; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; max-width: 14ch; }
.hero__lead { font-size: 18px; max-width: 46ch; color: #d9e7ee; margin: 14px 0 0; }

/* ── Caja de reserva ─────────────────────────────────────────────────────────────────────── */
.booking { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.booking__tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.booking__tabs button { font: inherit; font-weight: 600; background: none; border: 0; padding: 16px 20px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.booking__tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--orange); }
.booking__panel { padding: 20px; }
.search__trip { border: 0; padding: 0; margin: 0 0 14px; display: flex; gap: 18px; font-weight: 500; }
.search__trip input { accent-color: var(--orange); }
.search__grid { display: grid; grid-template-columns: 1fr auto 1fr 1fr 1fr .9fr auto; gap: 10px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select { font: inherit; font-size: 16px; text-transform: none; letter-spacing: normal; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff; min-width: 0; }
.field input:focus, .field select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(23, 190, 187, .25); }
.swap { align-self: end; height: 46px; width: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font-size: 18px; cursor: pointer; }
.swap:hover { border-color: var(--teal); }
.search__go { height: 46px; white-space: nowrap; }
.form-error { color: #b42318; font-size: 14px; margin: 10px 0 0; }
.pnr__help { margin: 0 0 12px; color: var(--muted); }
.pnr__grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.status-result { margin: 12px 0 0; font-weight: 500; color: var(--navy); min-height: 1.5em; }
[data-premier-slot] { min-height: 120px; }

/* ── Aviso ───────────────────────────────────────────────────────────────────────────────── */
.notice { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: var(--radius); padding: 14px 18px; margin-top: -48px; position: relative; z-index: 2; }
.notice p { margin: 0; flex: 1; min-width: 220px; }
.notice__tag { background: var(--teal); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; text-transform: uppercase; }
.notice a { font-weight: 600; color: var(--orange); }

/* ── Accesos rápidos ─────────────────────────────────────────────────────────────────────── */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.quick a { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-weight: 600; text-decoration: none; color: var(--navy); }
.quick a:hover { border-color: var(--teal); }
.quick__icon { font-size: 22px; }

/* ── App ─────────────────────────────────────────────────────────────────────────────────── */
.app { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 32px; }
.app h2 { color: var(--navy); font-size: 24px; }
.app p { margin: 6px 0 0; color: var(--muted); }
.app__badges { display: flex; gap: 10px; }
.app__badge { display: flex; flex-direction: column; background: var(--ink); color: #fff; text-decoration: none; border-radius: 10px; padding: 8px 16px; font-weight: 700; line-height: 1.2; }
.app__badge small { font-weight: 400; font-size: 11px; opacity: .8; }

/* ── Secciones ───────────────────────────────────────────────────────────────────────────── */
.section { padding: 64px 16px; }
.section.wrap { padding-left: 16px; padding-right: 16px; }
.section--tint { background: #fff; }
.section__head { margin-bottom: 28px; max-width: 640px; }
.section__head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: var(--navy); }
.section__head p { color: var(--muted); margin: 8px 0 0; }

/* Tarjetas de destino */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card__link { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; padding: 18px; box-shadow: var(--shadow); transition: transform .2s; isolation: isolate; }
.card__link:hover { transform: translateY(-4px); }
.card--teal .card__link { background: linear-gradient(160deg, #17BEBB, #0B3954); }
.card--orange .card__link { background: linear-gradient(160deg, #E4572E, #0B3954); }
.card--navy .card__link { background: linear-gradient(160deg, #1b6a8a, #0B3954); }
.card__link::after { content: ''; position: absolute; inset: auto -20% -30% -20%; height: 60%; background: radial-gradient(ellipse at center, rgba(255,255,255,.18), transparent 70%); z-index: -1; }
.card__code { position: absolute; top: 10px; right: 14px; font-size: 64px; font-weight: 800; letter-spacing: -.02em; opacity: .18; }
.card__badge { position: absolute; top: 16px; left: 16px; background: #fff; color: var(--orange); font-size: 11px; font-weight: 700; text-transform: uppercase; border-radius: 999px; padding: 4px 10px; }
.card__body { display: flex; flex-direction: column; gap: 2px; }
.card__city { font-size: 24px; font-weight: 700; }
.card__country { font-size: 13px; opacity: .85; }
.card__phrase { font-size: 14px; margin-top: 8px; opacity: .95; }
.card__cta { margin-top: 12px; font-weight: 700; }

/* Ventajas */
.perks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.perks li { background: var(--bg); border-radius: var(--radius); padding: 22px; }
.perks__icon { font-size: 28px; }
.perks h3 { margin: 10px 0 6px; font-size: 18px; color: var(--navy); }
.perks p { margin: 0; color: var(--muted); font-size: 15px; }

/* Club */
.club { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(120deg, var(--navy), #1b6a8a); color: #fff; border-radius: 20px; padding: 40px; margin: 64px auto; }
.club h2 { font-size: clamp(26px, 3vw, 36px); }
.club p { color: #d9e7ee; max-width: 46ch; }
.club__mark { width: 160px; background: #fff; border-radius: 50%; padding: 10px; }

/* Ayuda */
.help__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.help__item { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; }
.help__item strong { color: var(--navy); font-size: 18px; }
.help__item span { color: var(--muted); }
.help__item:hover { border-color: var(--teal); }

/* ── Pie ─────────────────────────────────────────────────────────────────────────────────── */
.footer { background: var(--navy); color: #cfe0e9; margin-top: 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 24px; padding: 48px 16px 24px; }
.footer__logo { background: #fff; border-radius: 10px; padding: 8px 12px; width: 190px; }
.footer__small { font-size: 13px; margin-top: 14px; max-width: 36ch; }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer h3 { color: #fff; font-size: 15px; margin-bottom: 4px; }
.footer a { color: #cfe0e9; text-decoration: none; font-size: 14px; }
.footer a:hover { color: var(--teal); }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.15); padding: 16px; font-size: 13px; }

/* ── Responsive ──────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .search__grid { grid-template-columns: 1fr auto 1fr; }
  .search__grid .field:nth-of-type(3), .search__grid .field:nth-of-type(4) { grid-column: span 1; }
  .search__go { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .header__menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-open .nav { display: flex; }
  .header__tools .header__club { display: none; }
  .header__logo img { width: 150px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .quick { grid-template-columns: 1fr 1fr; }
  .club { flex-direction: column; text-align: center; padding: 32px 20px; margin: 48px 16px; }
}
@media (max-width: 600px) {
  .hero { padding: 32px 0 110px; }
  .search__grid { grid-template-columns: 1fr; }
  .swap { justify-self: center; transform: rotate(90deg); }
  .pnr__grid { grid-template-columns: 1fr; }
  .header__tools { gap: 4px; }
  .pill-select { padding: 5px 6px; font-size: 13px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__plane { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card__link, .btn { transition: none; }
}
