:root {
  --sea: #0E6E8C;
  --sea-dark: #0A5068;
  --sierra: #2F7D4F;
  --sand: #F6EFE3;
  --bg: #FBF8F3;
  --card: #FFFFFF;
  --text: #1E2A30;
  --muted: #5E6B72;
  --line: #E6DED2;
  --gris-bg: #EEF1F3; --gris-fg: #44525A; --gris-bd: #C9D1D6;
  --amar-bg: #FFF5D6; --amar-fg: #7A5800; --amar-bd: #F0CF6A;
  --roja-bg: #FDE7E5; --roja-fg: #9B1C14; --roja-bd: #F0A39C;
  --radius: 16px;
  --tabs-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F171B; --card: #172328; --text: #E8EEF0; --muted: #9DB0B8; --line: #26363D;
    --sand: #1B2A30; --sea: #3BA6C7; --sea-dark: #2B8AA8; --sierra: #5BBF83;
    --gris-bg: #1F2A2F; --gris-fg: #C3CFD4; --gris-bd: #33434A;
    --amar-bg: #33290C; --amar-fg: #F4D37A; --amar-bd: #6B5714;
    --roja-bg: #3A1513; --roja-fg: #FFB1A9; --roja-bd: #7A2A24;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0F171B; --card: #172328; --text: #E8EEF0; --muted: #9DB0B8; --line: #26363D;
    --sand: #1B2A30; --sea: #3BA6C7; --sea-dark: #2B8AA8; --sierra: #5BBF83;
    --gris-bg: #1F2A2F; --gris-fg: #C3CFD4; --gris-bd: #33434A;
    --amar-bg: #33290C; --amar-fg: #F4D37A; --amar-bd: #6B5714;
    --roja-bg: #3A1513; --roja-fg: #FFB1A9; --roja-bd: #7A2A24;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.45; font-size: 16px;
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--sea); }
button { font: inherit; color: inherit; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.brand img { border-radius: 8px; }
.lang { display: flex; gap: 4px; }
.lang button {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 4px 10px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: #fff; }

main { padding: 16px; max-width: 720px; margin: 0 auto; outline: none; }
h1 { font-size: 24px; margin: 4px 0 4px; }
h2 { font-size: 19px; margin: 22px 0 8px; }
h3 { font-size: 16px; margin: 0 0 4px; }
.sub { color: var(--muted); margin: 0 0 14px; }
.small { font-size: 13px; color: var(--muted); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin: 0 0 12px;
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 6px 14px; cursor: pointer; font-size: 14px;
}
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.event { display: grid; grid-template-columns: 58px 1fr; gap: 12px; }
.date-box {
  background: var(--sand); border-radius: 12px; text-align: center; padding: 6px 0;
  align-self: start;
}
.date-box .d { font-size: 22px; font-weight: 800; line-height: 1.1; }
.date-box .m { font-size: 12px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.meta { margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; }
.meta li { margin: 2px 0; }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--sand); color: var(--muted); font-weight: 600; margin-right: 4px; }
.tag.est { background: var(--amar-bg); color: var(--amar-fg); }
.src { font-size: 12px; color: var(--muted); margin-top: 8px; }
.src a { color: var(--muted); }

.empty { text-align: center; color: var(--muted); padding: 22px 8px; }

/* Arma tu viaje */
.zone { border-left: 6px solid var(--zc, var(--sea)); }
.zone-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.zone-head .emo { font-size: 26px; }
.act {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 0;
  border-top: 1px solid var(--line); cursor: pointer;
}
.act:first-of-type { border-top: 0; }
.act input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--sea); }
.act .dur { margin-left: auto; flex: none; font-size: 12px; color: var(--muted); white-space: nowrap; }
.info { background: var(--sand); border-radius: 12px; padding: 10px; font-size: 14px; margin-top: 8px; }

