/* ==========================================================
   Gran Canaria by Bus · estilos
   Una familia (Archivo, con anchura variable), un fondo, una tinta,
   un acento (turquesa Global) y campos de color: Atlántico y amarillo
   ========================================================== */
:root {
  --ground: #f1f4f2;
  --ground-2: #e3eae7;
  --ground-3: #d5dfdb;
  --surface: #ffffff;
  --ink: #0c2026;
  --ink-2: #33494f;
  --muted: #5b7076;
  --accent: #00838c;          /* turquesa Global oscurecido para texto blanco */
  --accent-ink: #ffffff;
  --global: #00a3ae;
  --muni: #ffc72c;
  --muni-ink: #2b2200;
  --atlantic: #0a3a46;
  --atlantic-2: #0f4a58;
  --on-dark: #eaf3f2;
  --on-dark-2: #a9c3c4;
  --warn: #c2410c;
  --ok: #047857;
  --radius: 4px;
  --fs: 17px;
  --tab-h: 64px;
  --bar-h: 64px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #071a1f; --ground-2: #0e252c; --ground-3: #163139; --surface: #0e252c;
    --ink: #e8f1f0; --ink-2: #c3d4d4; --muted: #8fa7a9; --accent: #00a3ae; --accent-ink: #04191d;
    --atlantic: #0b3440; --atlantic-2: #0f4250; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #071a1f; --ground-2: #0e252c; --ground-3: #163139; --surface: #0e252c;
  --ink: #e8f1f0; --ink-2: #c3d4d4; --muted: #8fa7a9; --accent: #00a3ae; --accent-ink: #04191d;
  --atlantic: #0b3440; --atlantic-2: #0f4250; color-scheme: dark;
}
:root.big { --fs: 20px; }

* { box-sizing: border-box; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--ground); color: var(--ink); line-height: 1.5; font-stretch: 100%; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 1.2em; height: 1.2em; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--global); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--ink); color: var(--ground); padding: 8px 14px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
main:focus { outline: none; }

/* ---------- Tipografía ---------- */
.display { font-stretch: 118%; font-weight: 850; letter-spacing: -0.03em; line-height: 0.92; margin: 0; }
.h1 { font-size: clamp(2.3rem, 6.2vw, 5.4rem); font-stretch: 115%; font-weight: 850; letter-spacing: -0.03em; line-height: 0.95; margin: 0 0 14px; }
.h2 { font-size: clamp(1.8rem, 3.8vw, 3.2rem); font-stretch: 112%; font-weight: 820; letter-spacing: -0.025em; line-height: 1; margin: 0 0 14px; }
.h3 { font-size: 1.25rem; font-weight: 750; line-height: 1.2; margin: 0 0 6px; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink); max-width: 46ch; margin: 0 0 20px; line-height: 1.45; }
.section { padding: clamp(64px, 9vw, 140px) 0; }
.section.tight { padding: clamp(40px, 6vw, 80px) 0; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 750; padding: 13px 22px; text-decoration: none; transition: transform .12s ease, background-color .15s ease; white-space: nowrap; }
.btn:hover { background: var(--ink); color: var(--ground); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--ground-2); color: var(--ink); }
.btn.ghost:hover { background: var(--ground-3); }
.btn.on-dark { background: var(--muni); color: var(--muni-ink); }
.btn.on-dark:hover { background: #fff; color: var(--ink); }
.btn.sm { padding: 8px 14px; font-size: .9rem; }
.btn.block { width: 100%; }
.link { color: var(--accent); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }
:root[data-theme="dark"] .link { color: var(--global); }
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; display: grid; place-items: center; color: var(--ink); transition: background-color .15s; }
.icon-btn:hover { background: var(--ground-2); }
.icon-btn svg { width: 24px; height: 24px; }

