/* ============================================================
   CROACIA 2026 — hoja de estilo
   Paleta: piedra caliza, azul Adriático, terracota de los tejados.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* superficies */
  --bg:        #f6f1e7;
  --bg-2:      #fffdf8;
  --surface:   #ffffff;
  --surface-2: #fbf7ef;
  --line:      #e3d9c6;
  --line-soft: #efe7d8;

  /* tinta */
  --ink:       #14252f;
  --ink-2:     #40535e;
  --ink-3:     #7a8992;

  /* marca */
  --sea:       #0e7c93;
  --sea-deep:  #063d52;
  --sea-light: #23b8c4;
  --terra:     #cf5230;
  --gold:      #e9a020;
  --olive:     #6c7f4e;

  /* acentos funcionales */
  --accent:      var(--sea);
  --accent-soft: #e2f2f4;
  --on-accent:   #ffffff;

  /* geometría */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --sh-1: 0 1px 2px rgba(20,37,47,.05), 0 2px 8px rgba(20,37,47,.05);
  --sh-2: 0 2px 6px rgba(20,37,47,.06), 0 12px 32px rgba(20,37,47,.09);
  --sh-3: 0 8px 20px rgba(20,37,47,.10), 0 30px 70px rgba(20,37,47,.16);

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 600px;          /* diseño mobile-first: columna estrecha también en escritorio */
  --nav-h: 56px;
  --pad: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  /* cielo del héroe (lo pisa JS según la hora real en Croacia) */
  --sky-1: #0a3d5c;
  --sky-2: #1583a6;
  --sky-3: #7ecfd8;
  --sun:   #ffd479;
  --sun-glow: rgba(255,212,121,.55);

  color-scheme: light;
}

/* modo oscuro: sistema (salvo que se fuerce claro) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #08161e;
    --bg-2:      #0b1e28;
    --surface:   #102530;
    --surface-2: #0d1f29;
    --line:      #1e3a47;
    --line-soft: #17303c;

    --ink:       #eaf2f4;
    --ink-2:     #a9c0c9;
    --ink-3:     #6f8a95;

    --sea:       #35c3d4;
    --sea-deep:  #9fe4ee;
    --sea-light: #62dcea;
    --terra:     #f2764f;
    --gold:      #f6bb4b;
    --olive:     #a3bb7c;

    --accent:      var(--sea);
    --accent-soft: #10353f;
    --on-accent:   #04222b;

    --sh-1: 0 1px 2px rgba(0,0,0,.4);
    --sh-2: 0 2px 8px rgba(0,0,0,.42), 0 14px 34px rgba(0,0,0,.4);
    --sh-3: 0 10px 26px rgba(0,0,0,.5), 0 34px 80px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}

/* modo oscuro: forzado por el usuario */
:root[data-theme="dark"] {
  --bg:        #08161e;
  --bg-2:      #0b1e28;
  --surface:   #102530;
  --surface-2: #0d1f29;
  --line:      #1e3a47;
  --line-soft: #17303c;

  --ink:       #eaf2f4;
  --ink-2:     #a9c0c9;
  --ink-3:     #6f8a95;

  --sea:       #35c3d4;
  --sea-deep:  #9fe4ee;
  --sea-light: #62dcea;
  --terra:     #f2764f;
  --gold:      #f6bb4b;
  --olive:     #a3bb7c;

  --accent:      var(--sea);
  --accent-soft: #10353f;
  --on-accent:   #04222b;

  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 2px 8px rgba(0,0,0,.42), 0 14px 34px rgba(0,0,0,.4);
  --sh-3: 0 10px 26px rgba(0,0,0,.5), 0 34px 80px rgba(0,0,0,.55);
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 14px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(14,124,147,.16);
  overscroll-behavior-y: none;
}

/* textura de papel muy sutil */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { mix-blend-mode: screen; opacity: .16; } }
:root[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: .16; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.14; letter-spacing: -.015em; margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 2px; }
b, strong { font-weight: 650; color: var(--ink); }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--sea); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%; max-width: var(--maxw); margin-inline: auto; position: relative; z-index: 1;
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Héroe ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: linear-gradient(178deg, var(--sky-1) 0%, var(--sky-2) 52%, var(--sky-3) 100%);
  transition: background 1.6s linear;
  isolation: isolate;
}