.summary-bar {
  position: sticky; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 8px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--sea); color: #fff; border-radius: var(--radius); padding: 12px 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.18); margin-top: 12px;
}
.btn {
  border: 0; border-radius: 12px; padding: 10px 16px; font-weight: 700; cursor: pointer;
  background: var(--sea); color: #fff;
}
.btn.light { background: #fff; color: var(--sea-dark); }
.btn.ghost { background: transparent; color: var(--sea); border: 1px solid var(--sea); }
.btn:disabled { opacity: .5; }

.day { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.day:first-child { border-top: 0; }
.day .n { font-weight: 800; color: var(--sea); font-size: 14px; }
.leg { background: var(--sand); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.leg-title { font-weight: 700; margin-bottom: 6px; }
.opt { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; padding: 8px 0; border-top: 1px dashed var(--line); }
.opt:first-of-type { border-top: 0; }
.opt .mi { font-size: 22px; }
.opt .pr { font-weight: 700; text-align: right; white-space: nowrap; }
.opt .pr small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
details summary { cursor: pointer; color: var(--sea); font-size: 14px; margin-top: 4px; }

/* Alertas */
.alert { border-width: 1px 1px 1px 6px; border-style: solid; }
.alert.gris { background: var(--gris-bg); color: var(--gris-fg); border-color: var(--gris-bd); }
.alert.amarilla { background: var(--amar-bg); color: var(--amar-fg); border-color: var(--amar-bd); }
.alert.roja { background: var(--roja-bg); color: var(--roja-fg); border-color: var(--roja-bd); }
.alert .lvl { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.alert .src a, .alert .src { color: inherit; opacity: .85; }
.legend { display: grid; gap: 6px; font-size: 14px; }
.legend span { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.alert-strip {
  margin: 10px 16px 0; padding: 10px 12px; border-radius: 12px; font-size: 14px; cursor: pointer;
  background: var(--amar-bg); color: var(--amar-fg); border: 1px solid var(--amar-bd);
}
.alert-strip.roja { background: var(--roja-bg); color: var(--roja-fg); border-color: var(--roja-bd); }

.install {
  margin: 10px 16px 0; padding: 12px; border-radius: 12px; font-size: 14px;
  background: var(--card); border: 1px solid var(--line); display: flex; gap: 10px; align-items: center;
}
.install .x { margin-left: auto; background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--muted); }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabs-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--card); border-top: 1px solid var(--line);
}
.tabs button {
  border: 0; background: none; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; font-size: 12px; color: var(--muted); position: relative;
}
.tabs .ico { font-size: 22px; }
.tabs button[aria-current="page"] { color: var(--sea); font-weight: 700; }
.badge {
  position: absolute; top: 8px; left: calc(50% + 8px);
  background: #D33; color: #fff; border-radius: 999px; font-size: 11px; padding: 0 6px; font-weight: 700;
}
.foot { text-align: center; font-size: 12px; color: var(--muted); padding: 8px 16px 20px; }

/* ---------- v2: mapa, lugares y fichas ---------- */
.map { height: 42vh; min-height: 260px; border-radius: var(--radius); border: 1px solid var(--line); margin: 0 0 12px; overflow: hidden; background: var(--sand); z-index: 0; }
.leaflet-container { font: inherit; }
.select { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; margin-bottom: 8px; }
.plist { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .plist { grid-template-columns: 1fr 1fr; } }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pthumb { display: grid; place-items: center; height: 150px; border: 0; padding: 0; cursor: pointer; width: 100%;
  background: var(--sand) center/cover no-repeat; font-size: 34px; }
.pthumb.has span { display: none; }
.pthumb.sm { width: 64px; height: 64px; border-radius: 12px; font-size: 24px; flex: none; }
.pbody { padding: 12px 14px 14px; display: grid; gap: 4px; min-width: 0; }
.pbody p { margin: 2px 0 6px; }
.prow { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.sm { padding: 7px 12px; font-size: 14px; border-radius: 10px; }
.btn.on { background: var(--sierra); color: #fff; border: 1px solid var(--sierra); }
a.btn { text-decoration: none; display: inline-block; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.linkish:hover { color: var(--sea); }
.pop { display: grid; gap: 6px; width: 210px; }
.pop-img { height: 110px; border-radius: 8px; background: var(--sand) center/cover no-repeat; }
.pline { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.pline > div { min-width: 0; }
.zone-head .n { font-weight: 800; color: var(--sea); font-size: 14px; }
body.noscroll { overflow: hidden; }
.sheet { position: fixed; inset: 0; z-index: 1000; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.sheet-card { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; background: var(--bg);
  border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); max-width: 760px; margin: 0 auto; }
@media (min-width: 800px) { .sheet-card { top: 4vh; bottom: 4vh; border-radius: 20px; } }
.sheet-x { position: sticky; top: 8px; float: right; margin: 8px 8px 0 0; z-index: 2; width: 36px; height: 36px; border-radius: 999px; border: 0;
  background: rgba(0,0,0,.55); color: #fff; font-size: 22px; cursor: pointer; }
.sheet-body { padding: 4px 16px 24px; }
.sheet-body h2 { margin: 12px 0 4px; font-size: 22px; }
.sheet-body h3 { margin: 18px 0 6px; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; background: var(--sand); }
.gallery .ph { flex: 0 0 88%; scroll-snap-align: start; margin: 0; height: 260px; position: relative; display: grid; place-items: center; font-size: 40px; }
.gallery .ph:only-child { flex-basis: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery figcaption { color: #fff; position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; padding: 4px 8px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.gallery figcaption a { color: #fff; text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.todo { margin: 0; padding-left: 20px; }
.todo li { margin: 3px 0; }

/* v3: actividades clicables y "Qué hacer por ahí" */
.acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.act { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.act:hover, .act:focus-visible { border-color: var(--sea); }
.act > span:last-child { color: var(--muted); font-size: 20px; }
.sheet2 { z-index: 1100; }
.map.sm { height: 220px; border-radius: 12px; }
.gallery.one .ph { flex-basis: 100%; }

/* v4: Mi cuenta */
.tabs button { min-width: 0; font-size: 11px; text-align: center; line-height: 1.2; }
.input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; margin: 4px 0; box-sizing: border-box; }
.row-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.row-form .input { flex: 1 1 160px; margin: 0; }
.row-form .input.num { flex: 0 1 120px; }
.acct-head { display: flex; align-items: center; gap: 12px; }
.acct-head > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.acct-head img, .acct-head .avatar { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: var(--sand); font-size: 22px; }
.plan-item.past { opacity: .7; }
.exp { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.exp.total { border-bottom: 0; }
.consent { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 12px; font-size: 14px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.btn.google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.or { text-align: center; margin: 14px 0 6px; color: var(--muted); font-size: 13px; }
/* v5: planificador multiparada (línea de tiempo) y alertas automáticas */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px; text-align: center; min-width: 0; }
.stat b { display: block; font-size: 20px; color: var(--sea); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; }

.plan-ctl { gap: 10px; }
.plan-ctl .select { margin: 0 0 0 4px; width: auto; display: inline-block; max-width: 180px; }
.timeline { position: relative; margin: 14px 0; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: linear-gradient(var(--sea), #E8553D); opacity: .5; }
.tl-origin { position: relative; margin: 0 0 10px; font-size: 14px; }
.tl-stop, .tl-leg, .tl-origin { animation: tlIn .35s ease both; }
.tl-stop { position: relative; display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; margin: 0 0 10px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.tl-stop::before, .tl-origin::before { content: ""; position: absolute; left: -17px; top: 16px; width: 11px; height: 11px; border-radius: 50%; background: var(--sea); border: 2px solid var(--bg); }
.tl-origin::before { top: 4px; background: #E8553D; }
.tl-body { flex: 1; min-width: 0; }
.tl-day { font-size: 12px; font-weight: 800; color: #E8553D; text-transform: uppercase; letter-spacing: .04em; }
.tl-move { display: flex; flex-direction: column; gap: 4px; }
.tl-move .btn { padding: 4px 9px; min-width: 34px; }
.stepper { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 14px; font-weight: 600; }
.stepper .btn { padding: 2px 10px; min-width: 32px; }
.tl-leg { margin: 0 0 10px; padding: 8px 10px; border-left: 3px dashed var(--line); background: transparent; }
.tl-leg-head { font-size: 14px; margin-bottom: 4px; }
.tl-leg .live { margin: 2px 0 6px; }
.tl-leg .opts summary { cursor: pointer; font-weight: 700; color: var(--sea); font-size: 14px; padding: 4px 0; }
.tl-links { margin-top: 4px; }
.alert.auto { border-left-style: dashed; }
.alert.auto a { color: inherit; text-decoration: underline; }
@keyframes tlIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tl-stop, .tl-leg, .tl-origin { animation: none; } }
.chip-alert { display: block; font-size: 13px; padding: 4px 10px; border-radius: 10px; margin: 4px 0; text-decoration: none; border: 1px solid; }
.chip-alert.amarilla { background: var(--amar-bg); color: var(--amar-fg); border-color: var(--amar-bd); }
.chip-alert.roja { background: var(--roja-bg); color: var(--roja-fg); border-color: var(--roja-bd); }
.chip-alert em { opacity: .8; }
/* v6: guardados, compartir y hospedaje */
.pthumb-wrap { position: relative; }
.pthumb-wrap .pthumb { width: 100%; }
.heart { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 19px; line-height: 38px; text-align: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: transform .15s; padding: 0; }
.heart:active { transform: scale(1.25); }
.heart.on { animation: pop .3s ease; }
.heart.big { position: static; flex: none; }
@keyframes pop { 50% { transform: scale(1.3); } }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.title-row h2 { margin: 0; }
.tl-stop .heart { position: static; flex: none; width: 34px; height: 34px; line-height: 34px; font-size: 16px; }
.big-cta { width: 100%; font-size: 18px; padding: 16px; margin: 6px 0 10px; background: linear-gradient(135deg, #E8553D, #F2A541); border: 0; color: #fff; box-shadow: 0 6px 18px rgba(232,85,61,.35); }
.big-cta small { font-weight: 500; opacity: .9; }
.coll { margin: 18px 0 8px; }
.saved-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.scard { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.scard .pthumb { width: 100%; height: 110px; border-radius: 0; }
.scard-b { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.scard .heart { width: 34px; height: 34px; line-height: 34px; font-size: 16px; top: 6px; right: 6px; }
.add-stop .chips { margin: 8px 0; }
.save-share h3 { margin: 6px 0; }
.btn.wa { background: #25D366; border-color: #25D366; color: #fff; }
.lodge { margin-top: 6px; }
.lodge summary { cursor: pointer; font-weight: 700; color: var(--sea); font-size: 14px; }
.lodge-links { margin: 8px 0; }
.lodge-list { margin: 6px 0; padding-left: 4px; list-style: none; font-size: 14px; }
.lodge-list li { padding: 3px 0; border-bottom: 1px dashed var(--line); }
.chip.static { cursor: default; }
.input.date { width: auto; display: inline-block; margin: 0 0 0 4px; }

/* =================== v7: diseño caribe (más color, fotos grandes y movimiento) =================== */
[hidden] { display: none !important; }
:root {
  --sea: #0A8F9E; --sea-dark: #066C78; --coral: #FF6B4A; --sun: #FFC145; --deep: #0B3954;
  --bg: #FFF9F1; --sand: #F7EBDA; --line: #EEDFCB; --radius: 20px;
  --grad: linear-gradient(135deg, #0A8F9E 0%, #11B5A4 45%, #FFC145 100%);
  --grad-warm: linear-gradient(135deg, #FF6B4A, #FFC145);
  --shadow: 0 8px 24px rgba(11,57,84,.12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --sea: #3CC4CF; --sea-dark: #23A3AE; --bg: #0B1A21; --card: #12252E; --sand: #183039; --line: #21404B; --shadow: 0 8px 24px rgba(0,0,0,.4); }
}
:root[data-theme="dark"] { --sea: #3CC4CF; --sea-dark: #23A3AE; --bg: #0B1A21; --card: #12252E; --sand: #183039; --line: #21404B; --shadow: 0 8px 24px rgba(0,0,0,.4); }
h1, h2, .brand, .hero h1, .btn, .fchip, .tabs .lbl { font-family: "Poppins", -apple-system, "Segoe UI", Roboto, sans-serif; }
h1 { font-weight: 800; letter-spacing: -.01em; }
h2 { font-weight: 700; }

.topbar { background: var(--grad); border: 0; color: #fff; box-shadow: 0 4px 16px rgba(10,143,158,.25); }
.brand img { box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.lang button { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(6px); }
.lang button[aria-pressed="true"] { background: #fff; color: var(--sea-dark); border-color: #fff; }

/* entrada suave de cada vista */
#view > * { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
#view > *:nth-child(2) { animation-delay: .04s; } #view > *:nth-child(3) { animation-delay: .08s; }
#view > *:nth-child(4) { animation-delay: .12s; } #view > *:nth-child(5) { animation-delay: .16s; }
#view > *:nth-child(n+6) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* portada */
.hero { position: relative; margin: -16px -16px 14px; padding: 40px 20px 24px; min-height: 270px; display: flex; align-items: flex-end;
  background: var(--grad) center/cover no-repeat; color: #fff; border-radius: 0 0 28px 28px; overflow: hidden; }
.hero.has { animation: heroZoom 1.2s ease both; }
@keyframes heroZoom { from { background-size: 115%; } to { background-size: cover; } }
.hero-in { width: 100%; }
.hero .kicker { margin: 0; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .95; }
.hero h1 { font-size: 34px; line-height: 1.1; margin: 6px 0 6px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero p { margin: 0 0 14px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 4px 6px 4px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.search input { flex: 1; border: 0; outline: 0; font: inherit; padding: 10px 4px; background: transparent; color: #1E2A30; min-width: 0; }

/* filtros combinables */
.fchips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
.fchips::-webkit-scrollbar { display: none; }
.fchip { flex: none; scroll-snap-align: start; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px;
  padding: 8px 14px; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; }
.fchip:active { transform: scale(.94); }
.fchip[aria-pressed="true"] { background: var(--grad-warm); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(255,107,74,.35); }
.tools { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.select.sm { margin: 0; padding: 8px 10px; font-size: 14px; flex: 1; border-radius: 999px; }
.tools .btn { flex: none; border-radius: 999px; }
.count { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.clear { color: var(--coral) !important; font-weight: 700; }

/* carruseles y tarjetas con foto */
.row { margin: 6px -16px 8px; }
.row-h { display: flex; justify-content: space-between; align-items: baseline; padding: 0 16px; }
.row-h h2 { margin: 14px 0 8px; font-size: 20px; }
.row-h .linkish { color: var(--sea); font-weight: 700; }
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 14px; scroll-padding: 16px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.ccard { position: relative; flex: 0 0 78%; max-width: 320px; scroll-snap-align: start; background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s; }
.ccard:active { transform: scale(.98); }
.ccard.wide { flex: none; max-width: none; }
.cgrid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cgrid { grid-template-columns: 1fr 1fr; } }
.cphoto { height: 230px; border-radius: 0; font-size: 44px; transition: transform .6s ease; }
.ccard:hover .cphoto { transform: scale(1.04); }
.cover { position: absolute; left: 0; right: 0; top: 0; height: 230px; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, transparent 40%, rgba(5,30,45,.82)); color: #fff; cursor: pointer; pointer-events: auto; }
.cover h3 { font-size: 21px; margin: 4px 0 0; line-height: 1.15; text-shadow: 0 2px 8px rgba(0,0,0,.4); font-family: "Poppins", sans-serif; }
.cmeta { font-size: 13px; opacity: .92; }
.ccard .heart { z-index: 2; }
.ptags { display: flex; gap: 6px; flex-wrap: wrap; }
.ptag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--deep); }
.ptags.inline { margin: 4px 0; }
.ptags.inline .ptag { background: var(--sand); color: var(--text); }
.cfoot { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; flex: 1; }
.cfoot p { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cfoot .btn { margin-top: auto; }
.evlink { display: block; text-decoration: none; color: inherit; background: var(--grad-warm); color: #fff; border: 0; }
.carousel.mini { padding: 6px 0 2px; margin: 0; }
.mini-card { flex: 0 0 140px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; }
.mini-card .pthumb { height: 90px; border-radius: 14px; }

/* botones y tarjetas */
.btn { border-radius: 14px; transition: transform .12s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(.96); }
.btn:not(.ghost):not(.light):not(.on):not(.wa) { background: var(--grad); box-shadow: 0 4px 14px rgba(10,143,158,.3); }
.btn.on { background: var(--sierra); }
.card { border-radius: var(--radius); box-shadow: 0 2px 10px rgba(11,57,84,.05); }
.summary-bar { background: var(--deep); border-radius: 22px; box-shadow: 0 10px 30px rgba(11,57,84,.35); animation: rise .4s ease both; }
.summary-bar .small { color: #CDE9EE; }
.summary-bar .btn.light { background: var(--grad-warm); color: #fff; box-shadow: 0 4px 14px rgba(255,107,74,.4); }

/* barra de pestañas flotante */
.tabs { left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); height: var(--tabs-h); padding: 0 4px; border-radius: 22px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(11,57,84,.18); max-width: 560px; margin: 0 auto; }
body { padding-bottom: calc(var(--tabs-h) + 24px + env(safe-area-inset-bottom)); }
.tabs button { border-radius: 16px; margin: 6px 2px; transition: color .2s, background .25s; }
.tabs .ico { font-size: 20px; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.tabs button[aria-current="page"] { background: color-mix(in srgb, var(--sea) 14%, transparent); color: var(--sea); }
.tabs button[aria-current="page"] .ico { transform: translateY(-2px) scale(1.15); }
.summary-bar { bottom: calc(var(--tabs-h) + 18px + env(safe-area-inset-bottom)); }

/* ficha (hoja que sube) */
.sheet:not([hidden]) .sheet-card { animation: sheetUp .35s cubic-bezier(.2,.9,.25,1) both; }
.sheet:not([hidden]) .sheet-bg { animation: fadeIn .25s ease both; }
@keyframes sheetUp { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.gallery .ph { height: 300px; }
.sheet-card { border-radius: 26px 26px 0 0; }

/* qué pasa hoy */
.event { box-shadow: var(--shadow); border: 0; }
.date-box { background: var(--grad-warm); color: #fff; }
.date-box .m { color: #fff; opacity: .9; }
.chip[aria-pressed="true"] { background: var(--grad-warm); color: #fff; border-color: transparent; }

/* planificador */
.stat { border: 0; box-shadow: var(--shadow); }
.stat b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tl-stop { border: 0; box-shadow: var(--shadow); }
.alert-strip, .install { margin: 10px 16px 0; border-radius: 16px; }
@media (prefers-reduced-motion: reduce) { #view > *, .hero.has, .sheet-card, .summary-bar { animation: none !important; } }

/* Aviso de enlaces de afiliado */
.aff-note{margin:.35rem 0 0;opacity:.75}
.aff-mark{font-weight:700}
/* v9: selector de idioma con banderas */
.lang { position: relative; }
.lang-btn { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.18); color: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; cursor: pointer; backdrop-filter: blur(6px); }
.flag { font-size: 16px; line-height: 1; vertical-align: -2px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; list-style: none; margin: 0; padding: 6px; min-width: 170px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.2); animation: rise .2s ease both; }
.lang-menu button { width: 100%; display: flex; gap: 10px; align-items: center; padding: 9px 10px; border: 0; background: none; color: var(--text); border-radius: 10px; font-size: 15px; cursor: pointer; text-align: left; }
.lang-menu button:hover, .lang-menu button[aria-selected="true"] { background: var(--sand); font-weight: 700; }
/* v10: hospedaje recomendado */
.stay-prof { align-items: center; flex-wrap: wrap; }
.stay-prof .chip.on { background: var(--sea); color: #fff; border-color: var(--sea); }
.stay-sum { display: block; font-weight: 600; font-size: 13px; color: var(--ink, #1d2b36); margin-top: 3px; }
.stay-picks { display: grid; gap: 8px; margin: 8px 0 4px; }
@media (min-width: 640px) { .stay-picks { grid-template-columns: 1fr 1fr; } }
.stay-card { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--card, #fff); }
.stay-card.on { border-color: var(--sea); box-shadow: 0 0 0 2px color-mix(in srgb, var(--sea) 25%, transparent); }
.stay-badge { font-size: 12px; font-weight: 700; color: var(--sea); margin-bottom: 2px; }
.stay-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; margin-top: 4px; }
.stay-score { font-weight: 700; }
.stay-card .actions { margin-top: 8px; }
.stay-more { margin-top: 8px; font-weight: 600; }
/* v11: eventos */
.ev-filters { flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 6px 0 10px; }
.ev-filters .select { max-width: 200px; display: inline-block; width: auto; }
.org-form { display: grid; gap: 8px; margin-top: 18px; }
.org-form .row-form { gap: 8px; }
.stop-ev { margin-top: 6px; } .stop-ev summary { cursor: pointer; font-weight: 700; color: var(--coral, #E8604C); font-size: 14px; }
.stop-ev .small { padding: 3px 0; }
/* v13: guía cómo llegar */
.guide { margin: 14px 0; display: grid; gap: 8px; }
.guide .select { max-width: 200px; display: inline-block; width: auto; }
.g-steps { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 10px; }
.g-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; font-size: 14px; line-height: 1.45; }
.g-ic { font-size: 20px; text-align: center; }
.g-map { height: 260px; border-radius: 14px; }
.g-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.g-search .input { flex: 1 1 200px; margin: 0; }
.g-list { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 4px; }
.linkbtn { background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; width: 100%; text-align: left; color: var(--text); font: inherit; cursor: pointer; }
.linkbtn:hover { border-color: var(--accent, #0A8F9E); }
.guide .select { max-width: 100%; }
.tag.ok { background: #DDF3E4; color: #1E7B3A; }
.opt.drivers ul { margin: 4px 0; padding-left: 18px; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.dstat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; text-align: center; }
.dstat span { font-size: 20px; } .dstat strong { font-size: 18px; } .dstat small { font-size: 11px; color: var(--muted); line-height: 1.2; }
.info-list { display: grid; gap: 8px; } .info-list > div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.info-list .btn { justify-self: start; }
@media (max-width: 340px) { .dash-stats { grid-template-columns: repeat(2, 1fr); } }
.alert-strip { display: flex; align-items: center; gap: 8px; }
.alert-strip .strip-txt { flex: 1; }
.strip-x { background: none; border: 0; font-size: 22px; line-height: 1; color: inherit; cursor: pointer; padding: 2px 6px; }
.gates { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.gates li { display: flex; gap: 10px; align-items: flex-start; }
.gdot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; flex: none; background: #2E9E5B; }
.gdot.closed { background: #D64545; }
.tay-tip { margin: 6px 0; } .tay-tip summary { cursor: pointer; font-weight: 600; }
.fair-t { width: 100%; border-collapse: collapse; margin: 6px 0; }
.fair-t td { padding: 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fair-t td:last-child { text-align: right; white-space: nowrap; padding-left: 10px; }
.fair-t tr.old td { color: var(--muted); }

.stay-note{margin:8px 0;padding:8px 10px;border-radius:10px;background:var(--soft,#eef5f3);font-size:.9rem;line-height:1.35}
.stay-cap{margin:4px 0 10px;opacity:.85}
.legend{margin:8px 0;text-align:left;font-size:.85rem}
.legend summary{cursor:pointer}
.legend ul{margin:6px 0 0;padding-left:18px}

.alert-strip:not(.roja){background:rgba(240,190,60,.14);color:inherit;border-color:rgba(240,190,60,.35);font-size:.88rem;opacity:.95}
.ev-genre{margin:4px 0;font-size:.92rem}
.ev-desc{margin:4px 0 6px;font-size:.92rem;line-height:1.4}
.ev-link{font-weight:600}
.ev-cats{margin-top:6px}

.authdiag{margin:8px 0;opacity:.8}.authdiag pre{white-space:pre-wrap;font-size:.75rem;margin:4px 0}
.opt-det p{margin:4px 0}
.it-day{border-left:3px solid var(--turquesa,#0E6E8C);padding:2px 0 2px 10px;margin:10px 0}
.it-n{font-weight:700}.it-day ul{margin:4px 0;padding-left:18px}.it-day li{margin:4px 0}
.plan-ev-row{display:flex;gap:10px;justify-content:space-between;align-items:flex-start;padding:8px 0;border-top:1px solid #0001}
.input.time{width:auto;padding:2px 6px}
.bud-total{font-size:1.15rem;margin:10px 0}.budget ul{padding-left:18px}
.ev-plan{margin:6px 0}.exc{display:block;margin:6px 0}
.loc-card{margin:10px 0}.far-warn{margin:8px 0}.near-row{margin:8px 0}.travel-card h4{margin:8px 0 2px}

.loc-search{position:relative;margin:8px 0}.loc-search input{width:100%;box-sizing:border-box;font-size:16px}.loc-sug{list-style:none;margin:2px 0 0;padding:0;border:1px solid var(--line,#ccc);border-radius:10px;background:var(--card,#fff);position:static;box-shadow:0 6px 18px rgba(0,0,0,.15);max-height:240px;overflow:auto;-webkit-overflow-scrolling:touch}.loc-sug[hidden]{display:none}.loc-sug li{padding:12px;cursor:pointer;border-bottom:1px solid rgba(0,0,0,.06)}.loc-sug li.on,.loc-sug li:hover{background:rgba(0,120,160,.12)}
.mytrip{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:8px 0}.mytrip .chip{display:inline-flex;align-items:center;gap:6px}.mytrip .x{border:0;background:rgba(0,0,0,.12);border-radius:50%;width:24px;height:24px;cursor:pointer;font-size:13px;line-height:1}.sug-days{margin:6px 0}
.opts{list-style:none;margin:8px 0;padding:0}.opt-li{display:flex;gap:10px;align-items:flex-start;padding:10px;border:1px solid rgba(0,0,0,.1);border-radius:12px;margin:8px 0;background:var(--card,#fff)}.opt-li.chosen{border-color:#13a89e;background:rgba(19,168,158,.08)}.opt-check{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:64px;font-size:12px;text-align:center;cursor:pointer}.opt-check input{width:26px;height:26px;accent-color:#13a89e}.opt-body{flex:1;min-width:0}.tag.sug{background:#ffe9a8;color:#5a4300}.stop-opts{margin:8px 0}
.fee-table{width:100%;border-collapse:collapse;font-size:14px}.fee-table th,.fee-table td{padding:8px;border-bottom:1px solid rgba(0,0,0,.1);text-align:left}.fee-table tr.me{background:rgba(19,168,158,.12);font-weight:600}
.book-row{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.hike-table{width:100%;border-collapse:collapse;font-size:14px}.hike-table th{text-align:left;width:34%;padding:6px 8px;color:var(--muted,#555);font-weight:600;vertical-align:top}.hike-table td{padding:6px 8px}.hike-table tr{border-bottom:1px solid rgba(0,0,0,.08)}

.aff-foot{font-size:.8em;opacity:.75}

.trust{opacity:.85;margin:.35rem 0 .6rem}

.tag.good{background:#d9f3e4;color:#0b5a2b;font-weight:700}
@media (prefers-color-scheme: dark){.tag.good{background:#12402a;color:#bff0d2}}

.date-box .rel{font-size:.62rem;font-weight:700;text-transform:uppercase;opacity:.9}