/* ---------- Barra superior ---------- */
.bar { position: sticky; top: 0; z-index: 900; height: var(--bar-h); display: flex; align-items: center; gap: 20px; padding: 0 clamp(16px, 3vw, 32px); background: var(--ground); transition: background-color .2s, color .2s; }
.bar.over { position: fixed; left: 0; right: 0; background: transparent; color: #fff; }
.bar.over .icon-btn, .bar.over .lang-btn { color: #fff; }
.bar.over .lang-btn { background: rgba(255, 255, 255, .16); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.brand-mark { width: 38px; height: 38px; }
.brand-name { font-stretch: 112%; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand-name b { color: var(--global); font-weight: 850; }
.bar.over .brand-name b { color: var(--muni); }
.bar-nav { display: none; gap: 4px; margin-left: auto; }
.bar-nav a { text-decoration: none; font-weight: 650; padding: 8px 14px; border-radius: 999px; transition: background-color .15s; }
.bar-nav a:hover { background: var(--ground-2); }
.bar.over .bar-nav a:hover { background: rgba(255, 255, 255, .16); }
.bar-nav a.active { background: var(--ink); color: var(--ground); }
.bar.over .bar-nav a.active { background: #fff; color: var(--ink); }
.bar-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.lang-btn { display: flex; align-items: center; gap: 8px; border: 0; background: var(--ground-2); border-radius: 999px; padding: 7px 12px 7px 8px; font-weight: 750; font-size: .9rem; }
.flag { width: 24px; height: 16px; border-radius: 2px; overflow: hidden; display: inline-block; flex: none; }
.flag svg { width: 100%; height: 100%; display: block; }
@media (min-width: 1020px) {
  .bar-nav { display: flex; }
  .bar-actions { margin-left: 8px; }
  body { padding-bottom: 0; }
  .tabs-bar { display: none !important; }
}

/* ---------- Barra inferior (móvil) ---------- */
.tabs-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--ink); color: var(--on-dark-2); }
:root[data-theme="dark"] .tabs-bar { background: #04131a; }
.tabs-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; font-size: .72rem; font-weight: 700; color: inherit; transition: color .15s; }
.tabs-bar a svg { width: 24px; height: 24px; }
.tabs-bar a.active { color: var(--muni); }

/* ---------- Hoja (menú, idioma) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: flex-end; justify-content: center; }
.scrim { position: absolute; inset: 0; background: rgba(4, 18, 22, .6); animation: fade .2s ease; }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--ground); border-radius: 18px 18px 0 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); animation: rise .28s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 18px; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-head h2 { margin: 0; font-size: 1.4rem; font-stretch: 112%; }
.menu-links { display: grid; gap: 4px; margin: 6px 0 16px; }
.menu-links a { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 1.1rem; background: var(--ground-2); }
.menu-links a:hover { background: var(--ground-3); }
.menu-settings { display: grid; gap: 8px; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 12px; border: 0; border-radius: 10px; background: transparent; font-weight: 650; text-align: left; }
.toggle::after { content: ""; margin-left: auto; width: 42px; height: 24px; border-radius: 999px; background: var(--ground-3); box-shadow: inset 0 0 0 0 transparent; transition: background-color .2s; }
.toggle[aria-pressed="true"]::after { background: var(--accent); }
.lang { text-align: center; }
.lang-mark { width: 64px; height: 64px; margin: 4px auto 10px; display: block; }
.lang h2 { margin: 0 0 4px; font-stretch: 115%; font-size: 1.6rem; letter-spacing: -0.02em; }
.lang p { margin: 0 0 18px; font-size: .9rem; }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.lang-grid button { display: flex; align-items: center; gap: 12px; padding: 14px; border: 0; border-radius: 10px; background: var(--ground-2); font-weight: 750; transition: background-color .15s, transform .12s; }
.lang-grid button:hover { background: var(--ground-3); }
.lang-grid button:active { transform: scale(.98); }
.lang-grid button.current { background: var(--ink); color: var(--ground); }
.lang-grid .flag { width: 32px; height: 22px; }

/* ---------- Aviso de bajada ---------- */
.alert-bar { position: sticky; top: var(--bar-h); z-index: 850; background: var(--muni); color: var(--muni-ink); padding: 10px clamp(16px, 3vw, 32px); display: flex; align-items: center; gap: 12px; font-weight: 700; }
.alert-bar .btn { margin-left: auto; background: var(--muni-ink); color: var(--muni); }

/* ---------- Portada: héroe ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--atlantic); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 75%; animation: drift 30s ease-in-out infinite alternate; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 22, 28, .55) 0%, rgba(4, 22, 28, .38) 35%, rgba(4, 22, 28, .82) 100%); }
.hero-inner { position: relative; padding-top: calc(var(--bar-h) + 40px); padding-bottom: 32px; }
.hero h1 { font-size: clamp(3rem, 11vw, 10.5rem); max-width: 11ch; }
.hero h1 b { display: block; font-weight: inherit; }
.hero .lead { color: #fff; font-size: clamp(1.1rem, 1.8vw, 1.4rem); margin-top: 22px; max-width: 40ch; }
.hero-credit { position: absolute; right: 12px; bottom: 8px; font-size: .68rem; color: rgba(255, 255, 255, .75); text-decoration: none; z-index: 1; }

/* ---------- Planificador ---------- */
.planner { position: relative; display: grid; gap: 10px; background: var(--ground); color: var(--ink); padding: 18px; border-radius: 14px; margin-top: 8px; }
.planner .fields { display: grid; gap: 8px; position: relative; }
.field { position: relative; }
.field label { position: absolute; left: 48px; top: 8px; font-size: .74rem; font-weight: 700; color: var(--muted); pointer-events: none; }
.field input { width: 100%; border: 0; border-radius: 10px; background: var(--ground-2); padding: 26px 48px 10px 48px; font-size: 1.08rem; font-weight: 600; color: var(--ink); outline: none; transition: background-color .15s; }
.field input:focus { background: var(--ground-3); box-shadow: inset 0 0 0 2px var(--accent); }
.field .dot { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; border-radius: 50%; }
.dot.a { border: 4px solid var(--accent); background: var(--ground); }
.dot.b { background: var(--warn); }
.field .in-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.swap { position: absolute; right: 54px; top: 50%; transform: translateY(-50%); z-index: 2; background: var(--ground); width: 40px; height: 40px; }
.when { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg { display: inline-flex; background: var(--ground-2); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.when input { border: 0; background: var(--ground-2); border-radius: 999px; padding: 8px 14px; font-weight: 650; color: var(--ink); }
.planner .btn.go { padding: 16px; font-size: 1.1rem; }
.form-msg { margin: 0; color: var(--warn); font-weight: 700; }
.form-msg:empty { display: none; }
@media (min-width: 900px) {
  .planner { grid-template-columns: 1fr 1fr auto; align-items: end; padding: 14px; gap: 10px; }
  .planner .fields { grid-column: 1 / 3; grid-template-columns: 1fr 1fr; }
  .planner .when { grid-column: 1 / 3; order: 3; }
  .planner .btn.go { grid-row: 1; grid-column: 3; height: 100%; padding: 0 34px; }
  .swap { right: auto; left: calc(50% - 20px); }
  .form-msg { grid-column: 1 / -1; order: 4; }
}
.ac { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; list-style: none; margin: 0; padding: 6px; background: var(--surface); border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .22); max-height: 340px; overflow: auto; display: none; color: var(--ink); }
.ac.open { display: block; }
.ac li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.ac li[aria-selected="true"], .ac li:hover { background: var(--ground-2); }
.ac img, .ac .ico { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex: none; }
.ac .ico { display: grid; place-items: center; background: var(--ground-2); color: var(--accent); }
.ac small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.2; }
.ac b { font-weight: 700; display: block; line-height: 1.25; }

/* ---------- Badges de línea ---------- */
.lb { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2em; height: 1.75em; padding: 0 .5em; border-radius: 6px; font-weight: 850; font-size: .92rem; background: var(--global); color: #04191d; font-stretch: 105%; font-variant-numeric: tabular-nums; flex: none; }
.lb.m { background: var(--muni); color: var(--muni-ink); }
.lb.sm { font-size: .78rem; height: 1.6em; }
.lb.lg { font-size: 1.4rem; height: 1.8em; min-width: 2.4em; border-radius: 8px; }
.lbs { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------- Tablero de salidas (cerca de mí) ---------- */
.board-sec { background: var(--atlantic); color: var(--on-dark); }
.board-sec .h2 { color: #fff; }
.board-sec .lead { color: var(--on-dark); }
.board-head { display: grid; gap: 18px; margin-bottom: 26px; }
@media (min-width: 900px) { .board-head { grid-template-columns: 1.1fr 1fr; align-items: end; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 700; background: var(--ground-2); color: var(--ink-2); transition: background-color .15s, transform .1s; }
.chips button:hover { background: var(--ground-3); }
.chips button:active { transform: scale(.97); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.board-sec .chips button { background: var(--atlantic-2); color: var(--on-dark); }
.board-sec .chips button:hover { background: #155a6a; }
.board-sec .chips button[aria-pressed="true"] { background: var(--muni); color: var(--muni-ink); }
.boards { display: grid; gap: 14px; }
@media (min-width: 900px) { .boards { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); } }
.board { background: var(--atlantic-2); border-radius: 10px; padding: 16px 18px 10px; }
.board-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.board-title h3 { margin: 0; font-size: 1.1rem; font-weight: 750; color: #fff; }
.board-title a { color: inherit; text-decoration: none; }
.board-title a:hover { text-decoration: underline; }
.board-title span { margin-left: auto; color: var(--on-dark-2); font-size: .85rem; white-space: nowrap; }
.dep { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 9px 0; text-decoration: none; color: inherit; }
.dep + .dep { border-top: 1px solid rgba(255, 255, 255, .08); }
.dep .dest { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dep .when-t { font-weight: 850; font-size: 1.15rem; font-variant-numeric: tabular-nums; text-align: right; font-stretch: 110%; }
.dep .when-t small { display: block; font-size: .72rem; font-weight: 600; color: var(--on-dark-2); }
.dep .when-t.soon { color: var(--muni); }
.board-empty { color: var(--on-dark-2); padding: 10px 0 14px; }
.light .board { background: var(--surface); }
.light .board-title h3 { color: var(--ink); }
.light .board-title span, .light .dep .when-t small { color: var(--muted); }
.light .dep + .dep { border-top-color: var(--ground-2); }
.light .dep .when-t.soon { color: var(--warn); }
.light .board-empty { color: var(--muted); }

/* ---------- Lugares (portada) ---------- */
.mag { display: grid; gap: 22px; }
@media (min-width: 960px) { .mag { grid-template-columns: 1.35fr 1fr; gap: 32px; } }
.feature { position: relative; display: block; color: #fff; text-decoration: none; overflow: hidden; border-radius: var(--radius); min-height: 520px; background: var(--atlantic); }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.feature:hover img { transform: scale(1.04); }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(4, 20, 26, .85) 100%); }
.feature-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 26px; }
.feature-body h3 { font-size: clamp(2rem, 4vw, 3.4rem); font-stretch: 115%; font-weight: 850; letter-spacing: -0.03em; margin: 0 0 8px; line-height: .95; }
.feature-body p { margin: 0 0 12px; max-width: 44ch; font-size: 1.05rem; }
.plist { display: grid; gap: 4px; }
.prow { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; text-decoration: none; color: inherit; padding: 8px; margin: 0 -8px; border-radius: 8px; transition: background-color .15s; }
.prow:hover { background: var(--ground-2); }
.prow img { width: 112px; height: 84px; object-fit: cover; border-radius: var(--radius); }
.prow h3 { font-size: 1.15rem; margin: 0 0 3px; font-weight: 750; }
.prow p { margin: 0; color: var(--ink-2); font-size: .93rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Dos compañías ---------- */
.ops { display: grid; }
@media (min-width: 900px) { .ops { grid-template-columns: 1fr 1fr; } }
.op { padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 56px); display: grid; gap: 18px; align-content: start; }
.op.g { background: var(--global); color: #04191d; }
.op.m { background: var(--muni); color: var(--muni-ink); }
.op h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-stretch: 118%; font-weight: 850; letter-spacing: -0.03em; line-height: .95; margin: 0; }
.op p { margin: 0; font-size: 1.08rem; max-width: 44ch; }
.op-photos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.op-photos img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.op-photos img:first-child { grid-row: span 2; aspect-ratio: auto; }
.op-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.op-facts b { display: block; font-size: clamp(1.6rem, 3vw, 2.4rem); font-stretch: 115%; font-weight: 850; letter-spacing: -0.02em; line-height: 1; }
.op-facts span { font-size: .9rem; font-weight: 600; }
.op a.btn { justify-self: start; background: #04191d; color: #fff; }
.op.m a.btn { background: var(--muni-ink); color: var(--muni); }

/* ---------- Llegada al aeropuerto ---------- */
.arrive { display: grid; gap: 28px; }
@media (min-width: 960px) { .arrive { grid-template-columns: 1fr 1.25fr; align-items: start; } }
.arrive-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.arrive-img img { width: 100%; height: 100%; object-fit: cover; }
.dest-list { display: grid; gap: 2px; margin-top: 10px; }
.dest-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 4px; text-decoration: none; color: inherit; border-radius: 8px; transition: background-color .15s; }
.dest-row + .dest-row { border-top: 1px solid var(--ground-2); }
.dest-row:hover { background: var(--ground-2); }
.dest-row b { font-size: 1.1rem; font-weight: 750; }
.dest-row small { display: block; color: var(--muted); }
.dest-row .t { font-weight: 850; font-size: 1.2rem; font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Planes (portada) ---------- */
.plans-strip { display: grid; gap: 14px; grid-auto-flow: column; grid-auto-columns: minmax(270px, 82%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
@media (min-width: 900px) { .plans-strip { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
.plan-card { scroll-snap-align: start; position: relative; display: block; text-decoration: none; color: #fff; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; background: var(--atlantic); }
.plan-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.plan-card:hover img { transform: scale(1.05); }
.plan-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 20, 26, .55) 0%, transparent 40%, rgba(4, 20, 26, .7) 100%); }
.plan-card div { position: absolute; inset: 0; z-index: 1; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; }
.plan-card b { font-size: clamp(3rem, 6vw, 5rem); font-stretch: 120%; font-weight: 900; letter-spacing: -0.04em; line-height: .85; }
.plan-card span { font-size: 1.15rem; font-weight: 700; max-width: 22ch; }

/* ---------- Encabezado de vistas ---------- */
.page-head { padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(18px, 3vw, 32px); }
.page-head .lead { margin-bottom: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--ink-2); margin-bottom: 14px; }
.back:hover { color: var(--ink); }

/* ---------- Resultados de ruta ---------- */
.plan-layout { display: grid; gap: 22px; padding-bottom: 60px; }
@media (min-width: 1020px) { .plan-layout { grid-template-columns: minmax(380px, 1fr) 1.2fr; align-items: start; } .plan-layout .map-box { position: sticky; top: calc(var(--bar-h) + 12px); } }
.route-sum { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.opts { display: grid; gap: 10px; }
.opt { background: var(--surface); border-radius: 10px; padding: 16px; text-align: left; border: 0; width: 100%; display: grid; gap: 10px; transition: background-color .15s, transform .12s; box-shadow: inset 0 0 0 0 transparent; }
.opt:hover { background: var(--ground-2); }
.opt[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--accent); }
.opt-top { display: flex; align-items: baseline; gap: 12px; }
.opt-time { font-size: 1.6rem; font-weight: 850; font-stretch: 112%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.opt-dur { margin-left: auto; font-weight: 750; white-space: nowrap; }
.opt-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.opt-chain svg { width: 16px; height: 16px; }
.opt-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--ink-2); }
.opt-meta .leave { color: var(--warn); font-weight: 750; }
.legs { list-style: none; margin: 18px 0 0; padding: 0; }
.leg { display: grid; grid-template-columns: 52px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.leg::before { content: ""; position: absolute; left: 25px; top: 44px; bottom: 2px; width: 4px; border-radius: 2px; background: var(--ground-3); }
.leg.ride.g::before { background: var(--global); }
.leg.ride.m::before { background: var(--muni); }
.leg.walk::before { background: repeating-linear-gradient(var(--muted) 0 4px, transparent 4px 9px); width: 3px; left: 25.5px; }
.leg:last-child::before { display: none; }
.leg-t { font-weight: 850; font-variant-numeric: tabular-nums; font-size: 1rem; padding-top: 10px; text-align: center; }
.leg-body { background: var(--surface); border-radius: 10px; padding: 12px 14px; }
.leg.walk .leg-body, .leg.end .leg-body { background: transparent; padding: 8px 0; }
.leg-body h4 { margin: 0 0 4px; font-size: 1.02rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 750; }
.leg-body p { margin: 2px 0; color: var(--ink-2); font-size: .95rem; }
.leg-body .stops-n { color: var(--muted); font-size: .88rem; }
.leg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.note { background: var(--ground-2); border-radius: 8px; padding: 10px 12px; font-size: .92rem; margin-top: 8px; }
.note.warn { background: #fdebd3; color: #5a2a06; }
:root[data-theme="dark"] .note.warn { background: #3d2410; color: #ffd9b4; }
.res-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.map-box { border-radius: 10px; overflow: hidden; background: var(--ground-2); height: min(62vh, 620px); min-height: 320px; }
.map-box.sm { height: 300px; }
.small { font-size: .85rem; color: var(--muted); }

/* ---------- Mapa a pantalla completa ---------- */
.view-map { position: relative; }
.fullmap { position: relative; height: calc(100vh - var(--bar-h) - var(--tab-h)); height: calc(100dvh - var(--bar-h) - var(--tab-h) - env(safe-area-inset-bottom)); }
@media (min-width: 1020px) { .fullmap { height: calc(100dvh - var(--bar-h)); } }
.fullmap .map { position: absolute; inset: 0; }
.map-tools { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.map-tools > * { pointer-events: auto; }
.map-tools .chips button { box-shadow: 0 2px 10px rgba(0, 0, 0, .18); background: var(--ground); }
.map-tools .chips button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.map-locate { position: absolute; right: 12px; bottom: 28px; z-index: 5; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--ground); color: var(--accent); display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.map-locate svg { width: 26px; height: 26px; }
.map-panel { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 6; max-height: 55%; overflow: auto; background: var(--ground); border-radius: 14px; padding: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); animation: rise .25s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 900px) { .map-panel { left: auto; right: 16px; top: 70px; bottom: auto; width: 400px; max-height: calc(100% - 90px); } }
.map-panel .close { position: absolute; right: 8px; top: 8px; }
.maplibregl-popup-content { font-family: var(--font); border-radius: 10px; padding: 10px 12px; color: #0c2026; }
.mk-me { width: 18px; height: 18px; border-radius: 50%; background: #1d7cf2; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(29, 124, 242, .25); }
.mk-a, .mk-b { width: 22px; height: 22px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.mk-a { background: var(--accent); }
.mk-b { background: var(--warn); }

/* ---------- Listas: líneas, paradas ---------- */
.toolbar { display: grid; gap: 12px; margin-bottom: 22px; }
.search { width: 100%; border: 0; border-radius: 999px; background: var(--ground-2); padding: 14px 20px; font-size: 1.05rem; font-weight: 600; outline: none; }
.search:focus { box-shadow: inset 0 0 0 2px var(--accent); background: var(--surface); }
.line-list { display: grid; gap: 2px; padding-bottom: 60px; }
@media (min-width: 900px) { .line-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.line-row { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; padding: 12px 6px; text-decoration: none; color: inherit; border-radius: 8px; transition: background-color .15s; }
.line-row:hover { background: var(--ground-2); }
.line-row b { font-weight: 700; display: block; line-height: 1.25; }
.line-row small { color: var(--muted); }
.line-row svg { color: var(--muted); }
.line-hero { padding: clamp(28px, 4vw, 56px) 0 26px; }
.line-hero.g { background: var(--global); color: #04191d; }
.line-hero.m { background: var(--muni); color: var(--muni-ink); }
.line-hero .back { color: inherit; opacity: .85; }
.line-hero h1 { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.line-hero .lb.lg { background: #04191d; color: #fff; }
.line-hero.m .lb.lg { background: var(--muni-ink); color: var(--muni); }
.line-grid { display: grid; gap: 26px; padding-top: 26px; padding-bottom: 60px; }
@media (min-width: 1020px) { .line-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.tt-day { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tt { display: flex; flex-wrap: wrap; gap: 6px; }
.tt button { border: 0; background: var(--surface); border-radius: 6px; padding: 7px 10px; font-weight: 750; font-variant-numeric: tabular-nums; font-size: .95rem; transition: background-color .15s; }
.tt button:hover { background: var(--ground-3); }
.tt button.past { color: var(--muted); font-weight: 500; }
.tt button.next { background: var(--ink); color: var(--ground); }
.tt button sup { font-size: .65em; color: var(--accent); margin-left: 2px; }
.variants { display: grid; gap: 4px; margin: 10px 0; font-size: .9rem; color: var(--ink-2); }
.variants b { color: var(--accent); }
.stop-list { list-style: none; margin: 0; padding: 0; }
.stop-list li { display: grid; grid-template-columns: 54px 22px 1fr; align-items: center; gap: 8px; position: relative; }
.stop-list .tm { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--muted); font-size: .9rem; text-align: right; }
.stop-list .pt { width: 14px; height: 14px; border-radius: 50%; background: var(--ground); border: 3px solid var(--global); justify-self: center; position: relative; z-index: 1; }
.m .stop-list .pt, .stop-list.m .pt { border-color: #d9a400; }
.stop-list li::before { content: ""; position: absolute; left: 70px; top: 0; bottom: 0; width: 4px; background: var(--global); opacity: .45; }
.stop-list.m li::before { background: var(--muni); opacity: 1; }
.stop-list li:first-child::before { top: 50%; }
.stop-list li:last-child::before { bottom: 50%; }
.stop-list a { padding: 8px 0; text-decoration: none; font-weight: 600; color: inherit; }
.stop-list a:hover { text-decoration: underline; }

/* ---------- Lugares ---------- */
.filters { display: grid; gap: 10px; margin-bottom: 26px; }
.pgrid { display: grid; gap: 30px 22px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); padding-bottom: 60px; }
.pcard { display: grid; gap: 10px; text-decoration: none; color: inherit; position: relative; }
.pcard .ph { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); background: var(--ground-2); }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.pcard:hover .ph img { transform: scale(1.05); }
.pcard h3 { margin: 0; font-size: 1.3rem; font-weight: 800; font-stretch: 108%; letter-spacing: -0.01em; line-height: 1.1; }
.pcard p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.4; }
.pcard .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .85rem; color: var(--muted); font-weight: 600; align-items: center; }
.fav { position: absolute; right: 10px; top: 10px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #c2334d; display: grid; place-items: center; transition: transform .15s; }
.fav:active { transform: scale(.9); }
.cat { display: inline-block; font-size: .78rem; font-weight: 750; padding: 3px 9px; border-radius: 999px; background: var(--ground-2); color: var(--ink-2); }
.empty { color: var(--muted); padding: 40px 0; grid-column: 1 / -1; font-size: 1.05rem; }

/* Ficha de lugar */
.gallery { position: relative; background: var(--atlantic); }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: min(70vh, 640px); }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track figure { margin: 0; flex: 0 0 100%; scroll-snap-align: start; position: relative; }
@media (min-width: 1020px) { .gal-track figure { flex-basis: 72%; } .gal-track figure + figure { margin-left: 6px; } }
.gal-track img { width: 100%; height: 100%; object-fit: cover; }
.gal-track figcaption { position: absolute; right: 10px; bottom: 8px; font-size: .7rem; }
.gal-track figcaption a { color: rgba(255, 255, 255, .85); text-decoration: none; background: rgba(0, 0, 0, .35); padding: 2px 6px; border-radius: 4px; }
.gal-nav { position: absolute; bottom: 16px; left: clamp(16px, 3vw, 32px); display: flex; gap: 8px; }
.gal-nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #0c2026; display: grid; place-items: center; }
.place-grid { display: grid; gap: 32px; padding-top: 30px; padding-bottom: 70px; }
@media (min-width: 1020px) { .place-grid { grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; } .place-side { position: sticky; top: calc(var(--bar-h) + 16px); } }
.place-grid h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; margin: 22px 0 26px; }
.facts div { background: var(--ground-2); border-radius: 8px; padding: 12px 14px; }
.facts span { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); }
.facts b { font-size: 1.05rem; font-weight: 750; }
.prose p { font-size: 1.1rem; line-height: 1.6; margin: 0 0 16px; max-width: 64ch; }
.hl { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.hl li { display: flex; gap: 10px; align-items: baseline; font-weight: 650; }
.hl li::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--global); flex: none; transform: translateY(-1px); }
.tipbox { background: var(--muni); color: var(--muni-ink); border-radius: 10px; padding: 16px 18px; font-weight: 600; margin: 0 0 22px; }
.side-box { background: var(--surface); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.side-box h2 { font-size: 1.3rem; margin: 0 0 10px; font-stretch: 108%; font-weight: 800; }
.weather { display: flex; align-items: center; gap: 16px; }
.weather b { font-size: 2.4rem; font-weight: 850; font-stretch: 110%; letter-spacing: -0.03em; line-height: 1; }
.weather small { display: block; color: var(--muted); }
.near-stops { display: grid; gap: 2px; }
.near-stops a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0; text-decoration: none; color: inherit; }
.near-stops a + a { border-top: 1px solid var(--ground-2); }
.near-stops a b { font-weight: 700; }
.near-stops a small { color: var(--muted); grid-column: 1 / -1; }
.origin-pick { display: grid; gap: 8px; }
.select { width: 100%; border: 0; border-radius: 10px; background: var(--ground-2); padding: 12px 14px; font-weight: 650; color: var(--ink); }

/* Planes / guía */
.days { display: grid; gap: 16px; padding-bottom: 60px; }
.day { display: grid; gap: 14px; background: var(--surface); border-radius: 12px; padding: 18px; }
@media (min-width: 900px) { .day { grid-template-columns: 120px 1fr; align-items: start; } }
.day-n { font-size: 3.4rem; font-weight: 900; font-stretch: 122%; letter-spacing: -0.04em; line-height: .9; color: var(--accent); }
.day h3 { font-size: 1.3rem; margin: 0 0 10px; font-weight: 800; }
.day-stops { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.day-stops a { text-decoration: none; color: inherit; font-weight: 700; font-size: .92rem; }
.day-stops img { width: 168px; height: 118px; object-fit: cover; border-radius: var(--radius); margin-bottom: 6px; }
.tabs { display: inline-flex; background: var(--ground-2); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.tabs button { border: 0; background: transparent; padding: 9px 20px; border-radius: 999px; font-weight: 800; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--ground); }
.guide { display: grid; gap: 40px; padding-bottom: 70px; }
@media (min-width: 1020px) { .guide { grid-template-columns: 1fr 1.4fr; align-items: start; } .guide-photos { position: sticky; top: calc(var(--bar-h) + 16px); } }
.guide-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.guide-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.guide-photos img:first-child { grid-column: span 2; aspect-ratio: 16/9; }
.acc details { background: var(--surface); border-radius: 10px; margin-bottom: 8px; }
.acc summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 800; font-size: 1.12rem; display: flex; align-items: center; gap: 12px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; margin-left: auto; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .body { padding: 0 18px 16px; color: var(--ink-2); }
.acc .body ul { padding-left: 20px; margin: 6px 0; }
.acc .body li { margin-bottom: 6px; }
.phrases { display: grid; gap: 8px; }
.phrase { background: var(--surface); border-radius: 10px; padding: 14px 16px; }
.phrase b { display: block; font-size: 1.08rem; }
.phrase span { color: var(--muted); }

/* Favoritos */
.fav-routes { display: grid; gap: 6px; margin-bottom: 30px; }
.fav-route { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 10px; padding: 14px; }
.fav-route a { flex: 1; text-decoration: none; font-weight: 700; color: inherit; }
.fav-route button { border: 0; background: transparent; color: var(--muted); }

/* Anuncios */
.ad-slot { margin: 30px auto; max-width: 1320px; padding: 0 clamp(16px, 3vw, 32px); }
.ad-slot:empty { display: none; }
.ad-label { display: block; font-size: .72rem; color: var(--muted); text-align: center; margin-bottom: 4px; }

/* ---------- Pie ---------- */
.foot { background: var(--ink); color: var(--on-dark); padding: 60px 0 30px; overflow: hidden; }
:root[data-theme="dark"] .foot { background: #04131a; }
.foot-word { font-size: clamp(1.9rem, 7.4vw, 8.6rem); font-stretch: 122%; font-weight: 900; letter-spacing: -0.045em; line-height: .9; margin: 0 0 36px; white-space: nowrap; }
.foot-word b { color: var(--muni); font-weight: inherit; }
.foot-cols { display: grid; gap: 24px; }
@media (min-width: 900px) { .foot-cols { grid-template-columns: 1.2fr 1fr; } }
.foot-note { margin: 0; color: var(--on-dark-2); max-width: 60ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: start; }
.foot-links a { color: #fff; text-decoration: none; font-weight: 650; }
.foot-links a:hover { text-decoration: underline; }
.foot-small { margin: 28px 0 0; font-size: .8rem; color: var(--on-dark-2); }
body.full .foot, body.loading .foot { display: none; }

/* ---------- Cookies, toast ---------- */
.cookie { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom)); z-index: 1200; max-width: 560px; margin: 0 auto; background: var(--ground); border-radius: 14px; padding: 16px 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
@media (min-width: 1020px) { .cookie { bottom: 18px; } }
.cookie p { margin: 0 0 12px; font-size: .92rem; }
.cookie-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-actions a { margin-right: auto; font-size: .9rem; font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 22px); transform: translateX(-50%); background: var(--ink); color: var(--ground); padding: 12px 20px; border-radius: 999px; font-weight: 750; z-index: 1600; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: rise .25s ease; max-width: calc(100vw - 32px); }

/* ---------- Movimiento ---------- */
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Páginas legales */
.legal { max-width: 780px; margin: 0 auto; padding: 32px 16px 50px; }
.legal h1 { font-size: 2.2rem; font-stretch: 112%; letter-spacing: -0.02em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal td, .legal th { border-bottom: 1px solid var(--ground-3); padding: 8px 6px; text-align: left; vertical-align: top; }
body.plain { padding-bottom: 0; }
.pcard .ph.noimg { display: grid; place-items: center; background: var(--global); }
.pcard .ph.noimg svg { width: 30%; height: auto; aspect-ratio: 1; }
.gallery:empty, .gal-track:empty { display: none; }
.gallery:has(.gal-track:empty) { display: none; }
.op-photos.g4 img:first-child { grid-row: span 3; }
.op-photos.two { grid-template-columns: 1fr 1fr; }
.op-photos.two img:first-child { grid-row: auto; aspect-ratio: 4/3; }

/* Aviso de reserva obligatoria */
.booking-box { display: flex; gap: 14px; align-items: flex-start; background: var(--muni); color: var(--muni-ink); border-radius: 12px; padding: 18px; margin: 0 0 22px; }
.booking-box > svg { width: 30px; height: 30px; flex: none; margin-top: 2px; }
.booking-box b { display: block; font-size: 1.15rem; font-weight: 850; margin-bottom: 4px; }
.booking-box p { margin: 0 0 12px; font-weight: 600; }
.booking-box .btn { background: var(--muni-ink); color: var(--muni); }
.booking-box .btn:hover { background: #000; color: #fff; }

/* ---------- Fiestas, compras y deportes ---------- */
.xgrid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.xgrid.one { grid-template-columns: 1fr; margin-bottom: 34px; }
.xcard { display: flex; flex-direction: column; background: var(--surface); border-radius: 12px; overflow: hidden; }
.xcard.big { display: grid; }
@media (min-width: 900px) { .xcard.big { grid-template-columns: 1.2fr 1fr; } .xcard.big .xph { aspect-ratio: auto; min-height: 380px; } }
.xph { position: relative; aspect-ratio: 16/10; background: var(--global); display: grid; place-items: center; overflow: hidden; }
.xph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.xcard:hover .xph img { transform: scale(1.04); }
.xph > svg { width: 30%; height: auto; aspect-ratio: 1; }
.xph .credit { position: absolute; right: 6px; bottom: 6px; z-index: 1; font-size: .64rem; color: #fff; background: rgba(0, 0, 0, .45); padding: 2px 6px; border-radius: 4px; text-decoration: none; max-width: 85%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xbadge { position: absolute; left: 10px; top: 10px; z-index: 1; background: var(--ink); color: var(--ground); font-weight: 800; font-size: .8rem; padding: 5px 10px; border-radius: 999px; }
.xbadge.now { background: var(--warn); color: #fff; }
.xbadge.soon { background: var(--muni); color: var(--muni-ink); }
.xbody { padding: 16px 18px 18px; display: grid; gap: 6px; align-content: start; }
.xbody h3 { margin: 0; font-size: 1.3rem; font-weight: 800; font-stretch: 108%; letter-spacing: -0.01em; line-height: 1.12; }
.xbody p { margin: 0; color: var(--ink-2); }
.xbody .xdesc { font-size: 1.04rem; line-height: 1.55; color: var(--ink); }
.xmeta { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--muted) !important; }
.xmeta svg { width: 16px; height: 16px; }
.fiesta-bar { position: sticky; top: var(--bar-h); z-index: 840; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--warn); color: #fff; padding: 10px clamp(16px, 3vw, 32px); }
.fiesta-bar img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.fiesta-bar span { flex: 1 1 200px; font-weight: 600; }
.fiesta-bar .btn { background: #fff; color: #7a2508; }
.fiesta-bar .btn.ghost { background: rgba(255, 255, 255, .18); color: #fff; }
.fiesta-bar .icon-btn { color: #fff; }
.more-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .more-grid { grid-template-columns: repeat(3, 1fr); } }
.more-tile { position: relative; display: block; min-height: 260px; border-radius: var(--radius); overflow: hidden; background: var(--atlantic); color: #fff; text-decoration: none; }
.more-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.more-tile:hover img { transform: scale(1.05); }
.more-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(4, 20, 26, .85) 100%); }
.more-tile div { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px; display: grid; gap: 4px; }
.more-tile b { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 850; font-stretch: 115%; letter-spacing: -0.02em; line-height: 1; }
.more-tile span { font-weight: 600; }
.xarea { position: absolute; left: 10px; bottom: 8px; z-index: 1; font-size: .68rem; color: #fff; background: rgba(0, 0, 0, .45); padding: 2px 6px; border-radius: 4px; }
@media (max-width: 600px) { .fiesta-bar .fb-town, .fiesta-bar .btn.ghost { display: none; } .fiesta-bar { padding-top: 8px; padding-bottom: 8px; } }
.xarea { left: auto; right: 10px; top: 10px; bottom: auto; }

/* Botón de cerrar del panel del mapa: negro y siempre visible */
.map-panel .close { position: absolute; right: 10px; top: 10px; z-index: 3; width: 40px; height: 40px; background: #0c2026; color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.map-panel .close:hover { background: #000; color: #fff; }
.map-panel .close svg { width: 22px; height: 22px; }

/* ---------- ¿Qué playa hoy?, crucero, senderos, transporte, avisos ---------- */
.beach-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.beach-head .lead { margin-bottom: 0; }
.beach-row { display: grid; gap: 12px; }
@media (min-width: 900px) { .beach-row { grid-template-columns: repeat(3, 1fr); } }
.beach-mini { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; background: var(--surface); border-radius: 12px; padding: 10px; text-decoration: none; color: inherit; transition: background-color .15s; }
.beach-mini:hover { background: var(--ground-2); }
.beach-mini img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.beach-mini div { display: grid; gap: 3px; justify-items: start; }
.beach-mini b { font-size: 1.08rem; font-weight: 800; }
.beach-mini small { color: var(--muted); font-weight: 600; }
.xbadge.lvl-great { background: #047857; color: #fff; }
.xbadge.lvl-good { background: #00a3ae; color: #04191d; }
.xbadge.lvl-fair { background: var(--muni); color: var(--muni-ink); }
.xbadge.lvl-poor { background: #b91c1c; color: #fff; }
.beach-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 6px; }
.beach-stats span { background: var(--ground-2); border-radius: 8px; padding: 7px 6px; text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); }
.beach-stats b { display: block; font-size: 1.02rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.elev { width: 100%; height: 70px; display: block; background: var(--ground-2); border-radius: 8px; }
.warn-box { margin-top: 22px; background: var(--surface); border-radius: 12px; padding: 16px 18px; }
.warn-box h2 { margin-top: 0; }
.warn-item { display: flex; gap: 10px; align-items: flex-start; background: #fdebd3; color: #5a2a06; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
:root[data-theme="dark"] .warn-item { background: #3d2410; color: #ffd9b4; }
.warn-item svg { flex: none; margin-top: 2px; }
.tp-sec { margin-bottom: 56px; }
.tp-sec .h2 { display: flex; align-items: center; gap: 12px; }
.tp-sec .h2 svg { width: 1em; height: 1em; color: var(--accent); }
.taxi-list, .sity-list { display: grid; gap: 8px; margin-top: 14px; }
@media (min-width: 900px) { .taxi-list, .sity-list { grid-template-columns: 1fr 1fr; } }
.taxi { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; background: var(--surface); border-radius: 10px; padding: 12px 14px; }
.taxi b { flex: 1 1 100%; font-size: 1.02rem; }
.taxi span { color: var(--ink-2); }
#cr-form input { border: 0; background: var(--ground-2); border-radius: 10px; padding: 10px 12px; font-weight: 700; color: var(--ink); margin-top: 4px; }
.ferry-week { margin-top: 10px; } .ferry-week summary { cursor: pointer; font-weight: 700; color: var(--accent); } .ferry-week p { margin: 4px 0; }
.beach-stats { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); } .beach-stats b { white-space: nowrap; font-size: .98rem; }

/* ---------- Páginas para Google (estáticas) ---------- */
.static-page .bar { position: sticky; }
.static-main { max-width: 860px; padding-top: 18px; padding-bottom: 50px; }
.crumbs { font-size: .9rem; color: var(--muted); margin: 6px 0 18px; }
.crumbs a { color: inherit; }
.static-art .lead { max-width: 60ch; }
.static-art p { font-size: 1.08rem; line-height: 1.6; max-width: 66ch; }
.static-fig { margin: 22px 0; }
.static-fig img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); }
.static-fig figcaption { font-size: .75rem; margin-top: 4px; }
.static-fig figcaption a { color: var(--muted); }
.static-stops { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.static-stops li { background: var(--surface); border-radius: 10px; padding: 12px 14px; }
.static-stops .lbs { margin-top: 6px; }
.static-stops a.lb, .dir-list a .lb { text-decoration: none; }
.static-dir { background: var(--surface); border-radius: 12px; padding: 16px 18px; margin: 18px 0; }
.static-dir details summary { cursor: pointer; font-weight: 700; color: var(--accent); margin-top: 8px; }
.static-stoplist { columns: 2 220px; padding-left: 22px; }
.dir-list { list-style: none; padding: 0; columns: 2 260px; gap: 30px; }
.dir-list li { break-inside: avoid; padding: 5px 0; }
.dir-list a { text-decoration: none; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.dir-list a:hover { text-decoration: underline; }

/* Pantalla de ruta: búsqueda plegada, opciones primero */
.plan-head { padding-top: 14px; padding-bottom: 6px; }
.plan-edit > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 750; padding: 9px 14px; border-radius: 999px; background: var(--ground-3, #e7eeee); }
.plan-edit > summary::-webkit-details-marker { display: none; }
.plan-edit > summary svg { width: 18px; height: 18px; }
.plan-edit[open] > summary { margin-bottom: 14px; }
.plan-sec { font-size: 1.05rem; font-weight: 850; margin: 26px 0 10px; }
.route-sum { display: block; }
.route-sum h1 { margin: 0 0 4px; }
.route-sum p { margin: 0; }
.more-opts { margin-top: 10px; }
.plan-layout .booking-box { margin-top: 20px; }
.back-box { margin-top: 8px; }
.back-box p { margin: 0 0 8px; }