/* sol / luna */
.hero__sun {
  position: absolute; z-index: 1;
  width: clamp(88px, 15vw, 150px); aspect-ratio: 1; border-radius: 50%;
  left: var(--sun-x, 62%); top: var(--sun-y, 26%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 38% 34%, #fff8e2, var(--sun) 58%, transparent 72%);
  box-shadow: 0 0 90px 34px var(--sun-glow), 0 0 220px 90px var(--sun-glow);
  transition: left 1.6s ease, top 1.6s ease, background 1.6s linear;
  cursor: pointer;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.12); } }

/* estrellas (solo visibles de noche vía JS) */
.hero__stars { position: absolute; inset: 0; z-index: 0; opacity: var(--stars, 0); transition: opacity 1.6s linear; }
.hero__stars i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

/* olas */
.hero__sea { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 38%; pointer-events: none; }
.hero__sea svg { position: absolute; bottom: 0; left: 0; width: 260%; height: 100%; }
.wave-1 { animation: drift 26s linear infinite;   opacity: .38; }
.wave-2 { animation: drift 18s linear infinite reverse; opacity: .55; }
.wave-3 { animation: drift 12s linear infinite;   opacity: 1; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-38.4615%); } }

/* barquito */
.hero__boat { position: absolute; z-index: 3; bottom: 30%; left: -8%; font-size: 26px; animation: sail 44s linear infinite; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
@keyframes sail {
  0%   { left: -8%;  transform: translateY(0) rotate(-2deg); }
  50%  { transform: translateY(-7px) rotate(2deg); }
  100% { left: 108%; transform: translateY(0) rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .wave-1, .wave-2, .wave-3, .hero__boat, .hero__sun, .hero__stars i { animation: none !important; }
}

.hero__inner {
  position: relative; z-index: 4;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; color: #fff;
  padding: calc(46px + env(safe-area-inset-top, 0px)) 20px 12px;
  text-shadow: 0 2px 26px rgba(0,32,48,.4);
}
.hero__eyebrow {
  font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .3em;
  text-transform: uppercase; opacity: .9; margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.hero__eyebrow::before, .hero__eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.hero__title {
  font-size: clamp(3.2rem, 19vw, 5.4rem); font-weight: 500; letter-spacing: -.04em; line-height: .88;
  margin: 0;
}
.hero__title em { font-style: italic; color: var(--sun); }
.hero__sub { font-family: var(--sans); font-size: clamp(.95rem, 2.6vw, 1.12rem); opacity: .94; margin: 20px 0 0; max-width: 30ch; }
.hero__dates {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 9px 18px; border-radius: 100px;
}
.hero__dates span { white-space: nowrap; }
.hero__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px var(--sun); }

/* contador */
.count { margin-top: 28px; display: flex; gap: 7px; }
.count__u {
  min-width: 64px; padding: 10px 6px 8px; border-radius: var(--r);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.count__n { display: block; font-family: var(--serif); font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.count__l { display: block; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; opacity: .8; margin-top: 6px; }
.count--live { flex-direction: column; align-items: center; gap: 6px; }
.count--live .count__badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 20px; border-radius: 100px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 14px; font-weight: 600;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

/* tira meteo del héroe */
.hero__meteo {
  position: relative; z-index: 4; display: flex; gap: 0;
  justify-content: center; margin: 0 auto 66px; padding: 0 10px;
  width: 100%; max-width: 560px;
}
.mt {
  flex: 1 1 0; min-width: 0; text-align: center; color: #fff; padding: 8px 4px;
  border-left: 1px solid rgba(255,255,255,.2);
}
.mt:first-child { border-left: 0; }
.mt__v { display: block; font-family: var(--serif); font-size: 1.15rem; line-height: 1.1; font-variant-numeric: tabular-nums; text-shadow: 0 2px 14px rgba(0,32,48,.5); }
.mt__l { display: block; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .78; margin-top: 3px; white-space: nowrap; }

.scrolldown {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 5;
  color: #fff; opacity: .8; font-size: 22px; animation: bob 2.4s ease-in-out infinite;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 9px); } }
@media (prefers-reduced-motion: reduce) { .scrolldown { animation: none; } }

/* ---------- 4. Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 90; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__in {
  max-width: var(--maxw); margin-inline: auto; height: 100%;
  display: flex; align-items: center; gap: 6px;
  padding-left: max(10px, env(safe-area-inset-left, 0px));
  padding-right: max(10px, env(safe-area-inset-right, 0px));
}
.nav__brand { display: none; }
.nav__links {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0;
  -webkit-overflow-scrolling: touch; scroll-padding-inline: 12px;
  mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 14px), transparent 100%);
}
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a {
  padding: 8px 13px; border-radius: 100px; font-size: 13.5px; font-weight: 550;
  color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: background .18s, color .18s;
}
.nav__links a:hover { background: var(--surface-2); color: var(--ink); }
.nav__links a[aria-current="true"] { background: var(--accent-soft); color: var(--sea-deep); }
.iconbtn {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font-size: 15px; transition: transform .18s, box-shadow .18s;
}
.iconbtn:hover { transform: translateY(-1px); box-shadow: var(--sh-1); }
.iconbtn:active { transform: scale(.94); }

/* ---------- 5. Secciones ---------- */
section { padding: 56px 0 8px; position: relative; z-index: 1; }
.shead { margin-bottom: 26px; }
.shead__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 12px;
}
.shead__eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.shead h2 { font-size: clamp(1.75rem, 8vw, 2.3rem); font-weight: 550; }
.shead p { color: var(--ink-2); margin: 10px 0 0; font-size: .98rem; }

/* revelado al hacer scroll */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- 6. Tarjetas genéricas ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--sh-1);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, border-color .25s;
}
.card--hover:active { transform: scale(.99); }
@media (hover: hover) { .card--hover:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line); } }
/* mobile-first: una sola columna en todas las rejillas */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--sea-deep); white-space: nowrap;
}
.chip--terra { background: color-mix(in srgb, var(--terra) 14%, transparent); color: var(--terra); }
.chip--gold  { background: color-mix(in srgb, var(--gold) 20%, transparent);  color: color-mix(in srgb, var(--gold) 78%, var(--ink)); }
.chip--olive { background: color-mix(in srgb, var(--olive) 18%, transparent); color: color-mix(in srgb, var(--olive) 85%, var(--ink)); }

.maplink {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  color: var(--sea); text-decoration: none; padding: 5px 11px; border-radius: 100px;
  background: var(--accent-soft); transition: transform .18s;
}
.maplink:hover { transform: translateX(2px); }

/* ---------- 7. Hoteles ---------- */
.hotel { display: grid; grid-template-columns: 1fr; gap: 0; overflow: hidden; padding: 0; }
.hotel__top {
  padding: 22px 22px 18px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--sea-deep), var(--sea));
}
.hotel--2 .hotel__top { background: linear-gradient(135deg, #7a2f18, var(--terra)); }
.hotel__top::after {
  content: ""; position: absolute; right: -30px; bottom: -46px; width: 170px; height: 170px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.hotel__city { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; opacity: .85; font-weight: 700; }
.hotel__name { font-size: 1.85rem; margin: 4px 0 8px; }
.hotel__nights { font-family: var(--mono); font-size: 12px; opacity: .9; }
.hotel__body { padding: 18px 22px 22px; }
.hotel__addr { font-size: 13.5px; color: var(--ink-3); margin: 0 0 14px; }
.perk { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.perk:first-child { border-top: 0; padding-top: 0; }
.perk__i { font-size: 20px; line-height: 1.3; flex: none; }
.perk__t { font-weight: 600; font-size: 14.5px; }
.perk__d { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

/* ---------- 8. "Ahora mismo" ---------- */
.now {
  background: linear-gradient(135deg, var(--sea-deep), #0b5f76 55%, var(--sea));
  color: #fff; border-radius: var(--r-xl); padding: 26px; box-shadow: var(--sh-3);
  position: relative; overflow: hidden;
}
.now::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 88% 12%, rgba(255,212,121,.3), transparent 55%);
}
.now__label { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; opacity: .82; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.now__title { font-size: clamp(1.5rem, 4.6vw, 2.1rem); margin: 10px 0 6px; font-weight: 550; }
.now__text { opacity: .92; font-size: 15px; margin: 0; max-width: 58ch; }
.now__bar { height: 5px; border-radius: 4px; background: rgba(255,255,255,.2); margin-top: 20px; overflow: hidden; }
.now__fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--sun), #fff); transition: width 1s linear; }
.now__meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; opacity: .78; margin-top: 8px; letter-spacing: .06em; }

/* ---------- 8b. Vuelos ---------- */
.sub3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 12px; }

.fl-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.fl-tab {
  flex: 1; cursor: pointer; text-align: left; border: 1px solid var(--line);
  background: var(--surface); border-radius: var(--r); padding: 10px 13px; transition: all .22s;
}
.fl-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: var(--sh-2); }
.fl-tab__d { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; opacity: .7; font-weight: 700; }
.fl-tab__t { font-family: var(--mono); font-size: 1rem; font-weight: 600; margin-top: 2px; }
.fl-tab__c { font-size: 11.5px; opacity: .72; }

.fl { padding: 0; overflow: hidden; }
.fl__top {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2);
}
.fl__code { font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.fl__date { font-size: 12.5px; color: var(--ink-3); }
.fl__body { padding: 18px 16px 16px; }

.fl__route { display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: start; gap: 6px; }
.fl__end { min-width: 0; }
.fl__end--r { text-align: right; }
.fl__iata { font-family: var(--serif); font-size: 2.1rem; line-height: 1; letter-spacing: -.02em; }
.fl__time { font-family: var(--mono); font-size: 1.1rem; font-weight: 600; margin-top: 3px; font-variant-numeric: tabular-nums; }
.fl__time s { color: var(--ink-3); font-weight: 400; margin-right: 6px; }
.fl__time em { font-style: normal; color: var(--terra); }
.fl__ap { font-size: 11px; color: var(--ink-3); line-height: 1.35; margin-top: 3px; }

.fl__mid { text-align: center; padding-top: 6px; }
.fl__arc { width: 100%; height: 54px; display: block; overflow: visible; }
.fl__arc .track { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 5; stroke-linecap: round; }
.fl__arc .done  { fill: none; stroke: var(--sea); stroke-width: 2.5; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.fl__plane { transition: transform 1s linear; }
.fl__dur { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: .05em; }

.fl__status {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px;
  padding: 11px 14px; border-radius: var(--r); background: var(--accent-soft);
  font-size: 14.5px; font-weight: 600; color: var(--sea-deep); text-align: center;
}
.fl__status--air  { background: color-mix(in srgb, var(--sea) 18%, transparent); }
.fl__status--soon { background: color-mix(in srgb, var(--gold) 20%, transparent); color: color-mix(in srgb, var(--gold) 80%, var(--ink)); }
.fl__status--done { background: color-mix(in srgb, var(--olive) 18%, transparent); color: color-mix(in srgb, var(--olive) 88%, var(--ink)); }
.fl__status--warn { background: color-mix(in srgb, var(--terra) 15%, transparent); color: var(--terra); }

.fl__live { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.fl__live div { text-align: center; padding: 9px 4px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-soft); }
.fl__live b { display: block; font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.fl__live span { display: block; font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }

.fl__gate {
  display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px;
  border-radius: var(--r); border: 1px dashed var(--line); background: var(--surface-2);
}
.fl__gate--live { border-style: solid; border-color: var(--terra); background: color-mix(in srgb, var(--terra) 8%, var(--surface)); }
.fl__gatebig { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--terra); }
.fl__gatetx { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.fl__gatetx b { color: var(--ink); }

.fl__warn {
  display: flex; gap: 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--terra) 11%, var(--surface));
  border-left: 3px solid var(--terra); font-size: 13.8px; color: var(--ink-2); line-height: 1.55;
}
.fl__warn b { color: var(--ink); }

.fllink { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.fllink__i { font-size: 22px; flex: none; }
.fllink__n { font-weight: 650; font-size: 15px; color: var(--ink); }
.fllink__d { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.fllink__go { margin-left: auto; color: var(--sea); font-size: 17px; flex: none; }

@media (max-width: 380px) {
  .fl__iata { font-size: 1.75rem; }
  .fl__live { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 9. Itinerario ---------- */
.daytabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.daytabs::-webkit-scrollbar { display: none; }
.daytab {
  flex: none; scroll-snap-align: start; cursor: pointer; text-align: left;
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--r);
  padding: 11px 16px; min-width: 132px; transition: all .22s cubic-bezier(.2,.7,.3,1);
}
.daytab:hover { border-color: var(--sea); transform: translateY(-2px); }
.daytab[aria-selected="true"] {
  background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: var(--sh-2);
}
.daytab__d { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; font-weight: 700; }
.daytab__t { font-family: var(--serif); font-size: 1.18rem; margin-top: 2px; }
.daytab__c { font-size: 12px; opacity: .72; }
.daytab--today { position: relative; }
.daytab--today::after {
  content: "HOY"; position: absolute; top: -7px; right: 8px; font-size: 8.5px; font-weight: 800; letter-spacing: .1em;
  background: var(--terra); color: #fff; padding: 2px 7px; border-radius: 100px;
}

.daypanel { animation: fadeUp .45s cubic-bezier(.2,.7,.3,1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .daypanel { animation: none; } }

.dayhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 26px; }
.dayhead h3 { font-size: clamp(1.6rem, 4.4vw, 2.3rem); font-weight: 550; }
.dayhead p { color: var(--ink-2); margin: 6px 0 0; max-width: 52ch; }

/* línea de tiempo */
.tl { position: relative; padding-left: 0; list-style: none; margin: 0; }
.tl::before {
  content: ""; position: absolute; left: 63px; top: 10px; bottom: 26px; width: 2px;
  background: linear-gradient(180deg, var(--sea), var(--gold), var(--terra)); opacity: .3; border-radius: 2px;
}
.ev { display: grid; grid-template-columns: 40px 24px 1fr; gap: 0 12px; padding-bottom: 10px; align-items: start; }
.ev__t { font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-align: right; padding-top: 17px; letter-spacing: -.03em; }
.ev__dot {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px;
  background: var(--surface); border: 2px solid var(--line); margin-top: 14px; z-index: 1; flex: none;
}
.ev--hl .ev__dot { border-color: var(--terra); box-shadow: 0 0 0 4px color-mix(in srgb, var(--terra) 15%, transparent); }
.ev__card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 15px 17px; box-shadow: var(--sh-1); transition: transform .22s, box-shadow .22s;
}
@media (hover: hover) { .ev__card:hover { transform: translateX(3px); box-shadow: var(--sh-2); } }
.ev--hl .ev__card { border-color: color-mix(in srgb, var(--terra) 40%, var(--line-soft)); background: linear-gradient(180deg, color-mix(in srgb, var(--terra) 5%, var(--surface)), var(--surface)); }
.ev__head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ev__title { font-family: var(--serif); font-size: 1.16rem; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.ev__body { font-size: 14.6px; color: var(--ink-2); margin: 7px 0 0; line-height: 1.62; }
.ev__body b { color: var(--ink); }
.ev__foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.tip {
  display: flex; gap: 9px; margin-top: 12px; padding: 10px 13px; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--gold) 12%, var(--surface-2));
  border-left: 3px solid var(--gold); font-size: 13.6px; color: var(--ink-2); line-height: 1.55;
}
.tip::before { content: "💡"; flex: none; }
.tip b { color: var(--ink); }
.ev__title { font-size: 1.1rem; }
.ev__body { font-size: 14.4px; }

/* ---------- 10. Mapa ---------- */
.mapbox { position: relative; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(170deg, #0a3a52, #0e6d85 70%, #1c94a3); box-shadow: var(--sh-2); aspect-ratio: 5/4; max-height: 460px; }
@media (min-width: 620px) { .mapbox { aspect-ratio: 16/10; } }
.mapbox svg.coast { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; transform: translate(-50%, -50%); cursor: pointer; z-index: 2; background: none; border: 0; padding: 0; }
.pin__d { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); box-shadow: 0 2px 8px rgba(0,0,0,.45); margin: 0 auto; transition: transform .2s; }
.pin--base { z-index: 3; }
.pin--base .pin__d { width: 16px; height: 16px; border-color: var(--terra); animation: ping 2.6s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--terra) 70%, transparent); } 70%,100% { box-shadow: 0 0 0 15px transparent; } }
.pin:hover .pin__d { transform: scale(1.3); }
.pin__l {
  position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%);
  font-size: 10.5px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 0 10px rgba(0,0,0,.6);
  white-space: nowrap; letter-spacing: .02em;
}
.pin--base .pin__l { font-size: 12.5px; top: calc(100% + 4px); }
.maptip {
  position: absolute; z-index: 5; background: var(--surface); color: var(--ink); border-radius: var(--r-sm);
  padding: 8px 12px; font-size: 12.5px; box-shadow: var(--sh-2); pointer-events: none;
  transform: translate(-50%, -160%); opacity: 0; transition: opacity .2s; white-space: nowrap; border: 1px solid var(--line);
}
.maptip.on { opacity: 1; }
.maptip b { display: block; font-size: 13.5px; }
.mapnote { position: absolute; left: 14px; bottom: 12px; z-index: 3; color: rgba(255,255,255,.72); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- 11. Playas ---------- */
.beach { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.beach__top { padding: 16px 18px 12px; display: flex; gap: 12px; align-items: flex-start; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.beach__ic { font-size: 27px; line-height: 1; }
.beach__n { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; }
.beach__m { font-size: 12px; color: var(--ink-3); }
.beach__b { padding: 14px 18px 16px; flex: 1; display: flex; flex-direction: column; }
.beach__w { font-size: 14.2px; color: var(--ink-2); margin: 0 0 12px; }
.pc { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 6px; }
.pc span { font-size: 11.5px; padding: 2px 9px; border-radius: 100px; background: color-mix(in srgb, var(--olive) 15%, transparent); color: color-mix(in srgb, var(--olive) 88%, var(--ink)); }
.pc.bad span { background: color-mix(in srgb, var(--terra) 12%, transparent); color: var(--terra); }
.beach__f { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); }
.beach__best { font-size: 12px; color: var(--ink-3); }
.beach__best b { color: var(--sea); }

/* ---------- 12. Filtros ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filt {
  border: 1px solid var(--line); background: var(--surface); border-radius: 100px;
  padding: 6px 15px; font-size: 13.5px; font-weight: 550; cursor: pointer; color: var(--ink-2);
  transition: all .2s;
}
.filt:hover { border-color: var(--sea); color: var(--ink); }
.filt[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- 13. Comida ---------- */
.dish { display: flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.dish:last-child { border-bottom: 0; }
.dish__i { font-size: 24px; flex: none; line-height: 1.2; }
.dish__n { font-family: var(--serif); font-size: 1.14rem; font-weight: 600; }
.dish__d { font-size: 14px; color: var(--ink-2); margin: 2px 0 0; line-height: 1.55; }
.rest { display: flex; flex-direction: column; gap: 7px; }
.rest__h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rest__n { font-family: var(--serif); font-size: 1.16rem; font-weight: 600; }
.rest__p { font-family: var(--mono); font-size: 12px; color: var(--olive); font-weight: 600; white-space: nowrap; }
.rest__d { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ---------- 14. Noche ---------- */
.night { background: linear-gradient(160deg, #0d1f2b, #14313f); color: #eaf2f4; border-color: #1e3a47; }
.night .night__n { font-family: var(--serif); font-size: 1.2rem; color: #fff; }
.night .night__d { font-size: 14px; color: #a9c0c9; margin: 6px 0 0; }
.night__meta { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 11.5px; color: #7fa3b0; margin-top: 10px; }
.night .maplink { background: rgba(53,195,212,.14); color: #62dcea; }
.night__k { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--gold); }

/* ---------- 15. Frases ---------- */
.phrase {
  display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line-soft); cursor: pointer; text-align: left; width: 100%;
  transition: all .2s;
}
.phrase:hover { border-color: var(--sea); transform: translateX(3px); }
.phrase__hr { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.phrase__ph { font-family: var(--mono); font-size: 11.5px; color: var(--terra); letter-spacing: .01em; }
.phrase__es { font-size: 13.5px; color: var(--ink-2); }
.phrase__sp { margin-left: auto; font-size: 17px; opacity: .45; flex: none; transition: opacity .2s, transform .2s; }
.phrase:hover .phrase__sp { opacity: 1; transform: scale(1.12); }
.phrase.playing .phrase__sp { opacity: 1; animation: pulse2 .8s ease-in-out infinite; }
@keyframes pulse2 { 50% { transform: scale(1.25); } }

/* ---------- 16. Maleta ---------- */
.packwrap { display: grid; grid-template-columns: 1fr; gap: 16px; }
.packring {
  display: flex; align-items: center; gap: 14px;
  position: sticky; top: calc(var(--nav-h) + 8px); z-index: 20;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px;
  box-shadow: var(--sh-2);
}
.packring > div { flex: 1; min-width: 0; }
.packring .btn { flex: none; }
.ring { width: 46px; height: 46px; flex: none; }
.ring circle { stroke-width: 13; }
.ring__t { font-family: var(--serif); font-size: 1.3rem; line-height: 1.1; }
.ring circle { fill: none; stroke-linecap: round; }
.ring .bgc { stroke: var(--line); }
.ring .fgc { stroke: var(--sea); transition: stroke-dashoffset .6s cubic-bezier(.2,.7,.3,1); transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring__t { font-family: var(--serif); font-size: 1.65rem; font-variant-numeric: tabular-nums; }
.packcol { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh-1); }
.packcol h4 { letter-spacing: .16em; text-transform: uppercase; color: var(--terra); font-family: var(--sans); font-weight: 700; font-size: 11px; margin: 0 0 6px; }
.chk { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.chk input { position: absolute; opacity: 0; width: 0; height: 0; }
.chk__b {
  width: 19px; height: 19px; border-radius: 6px; border: 2px solid var(--line); flex: none; margin-top: 2px;
  display: grid; place-items: center; transition: all .18s; background: var(--surface);
}
.chk input:checked + .chk__b { background: var(--sea); border-color: var(--sea); }
.chk__b::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 800; opacity: 0; transform: scale(.5); transition: all .18s; }
.chk input:checked + .chk__b::after { opacity: 1; transform: scale(1); }
.chk input:checked ~ .chk__l { text-decoration: line-through; opacity: .45; }
.chk input:focus-visible + .chk__b { outline: 2.5px solid var(--sea); outline-offset: 2px; }

/* ---------- 17. Presupuesto ---------- */
.bud { display: grid; gap: 14px; grid-template-columns: 1fr; }
.budform { display: flex; gap: 8px; flex-wrap: wrap; }
.budform input, .budform select {
  font: inherit; font-size: 16px; padding: 11px 13px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); min-width: 0;
}
.budform input[type="text"] { flex: 1 1 100%; }
.budform input[type="number"] { flex: 0 0 88px; }
.budform select { flex: 1 1 120px; }
.budform .btn { flex: 0 0 auto; }
.btn {
  border: 0; border-radius: var(--r-sm); padding: 11px 18px; font-size: 15px; font-weight: 650;
  background: var(--ink); color: var(--bg); cursor: pointer; transition: transform .18s, opacity .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.exp { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.exp:last-child { border-bottom: 0; }
.exp__c { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.exp__n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exp__a { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.exp__x { background: none; border: 0; cursor: pointer; color: var(--ink-3); font-size: 15px; padding: 0 3px; opacity: .5; }
.exp__x:hover { opacity: 1; color: var(--terra); }
.budtot { display: flex; align-items: baseline; justify-content: space-between; padding-top: 14px; margin-top: 6px; border-top: 2px solid var(--line); }
.budtot__n { font-family: var(--serif); font-size: 2rem; font-variant-numeric: tabular-nums; }
.budbars { display: flex; flex-direction: column; gap: 9px; }
.bb { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.bb__t { height: 9px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.bb__f { height: 100%; border-radius: 5px; transition: width .6s cubic-bezier(.2,.7,.3,1); }
.bb__v { font-family: var(--mono); font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pricetag { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.8px; border-bottom: 1px dotted var(--line); }
.pricetag:last-child { border-bottom: 0; }
.pricetag b { font-family: var(--mono); font-size: 13px; color: var(--olive); }

/* ---------- 18. Meteo ---------- */
.fc {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad);
}
.fc::-webkit-scrollbar { display: none; }
.fcd {
  flex: 0 0 104px; scroll-snap-align: start; text-align: center; padding: 14px 6px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-soft);
}
.fcd--today { border-color: var(--terra); box-shadow: 0 0 0 3px color-mix(in srgb, var(--terra) 12%, transparent); }
.fcd__d { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.fcd__i { font-size: 30px; margin: 7px 0 3px; line-height: 1; }
.fcd__t { font-family: var(--serif); font-size: 1.28rem; }
.fcd__t small { font-size: .68em; color: var(--ink-3); font-family: var(--sans); }
.fcd__x { font-size: 11px; color: var(--ink-3); margin-top: 5px; font-family: var(--mono); }

/* ---------- 19. Práctico ---------- */
.pr { display: flex; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.pr:last-child { border-bottom: 0; }
.pr__i { font-size: 21px; flex: none; line-height: 1.3; }
.pr__t { font-weight: 650; font-size: 15px; }
.pr__d { font-size: 14.2px; color: var(--ink-2); margin: 2px 0 0; line-height: 1.58; }

/* ---------- 20. Pie ---------- */
footer {
  margin-top: 78px; padding: 46px 0 40px; background: var(--sea-deep); color: #cfe9ef;
  position: relative; overflow: hidden;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) footer { background: #061620; } }
:root[data-theme="dark"] footer { background: #061620; }
footer { padding-bottom: calc(40px + var(--safe-b)); }
footer .wrap { display: grid; gap: 24px; grid-template-columns: 1fr; }
footer h3 { color: #fff; font-size: 1.6rem; font-weight: 550; }
footer p { font-size: 14.5px; opacity: .86; margin: 10px 0 0; }
footer b, footer strong { color: #fff; }
.qr { display: flex; align-items: center; gap: 16px; }
.qr canvas { border-radius: 12px; background: #fff; padding: 8px; flex: none; }
.qr__t { font-size: 13px; opacity: .8; }
.sos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.sos a {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 100px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #fff; text-decoration: none; font-size: 13px; font-weight: 600;
}
.sos a:hover { background: rgba(255,255,255,.18); }

/* ---------- 21. Botón instalar / arriba ---------- */
.fabs {
  position: fixed; right: max(14px, env(safe-area-inset-right, 0px));
  bottom: calc(14px + var(--safe-b)); z-index: 80;
  display: flex; flex-direction: column; gap: 9px; align-items: flex-end;
}
.fab {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--sh-2); cursor: pointer; font-size: 18px;
  display: grid; place-items: center; transition: transform .2s, opacity .3s;
  opacity: 0; pointer-events: none;
}
.fab.on { opacity: 1; pointer-events: auto; }
.fab:hover { transform: translateY(-2px) scale(1.04); }
.btn--install { margin-top: 16px; background: #fff; color: #06283e; }

.toast {
  position: fixed; left: 50%; bottom: calc(78px + var(--safe-b)); transform: translate(-50%, 20px); z-index: 200;
  background: var(--ink); color: var(--bg); padding: 11px 20px; border-radius: 100px;
  font-size: 14px; font-weight: 600; box-shadow: var(--sh-3);
  opacity: 0; pointer-events: none; transition: all .3s cubic-bezier(.2,.7,.3,1);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 22. Modo fiesta (easter egg) ---------- */
body.party { animation: partyhue 6s linear infinite; }
@keyframes partyhue { to { filter: hue-rotate(360deg); } }
.confetti { position: fixed; top: -12px; width: 9px; height: 14px; z-index: 300; pointer-events: none; border-radius: 2px; }

/* ---------- 23. Impresión ---------- */
@media print {
  .nav, .fabs, .hero__sea, .scrolldown, .filters, .budform, .toast { display: none !important; }
  .hero { min-height: auto; background: none; color: var(--ink); }
  .hero__inner { color: var(--ink); text-shadow: none; padding: 20px 0; }
  body { background: #fff; font-size: 11pt; }
  section { padding: 14px 0; break-inside: avoid; }
  .card, .ev__card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .daypanel { display: block !important; }
}
