/* =========================================================
   Familia Padilla en Nueva York
   Paleta: verde pátina de la Estatua de la Libertad + cobre
   Estilo: paneles de vidrio, serif editorial
   ========================================================= */

:root {
  --bg: #E7EEEB;
  --mesh-1: rgba(111, 176, 162, .55);
  --mesh-2: rgba(168, 110, 69, .16);
  --mesh-3: rgba(74, 94, 120, .18);
  --glass: rgba(255, 255, 255, .56);
  --glass-2: rgba(255, 255, 255, .74);
  --glass-border: rgba(255, 255, 255, .78);
  --hair: rgba(15, 37, 35, .09);
  --hair-2: rgba(15, 37, 35, .16);
  --ink: #0F2523;
  --ink-2: #33504B;
  --muted: #6A807B;
  --accent: #2F7F73;
  --accent-hi: #3E9A8B;
  --accent-lo: #1D5A51;
  --accent-2: #7FB8AC;
  --accent-soft: rgba(47, 127, 115, .10);
  --copper: #A86E45;
  --copper-hi: #C4895C;
  --copper-soft: rgba(168, 110, 69, .12);
  --deep: #0E2B27;
  --deep-2: #163C37;
  --on-deep: #EAF3F0;
  --on-deep-2: rgba(234, 243, 240, .64);
  --on-deep-3: rgba(234, 243, 240, .38);
  --on-deep-hair: rgba(234, 243, 240, .12);
  --ok: #2F7F73; --ok-soft: rgba(47, 127, 115, .12);
  --warn: #8F622B; --warn-soft: rgba(168, 110, 69, .13);
  --bad: #9C4840; --bad-soft: rgba(156, 72, 64, .11);
  --shine: rgba(255, 255, 255, .55);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 22px 44px -26px rgba(14, 43, 39, .32), 0 2px 6px -3px rgba(14, 43, 39, .08);
  --shadow-hover: inset 0 1px 0 rgba(255, 255, 255, .7), 0 30px 60px -28px rgba(14, 43, 39, .45), 0 4px 10px -4px rgba(14, 43, 39, .10);
  --shadow-lg: 0 40px 100px -30px rgba(8, 25, 22, .55);
  --blur: saturate(160%) blur(22px);
  --r: 24px;
  --r-sm: 16px;
  --serif: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.22, .7, .18, 1);
  --header-h: 68px;
  --bottom-h: 0px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07110F;
    --mesh-1: rgba(38, 112, 100, .42);
    --mesh-2: rgba(140, 86, 48, .20);
    --mesh-3: rgba(52, 74, 104, .30);
    --glass: rgba(255, 255, 255, .055);
    --glass-2: rgba(255, 255, 255, .085);
    --glass-border: rgba(255, 255, 255, .10);
    --hair: rgba(255, 255, 255, .08);
    --hair-2: rgba(255, 255, 255, .15);
    --ink: #EAF3F0;
    --ink-2: #BCD0CB;
    --muted: #85A09A;
    --accent: #6FBFAE;
    --accent-hi: #8AD3C3;
    --accent-lo: #2F7F73;
    --accent-2: #8AD3C3;
    --accent-soft: rgba(111, 191, 174, .12);
    --copper: #D49C6C;
    --copper-hi: #E4B285;
    --copper-soft: rgba(212, 156, 108, .14);
    --deep: #0B2421;
    --deep-2: #12332F;
    --ok: #6FBFAE; --ok-soft: rgba(111, 191, 174, .13);
    --warn: #D9A86E; --warn-soft: rgba(212, 156, 108, .14);
    --bad: #E08A80; --bad-soft: rgba(224, 138, 128, .13);
    --shine: rgba(255, 255, 255, .14);
    --shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 22px 44px -26px rgba(0, 0, 0, .7);
    --shadow-hover: inset 0 1px 0 rgba(255, 255, 255, .09), 0 30px 60px -26px rgba(0, 0, 0, .85);
    --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07110F; --mesh-1: rgba(38,112,100,.42); --mesh-2: rgba(140,86,48,.20); --mesh-3: rgba(52,74,104,.30);
  --glass: rgba(255,255,255,.055); --glass-2: rgba(255,255,255,.085); --glass-border: rgba(255,255,255,.10);
  --hair: rgba(255,255,255,.08); --hair-2: rgba(255,255,255,.15);
  --ink: #EAF3F0; --ink-2: #BCD0CB; --muted: #85A09A;
  --accent: #6FBFAE; --accent-hi: #8AD3C3; --accent-lo: #2F7F73; --accent-2: #8AD3C3; --accent-soft: rgba(111,191,174,.12);
  --copper: #D49C6C; --copper-hi: #E4B285; --copper-soft: rgba(212,156,108,.14);
  --deep: #0B2421; --deep-2: #12332F;
  --ok: #6FBFAE; --ok-soft: rgba(111,191,174,.13); --warn: #D9A86E; --warn-soft: rgba(212,156,108,.14); --bad: #E08A80; --bad-soft: rgba(224,138,128,.13);
  --shine: rgba(255,255,255,.14);
  --shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 22px 44px -26px rgba(0,0,0,.7);
  --shadow-hover: inset 0 1px 0 rgba(255,255,255,.09), 0 30px 60px -26px rgba(0,0,0,.85);
  --shadow-lg: 0 40px 100px -30px rgba(0,0,0,.9);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; font-feature-settings: "ss01", "cv11";
}
.mesh {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55vw 50vh at 6% -8%, var(--mesh-1), transparent 62%),
    radial-gradient(45vw 45vh at 104% 8%, var(--mesh-3), transparent 60%),
    radial-gradient(60vw 55vh at 72% 112%, var(--mesh-2), transparent 62%),
    radial-gradient(40vw 40vh at -6% 92%, var(--mesh-1), transparent 60%),
    var(--bg);
}
.mesh::after {
  content: ''; position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.sep { color: var(--hair-2); margin: 0 .45em; font-weight: 300; }

.display { font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -.012em; }
.display em { font-style: italic; color: var(--accent); }
.label { display: inline-block; font: 600 11px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 400; }
.h2 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -.01em; }
.h3 { font-family: var(--serif); font-size: 26px; line-height: 1.1; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

/* ---------- Botones ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--hair-2); background: var(--glass-2); color: var(--ink);
  font: 500 13.5px/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease), background-color .45s var(--ease), color .3s;
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 25%, var(--shine) 50%, transparent 75%);
  transform: translateX(-130%); transition: transform .9s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 14px 30px -16px rgba(14, 43, 39, .5); }
.btn:hover::after { transform: translateX(130%); }
.btn:hover .go { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .1s; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent-hi) 0%, var(--accent) 45%, var(--accent-lo) 100%);
  color: #F2FAF8; border-color: transparent;
  box-shadow: 0 12px 26px -16px rgba(47, 127, 115, .95), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn--primary:hover { border-color: transparent; box-shadow: 0 20px 38px -16px rgba(47, 127, 115, 1), inset 0 1px 0 rgba(255, 255, 255, .34); }
.btn--primary::after { background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, .35) 50%, transparent 75%); }
.btn--copper {
  background: linear-gradient(135deg, var(--copper-hi), var(--copper) 55%, #8A5534);
  color: #FFF8F2; border-color: transparent;
  box-shadow: 0 12px 26px -16px rgba(168, 110, 69, .95), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn--copper:hover { border-color: transparent; box-shadow: 0 20px 38px -16px rgba(168, 110, 69, 1), inset 0 1px 0 rgba(255, 255, 255, .34); }
.btn--joined { background: var(--ok-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.btn--ghost { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn--ghost:hover { background: var(--accent-soft); border-color: transparent; box-shadow: none; }
.btn--deep { background: rgba(255, 255, 255, .08); border-color: var(--on-deep-hair); color: var(--on-deep); }
.btn--deep:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .14); }
.btn--deep::after { background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, .18) 50%, transparent 75%); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13px; gap: 7px; }
.btn--sm svg { width: 15px; height: 15px; }
.btn--lg { height: 52px; padding: 0 26px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn--danger { color: var(--bad); }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; color: var(--ink-2);
  transition: background-color .35s var(--ease), transform .35s var(--ease), color .3s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--accent-soft); color: var(--accent); transform: translateY(-1px); }

/* ---------- Chips, etiquetas, estados ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--hair-2); background: var(--glass-2);
  color: var(--ink-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; text-decoration: none;
  transition: border-color .35s var(--ease), background-color .35s var(--ease), color .3s, transform .35s var(--ease);
}
.chip svg { width: 14px; height: 14px; }
.chip--dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--accent)); }
button.chip:hover, a.chip:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--ink); transform: translateY(-1px); }
button.chip[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--c, var(--muted));
}
.tag svg { width: 13px; height: 13px; }
.status { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.status--propuesta { background: var(--warn-soft); color: var(--warn); }
.status--confirmada { background: var(--ok-soft); color: var(--ok); }
.status--opcional { background: var(--hair); color: var(--muted); }
.status--cancelada { background: var(--bad-soft); color: var(--bad); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--c, var(--accent)); color: #fff; font: 600 12.5px/1 var(--sans); letter-spacing: .04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}

/* ---------- Formularios ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > label, .field > .flabel { font: 600 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 14px;
  border: 1px solid var(--hair-2); background: var(--glass-2); color: var(--ink); font-size: 16px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
.textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .8; }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > .field { flex: 1 1 140px; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--hair-2); background: var(--glass-2); font-weight: 500; font-size: 14px;
  transition: all .35s var(--ease);
}
.choice:hover span { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-1px); }
.choice input:checked + span { background: var(--deep); color: var(--on-deep); border-color: var(--deep); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login__art {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 44px 52px; color: var(--on-deep);
  background:
    radial-gradient(70% 60% at 85% 20%, rgba(127, 184, 172, .28), transparent 70%),
    radial-gradient(60% 50% at 10% 100%, rgba(168, 110, 69, .22), transparent 70%),
    linear-gradient(160deg, #123A35 0%, #0E2B27 50%, #091D1A 100%);
}
.login__art .label { color: var(--on-deep-2); }
.login__title { font-size: clamp(54px, 6.4vw, 104px); }
.login__title em { color: var(--accent-2); }
.login__people { margin-top: 26px; color: var(--on-deep-2); font-size: 15px; letter-spacing: .04em; }
.login__coords { font: 500 11px/1 var(--sans); letter-spacing: .24em; color: var(--on-deep-3); position: relative; z-index: 1; }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 52%; z-index: -1; }
.login__panel { display: grid; place-items: center; padding: 40px 28px; }
.login__card { width: 100%; max-width: 420px; padding: 40px 36px; border-radius: 30px; }
.login__card .h2 { margin: 12px 0 10px; font-size: 44px; }
.login__card .lead { color: var(--ink-2); margin-bottom: 30px; }
.login__err { min-height: 22px; color: var(--bad); font-size: 13.5px; font-weight: 500; margin: 2px 0 8px; }
.login__foot { margin-top: 24px; font-size: 13px; color: var(--muted); }

/* ---------- Estructura ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--hair);
}
.header__inner { max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand__mono {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, var(--deep-2), var(--deep)); color: var(--accent-2);
  font: 400 21px/1 var(--serif); box-shadow: inset 0 0 0 1px rgba(127, 184, 172, .35), 0 6px 16px -8px rgba(14, 43, 39, .6);
  transition: transform .6s var(--ease);
}
.brand:hover .brand__mono { transform: rotate(-8deg) scale(1.04); }
.brand__txt { font: 400 21px/1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__txt .sep { margin: 0 .35em; }
.brand__txt em { color: var(--muted); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px;
  border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 13.5px; color: var(--ink-2);
  transition: color .3s, background-color .4s var(--ease);
}
.nav a svg { width: 16px; height: 16px; opacity: .8; }
.nav a::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 5px; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .5s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { background: var(--deep); color: var(--on-deep); }
.nav a[aria-current="page"]::after { display: none; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--copper); color: #fff; font: 700 10.5px/18px var(--sans); text-align: center; }
.user { display: flex; align-items: center; gap: 10px; }
.user__txt { line-height: 1.2; }
.user__name { font-weight: 600; font-size: 13.5px; display: block; }
.user__role { font-size: 11.5px; color: var(--muted); display: block; white-space: nowrap; }
@media (max-width: 1180px) { .brand__txt em, .brand__txt .sep { display: none; } }
.bottom-nav { display: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.page { padding-top: 36px; padding-bottom: 90px; }
.section { margin-top: 64px; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section__head .label { margin-bottom: 10px; }
.section__head p { color: var(--muted); margin-top: 8px; max-width: 60ch; }
.page-head { margin-bottom: 30px; }
.page-head .h1 { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.015em; margin-top: 10px; }
.page-head .h1 em { font-style: italic; color: var(--accent); }
.page-head p { color: var(--muted); margin-top: 10px; max-width: 62ch; }
.card { border-radius: var(--r); padding: 26px; }
.card .h3 { margin-bottom: 4px; }
.lift { transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease); }
.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: grid; gap: 18px; }
.ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.ic svg { width: 19px; height: 19px; }
.ic--copper { background: var(--copper-soft); color: var(--copper); }

/* ---------- Inicio ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 32px; padding: 52px 56px 56px; color: var(--on-deep);
  background:
    radial-gradient(60% 80% at 90% 0%, rgba(127, 184, 172, .26), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, rgba(168, 110, 69, .22), transparent 70%),
    linear-gradient(150deg, #133D37 0%, #0E2B27 55%, #0A201D 100%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.hero .skyline { height: 70%; opacity: .9; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.hero .label { color: var(--on-deep-2); }
.hero h1 { font-size: clamp(50px, 6vw, 92px); margin-top: 16px; }
.hero h1 em { color: var(--accent-2); }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-top: 22px; color: var(--on-deep-2); font-size: 14.5px; }
.hero__meta .sep { color: var(--on-deep-3); }
.hero__people { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.hero__people > span { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--on-deep); }
.hero__people .avatar { width: 30px; height: 30px; font-size: 11.5px; }
.count { padding: 24px 26px; border-radius: 24px; background: rgba(255, 255, 255, .06); border: 1px solid var(--on-deep-hair); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.count .label { color: var(--on-deep-3); }
.count__grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; }
.count__cell { padding: 0 6px; text-align: center; border-left: 1px solid var(--on-deep-hair); }
.count__cell:first-child { border-left: none; }
.count__num { font: 400 clamp(40px, 4.4vw, 62px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.count__lbl { font: 500 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--on-deep-3); margin-top: 10px; }
.count__foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--on-deep-hair); font-size: 13px; color: var(--on-deep-2); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hero__today { display: grid; gap: 12px; }
.hero__today .serif { font-size: 32px; line-height: 1.1; }

.callout { display: flex; gap: 16px; align-items: center; padding: 20px 24px; border-radius: var(--r); }
.callout h4 { font: 600 15px/1.3 var(--sans); margin-bottom: 3px; }
.callout p { color: var(--ink-2); font-size: 14px; }
.callout > div { flex: 1; min-width: 0; }

/* Vuelos */
.flight { border-radius: var(--r); overflow: hidden; }
.flight__top { padding: 22px 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.flight__code { font: 600 12px/1 var(--sans); letter-spacing: .14em; color: var(--accent); }
.flight__route { display: grid; grid-template-columns: 1fr minmax(90px, 1.1fr) 1fr; align-items: center; gap: 14px; padding: 22px 26px 24px; }
.flight__iata { font: 400 58px/1 var(--serif); letter-spacing: .01em; }
.flight__time { font-size: 17px; font-weight: 600; margin-top: 8px; font-variant-numeric: tabular-nums; }
.flight__city { font-size: 12.5px; color: var(--muted); }
.flight__arr { text-align: right; }
.flight__mid { display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.flight__line { position: relative; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--hair-2) 15%, var(--hair-2) 85%, transparent); }
.flight__line svg { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%) rotate(90deg); color: var(--accent); background: transparent; }
.flight__foot { position: relative; border-top: 1px dashed var(--hair-2); padding: 16px 26px 22px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--ink-2); }
.flight__foot b { font-weight: 600; color: var(--ink); }
.flight__note { width: 100%; color: var(--muted); margin-top: 4px; }

/* Estancias */
.stays { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 4px; margin: 18px 0 10px; }
.stays__seg {
  position: relative; height: 54px; border-radius: 14px; padding: 0 14px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 92%, #fff 8%), var(--c)); color: #fff; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.stays__seg b { font: 400 18px/1.1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stays__seg span { font-size: 11px; opacity: .8; white-space: nowrap; }
.stays__axis { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 4px; font-size: 11px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.house { display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.house::before { content: ''; position: absolute; left: 26px; right: 26px; top: 0; height: 2px; background: var(--c); border-radius: 0 0 2px 2px; }
.house__hosts { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.house__line { font-size: 14px; display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.house__line svg { width: 16px; height: 16px; margin-top: 3px; color: var(--muted); }
.house__line a { text-decoration: none; border-bottom: 1px solid var(--hair-2); }
.house__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }

/* 16 días */
.overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ov-day {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 150px;
  padding: 18px 18px 18px 20px; border-radius: 20px; text-decoration: none;
  background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .5s var(--ease);
}
.ov-day::before { content: ''; position: absolute; left: 0; top: 20px; height: 26px; width: 2px; background: var(--c, var(--hair-2)); border-radius: 0 2px 2px 0; transition: height .5s var(--ease); }
.ov-day:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); background: var(--glass-2); }
.ov-day:hover::before { height: calc(100% - 40px); }
.ov-day__top { display: flex; justify-content: space-between; align-items: baseline; }
.ov-day__num { font: 400 40px/1 var(--serif); }
.ov-day__dow { font: 600 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ov-day__title { font-weight: 500; font-size: 14.5px; line-height: 1.35; margin-top: auto; }
.ov-day__zone { font-size: 12px; color: var(--muted); }
.ov-day--today { box-shadow: 0 0 0 1.5px var(--copper), var(--shadow); }

/* ---------- Itinerario ---------- */
.it-layout { display: grid; grid-template-columns: 292px minmax(0, 1fr); gap: 36px; align-items: start; }
.rail {
  position: sticky; top: calc(var(--header-h) + 22px);
  max-height: calc(100vh - var(--header-h) - 44px); overflow-y: auto;
  padding: 18px 12px; border-radius: 26px; color: var(--on-deep);
  background: radial-gradient(120% 50% at 50% 0%, rgba(127, 184, 172, .18), transparent 70%), linear-gradient(180deg, var(--deep-2), var(--deep));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .07);
  scrollbar-width: thin; scrollbar-color: var(--on-deep-hair) transparent;
}
.rail__head { padding: 4px 12px 14px; border-bottom: 1px solid var(--on-deep-hair); margin-bottom: 8px; }
.rail__head .label { color: var(--on-deep-3); }
.rail__head .serif { font-size: 24px; margin-top: 6px; }
.rail a {
  position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--on-deep-2);
  transition: background-color .4s var(--ease), color .3s, transform .4s var(--ease);
}
.rail a:hover { background: rgba(255, 255, 255, .05); color: var(--on-deep); transform: translateX(3px); }
.rail a[aria-current="true"] { background: rgba(255, 255, 255, .09); color: var(--on-deep); box-shadow: inset 0 0 0 1px var(--on-deep-hair); }
.rail a[aria-current="true"]::before { content: ''; position: absolute; left: -12px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--copper-hi); }
.rail__date { display: grid; justify-items: center; line-height: 1; }
.rail__date b { font: 400 26px/1 var(--serif); }
.rail__date small { font: 600 9.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; color: var(--on-deep-3); }
.rail__title { font-size: 13px; line-height: 1.3; font-weight: 500; }
.rail__house { display: block; font-size: 11px; color: var(--on-deep-3); margin-top: 2px; font-weight: 400; }
.rail__house::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 1px; }
.day-chips { display: none; }

.day-head { margin-bottom: 26px; }
.day-head__top { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.day-head h1 { font: 400 clamp(40px, 4.6vw, 62px)/1 var(--serif); letter-spacing: -.015em; margin: 14px 0 14px; }
.day-head__summary { font-size: 16.5px; color: var(--ink-2); max-width: 62ch; line-height: 1.6; }
.day-head__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.day-head__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.day-map { height: 340px; border-radius: var(--r); overflow: hidden; margin-bottom: 22px; }
.tips { display: grid; gap: 10px; margin-bottom: 26px; }
.tip { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 16px; font-size: 14px; color: var(--ink-2); border: 1px solid var(--hair); background: color-mix(in srgb, var(--glass) 60%, transparent); }
.tip svg { width: 16px; height: 16px; margin-top: 3px; color: var(--copper); }
.day-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }

.timeline { display: grid; }
.item { display: grid; grid-template-columns: 76px 34px minmax(0, 1fr); gap: 0 14px; }
.item__time { text-align: right; padding-top: 24px; font: 500 13px/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.item__rail { position: relative; display: flex; justify-content: center; }
.item__rail::before { content: ''; position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--hair-2), var(--hair-2)); }
.item:first-child .item__rail::before { top: 26px; }
.item:last-child .item__rail::before { bottom: calc(100% - 26px); }
.item__dot {
  position: relative; z-index: 1; margin-top: 12px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--c); background: var(--bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 0 0 5px var(--bg);
}
.item__dot svg { width: 16px; height: 16px; }
.item__body { margin: 4px 0 18px; padding: 22px 24px; border-radius: 22px; min-width: 0; }
.item--traslado .item__body, .item--viaje .item__body { background: color-mix(in srgb, var(--glass) 55%, transparent); box-shadow: none; }
.item--cancelada .item__body { opacity: .5; }
.item--cancelada h3 { text-decoration: line-through; }
.item__top { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.item__clock { display: none; font: 600 12px/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.item h3 { font: 400 27px/1.1 var(--serif); letter-spacing: -.005em; }
.item__place { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.item__place svg { width: 15px; height: 15px; margin-top: 3px; color: var(--muted); }
.item__place a { text-decoration: none; border-bottom: 1px solid var(--hair-2); transition: border-color .3s, color .3s; }
.item__place a:hover { border-color: var(--accent); color: var(--accent); }
.item__desc { margin-top: 10px; color: var(--ink-2); }
.item__opts { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.item__opts li { position: relative; padding-left: 18px; color: var(--ink-2); }
.item__opts li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 7px; height: 1px; background: var(--copper); }
.item__meta { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--muted); }
.item__meta span { display: inline-flex; align-items: center; gap: 7px; }
.item__meta svg { width: 14px; height: 14px; }
.item__note { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: var(--copper-soft); font-size: 14px; display: flex; gap: 10px; }
.item__note svg { width: 15px; height: 15px; margin-top: 3px; color: var(--copper); }
.item__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.item__who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--muted); }
.who { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px 0 3px; border-radius: 999px; background: var(--hair); color: var(--ink-2); font-weight: 500; font-size: 12.5px; }
.who .avatar { width: 22px; height: 22px; font-size: 9.5px; }
.who__count { margin-left: auto; font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Ruta paso a paso */
details.route { margin-top: 16px; border-radius: 18px; border: 1px solid var(--hair); background: color-mix(in srgb, var(--glass-2) 50%, transparent); overflow: hidden; }
details.route > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-weight: 500; font-size: 13.5px; transition: background-color .3s; }
details.route > summary:hover { background: var(--accent-soft); }
details.route > summary::-webkit-details-marker { display: none; }
details.route > summary > svg { width: 16px; height: 16px; color: var(--accent); }
details.route > summary::after { content: ''; margin-left: auto; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .35s var(--ease); }
details.route[open] > summary::after { transform: rotate(-135deg); }
.route__body { padding: 4px 16px 18px; }
.route__sub { margin: 14px 0 8px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
.step::before { content: ''; position: absolute; left: 19.5px; top: 38px; bottom: 2px; width: 1px; background: var(--hair-2); }
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step__ico { display: flex; justify-content: center; }
.mode { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--hair-2); color: var(--ink-2); }
.mode svg { width: 17px; height: 17px; }
.mode--bus, .mode--train, .mode--path { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.bullets { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; max-width: 42px; padding-top: 2px; }
.bullet { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 11px/1 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.bullet--dark { color: #111; }
.bullet--lg { width: 30px; height: 30px; font-size: 16px; }
.step__main { min-width: 0; padding-top: 4px; }
.step__label { font: 600 10.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.step__title { font-weight: 500; font-size: 14.5px; margin-top: 3px; }
.step__meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.step__note { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.route__alt { margin-top: 14px; font-size: 13px; color: var(--muted); padding-left: 52px; }
.route__links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-left: 52px; }

/* ---------- Mapa ---------- */
.map-layout { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; align-items: start; }
.map-sticky { position: sticky; top: calc(var(--header-h) + 22px); }
.big-map { height: calc(100vh - var(--header-h) - 64px); min-height: 480px; border-radius: 26px; overflow: hidden; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 18px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.places { padding: 10px; border-radius: 26px; }
.place-group { padding: 8px 6px 4px; }
.place-group + .place-group { border-top: 1px solid var(--hair); margin-top: 6px; padding-top: 14px; }
.place-group > .label { padding: 0 10px 6px; }
.place {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start;
  width: 100%; text-align: left; padding: 11px 10px; border-radius: 16px; border: 0; background: transparent;
  transition: background-color .35s var(--ease), transform .35s var(--ease);
}
.place:hover { background: var(--accent-soft); transform: translateX(3px); }
.place__ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.place__ico svg { width: 17px; height: 17px; }
.place__name { display: block; font-weight: 500; font-size: 14.5px; }
.place__addr { display: block; font-size: 12.5px; color: var(--muted); }
.place__days { display: block; font: 600 10.5px/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--copper); margin-top: 3px; }
.map-fallback { height: 100%; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--muted); }

.pin { background: none; border: 0; }
.pin span {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #1B4A44, #0E2B27); color: #fff;
  box-shadow: 0 0 0 2px var(--c), 0 0 0 4px rgba(255, 255, 255, .85), 0 8px 18px -4px rgba(0, 0, 0, .45);
  transition: transform .35s var(--ease);
}
.pin span svg { width: 15px; height: 15px; }
.pin span b { font: 600 12px/1 var(--sans); }
.pin:hover span { transform: scale(1.12); }
.pin--home span { width: 40px; height: 40px; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 80%, #fff), var(--c)); }
.leaflet-popup-content-wrapper { border-radius: 18px !important; background: var(--glass-2) !important; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: var(--ink) !important; box-shadow: var(--shadow-lg) !important; border: 1px solid var(--glass-border); }
.leaflet-popup-tip { background: var(--glass-2) !important; }
.leaflet-popup-content { margin: 16px 18px !important; font: 13.5px/1.5 var(--sans); }
.leaflet-popup-content b { display: block; font: 400 20px/1.15 var(--serif); margin-bottom: 4px; }
.leaflet-popup-content .pop-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.leaflet-popup-content .pop-actions a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--hair-2); text-decoration: none; font-weight: 500; font-size: 12.5px; color: var(--ink); transition: background-color .3s; }
.leaflet-popup-content .pop-actions a:hover { background: var(--accent-soft); }
.leaflet-container { font-family: var(--sans); background: var(--bg); }
.leaflet-control-attribution { font-size: 10px !important; background: rgba(255, 255, 255, .6) !important; }
.leaflet-bar a { background: var(--glass-2) !important; color: var(--ink) !important; border-color: var(--hair) !important; }

/* ---------- Guía ---------- */
.guide { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; }
.guide__nav { position: sticky; top: calc(var(--header-h) + 22px); }
.guide__nav a { grid-template-columns: 30px 1fr; }
.guide__nav .gi { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--on-deep-hair); }
.guide__nav .gi svg { width: 15px; height: 15px; }
.guide__nav .rail__house::before { display: none; }
.guide__nav a[aria-current="true"] .gi { background: var(--copper-hi); color: var(--deep); box-shadow: none; }
.guide__tabs { display: none; }
.gsec { display: grid; gap: 22px; }
.gsec__intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: 34px 36px; border-radius: 28px; }
.gsec__intro .h1 { font: 400 clamp(38px, 4.4vw, 58px)/1 var(--serif); letter-spacing: -.015em; margin: 10px 0 12px; }
.gsec__intro .h1 em { font-style: italic; color: var(--accent); }
.gsec__intro p { color: var(--ink-2); max-width: 54ch; }
.illus { width: 260px; max-width: 100%; color: var(--ink-2); }
.illus--wide { width: 340px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-radius: 22px; overflow: hidden; }
.fact { padding: 20px 22px; border-left: 1px solid var(--hair); }
.fact:first-child { border-left: 0; }
.fact__num { font: 400 34px/1.05 var(--serif); margin-top: 8px; }
.fact__sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.steps-num { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps-num li { counter-increment: s; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--hair); }
.steps-num li:first-child { border-top: 0; padding-top: 4px; }
.steps-num li::before { content: counter(s, decimal-leading-zero); font: 400 30px/1 var(--serif); color: var(--accent); }
.steps-num b { display: block; font-weight: 600; margin-bottom: 3px; }
.steps-num span { color: var(--ink-2); font-size: 14.5px; }
.lines-legend { display: grid; gap: 0; }
.lines-legend > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--hair); font-size: 14px; color: var(--ink-2); }
.lines-legend > div:first-child { border-top: 0; }
.lines-legend .bl { display: flex; gap: 4px; flex-wrap: wrap; }
.compass { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compass > div { padding: 20px; border-radius: 18px; border: 1px solid var(--hair); display: grid; gap: 6px; }
.compass .serif { font-size: 26px; }
.compass svg { width: 26px; height: 26px; color: var(--accent); }
.xp { display: grid; gap: 14px; }
.xp__row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 14px; align-items: center; font-size: 13px; color: var(--muted); }
.xp__track { position: relative; height: 18px; }
.xp__track::before { content: ''; position: absolute; left: 0; right: 0; top: 8.5px; height: 1px; background: var(--hair-2); }
.xp__track i { position: absolute; top: 3px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--c); background: var(--bg); transform: translateX(-50%); }
.xp__track i.on { background: var(--c); }

/* Esquema de rutas */
.lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.line { padding: 26px 26px 22px; border-radius: 26px; }
.line__head .serif { font-size: 28px; line-height: 1.1; margin-top: 8px; }
.line__head p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.stops { list-style: none; margin: 22px 0 0; padding: 0; position: relative; }
.stops::before { content: ''; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: var(--lc); opacity: .9; }
.stop { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; align-items: center; padding: 4px 0; }
.stop::before { content: ''; width: 22px; height: 22px; margin-left: 4px; border-radius: 50%; background: var(--bg); border: 4px solid var(--lc); position: relative; z-index: 1; box-sizing: border-box; }
.stop--end::before { background: var(--lc); }
.stop b { display: block; font: 400 21px/1.15 var(--serif); }
.stop span { display: block; font-size: 12.5px; color: var(--muted); }
.seg { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; padding: 10px 0; }
.seg__mode { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); padding: 8px 12px; border-radius: 12px; background: var(--hair); width: fit-content; max-width: 100%; }
.seg__mode svg { width: 16px; height: 16px; color: var(--accent); }
.seg--car { position: relative; }
.seg--car::after { content: ''; position: absolute; left: 13px; top: 0; bottom: 0; width: 4px; background: repeating-linear-gradient(var(--bg) 0 5px, transparent 5px 10px); }

/* Clima */
.wx { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 34px; align-items: center; }
.wx__big { font: 400 92px/1 var(--serif); letter-spacing: -.02em; }
.wx__big sup { font-size: 36px; vertical-align: 42px; }
.temps { display: grid; gap: 16px; }
.temp { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; font-size: 13.5px; }
.temp__track { position: relative; height: 34px; border-radius: 999px; background: var(--hair); }
.temp__bar { position: absolute; top: 5px; bottom: 5px; border-radius: 999px; background: linear-gradient(90deg, #7FB8AC, #C4895C); display: flex; justify-content: space-between; align-items: center; padding: 0 10px; color: #fff; font-weight: 600; font-size: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.temp__scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin: 6px 0 0 134px; }
.wear { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wear > div { padding: 20px; border-radius: 20px; display: grid; gap: 10px; align-content: start; }
.wear .serif { font-size: 21px; line-height: 1.15; }
.wear p { font-size: 13.5px; color: var(--ink-2); }
.sun { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sun > div { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 20px; }
.sun .serif { font-size: 28px; line-height: 1; }

/* Dinero */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 22px; align-items: center; }
.calc__out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.calc__out > div { padding: 16px; border-radius: 18px; border: 1px solid var(--hair); text-align: center; }
.calc__out .serif { font-size: 30px; line-height: 1.1; margin-top: 4px; }
.calc__out small { display: block; font-size: 12px; color: var(--muted); }
.kv { display: grid; margin: 0; }
.kv > div { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.kv > div:first-child { border-top: 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.contact { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-radius: 22px; flex-wrap: wrap; }
.contact__who { display: flex; gap: 14px; align-items: center; }
.contact .serif { font-size: 24px; line-height: 1.1; }
.contact span.small { display: block; color: var(--muted); }
.ul-clean { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ul-clean li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; }
.ul-clean li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 8px; height: 1px; background: var(--copper); }

/* ---------- Equipo ---------- */
.seg-nav { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; margin-bottom: 24px; max-width: 100%; overflow-x: auto; }
.seg-nav a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; transition: background-color .4s var(--ease), color .3s; }
.seg-nav a svg { width: 15px; height: 15px; }
.seg-nav a:hover { color: var(--ink); background: var(--accent-soft); }
.seg-nav a[aria-current="page"] { background: var(--deep); color: var(--on-deep); }
.private { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.private svg { width: 14px; height: 14px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 15px 0; border-top: 1px solid var(--hair); }
.feed li:first-child { border-top: 0; }
.feed__ico { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); box-shadow: inset 0 0 0 1px var(--hair-2); }
.feed__ico svg { width: 16px; height: 16px; }
.feed__new .feed__ico::after { content: ''; position: absolute; right: -1px; top: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 2px var(--bg); }
.feed__txt { font-size: 14px; }
.feed__txt a { text-decoration: none; border-bottom: 1px solid var(--hair-2); }
.feed__time { font-size: 12px; color: var(--muted); margin-top: 2px; }
.feed__quote { margin-top: 8px; padding: 10px 14px; border-left: 2px solid var(--copper); background: var(--copper-soft); border-radius: 0 12px 12px 0; font-size: 14px; color: var(--ink-2); font-style: italic; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 8px 12px; border-bottom: 1px solid var(--hair-2); }
.table td { padding: 13px 8px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table a { text-decoration: none; border-bottom: 1px solid var(--hair-2); }
.table-wrap { overflow-x: auto; }
.stat { padding: 22px 24px; border-radius: 22px; }
.stat__num { font: 400 40px/1.05 var(--serif); margin-top: 10px; font-variant-numeric: tabular-nums; }
.stat__sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.balance {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 30px 32px; border-radius: 28px; color: var(--on-deep);
  background: radial-gradient(60% 100% at 100% 0%, rgba(127, 184, 172, .22), transparent 70%), linear-gradient(150deg, #133D37, #0E2B27 60%, #0A201D);
  box-shadow: var(--shadow-lg);
}
.balance .label { color: var(--on-deep-3); }
.balance .serif { display: block; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; margin: 8px 0 6px; }
.balance p { color: var(--on-deep-2); font-size: 13px; }
.fx { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--on-deep-2); }
.fx .input { width: 104px; min-height: 42px; padding: 8px 14px; background: rgba(255, 255, 255, .07); color: var(--on-deep); border-color: var(--on-deep-hair); }
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 86px; gap: 12px; align-items: center; font-size: 13px; color: var(--ink-2); }
.bar__track { height: 6px; border-radius: 999px; background: var(--hair); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; background: var(--c, var(--accent)); }
.bar__val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.pack { list-style: none; margin: 8px 0 0; padding: 0; }
.pack li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--hair); }
.pack li:first-child { border-top: 0; }
.check { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--hair-2); display: grid; place-items: center; flex: none; cursor: pointer; background: transparent; transition: all .3s var(--ease); }
.check:hover { border-color: var(--accent); }
.check:checked { background: var(--accent); border-color: var(--accent); }
.check:checked::after { content: ''; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.pack__txt { flex: 1; min-width: 0; font-size: 14.5px; }
.pack li.done .pack__txt { text-decoration: line-through; color: var(--muted); }
.pack__who { font: 600 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.pack-add { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pack-add .input { flex: 1 1 180px; min-height: 44px; }
.pack-add .select { flex: 0 1 150px; min-height: 44px; }
.progress { height: 3px; border-radius: 999px; background: var(--hair); overflow: hidden; margin-top: 14px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 999px; transition: width .6s var(--ease); }

/* ---------- Modal y toast ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(6, 18, 16, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade .25s var(--ease); }
.modal { width: 100%; max-width: 540px; max-height: calc(100dvh - 40px); overflow-y: auto; border-radius: 30px; padding: 30px; background: var(--glass-2); -webkit-backdrop-filter: saturate(160%) blur(30px); backdrop-filter: saturate(160%) blur(30px); border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg); animation: pop .35s var(--ease); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .modal { background: var(--bg); } .glass { background: var(--glass-2); } }
.modal__head { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 22px; }
.modal__head .serif { font-size: 34px; line-height: 1.05; display: block; margin-top: 8px; }
.modal__head p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.modal__foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } }
#toast { position: fixed; left: 50%; bottom: calc(26px + var(--bottom-h)); transform: translate(-50%, 16px); z-index: 120; padding: 13px 22px; border-radius: 999px; background: var(--deep); color: var(--on-deep); font-weight: 500; font-size: 13.5px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.fab { position: fixed; right: 26px; bottom: calc(26px + var(--bottom-h)); z-index: 40; }

.empty { padding: 30px 10px; text-align: center; color: var(--muted); font-size: 14px; }
.foot { margin-top: 80px; padding-top: 22px; border-top: 1px solid var(--hair); font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; letter-spacing: .02em; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .guide { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  .lines { grid-template-columns: minmax(0, 1fr); }
  .wear { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 920px) {
  .it-layout, .guide { grid-template-columns: minmax(0, 1fr); }
  .rail, .guide__nav { display: none; }
  .day-chips, .guide__tabs {
    display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    position: sticky; top: var(--header-h); z-index: 30;
    margin: -36px -28px 26px; padding: 12px 28px;
    background: linear-gradient(180deg, var(--deep-2), var(--deep));
    box-shadow: 0 16px 30px -24px rgba(0, 0, 0, .6);
  }
  .day-chips::-webkit-scrollbar, .guide__tabs::-webkit-scrollbar { display: none; }
  .day-chips a {
    flex: none; scroll-snap-align: center; display: grid; justify-items: center; gap: 3px;
    min-width: 54px; padding: 8px 6px 9px; border-radius: 14px; text-decoration: none; color: var(--on-deep-2);
    transition: background-color .3s, color .3s;
  }
  .day-chips a small { font: 600 9.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--on-deep-3); }
  .day-chips a b { font: 400 24px/1 var(--serif); }
  .day-chips a i { width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
  .day-chips a[aria-current="true"] { background: rgba(255, 255, 255, .1); color: var(--on-deep); box-shadow: inset 0 0 0 1px var(--on-deep-hair); }
  .guide__tabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--on-deep-2); font-size: 13px; font-weight: 500; }
  .guide__tabs a svg { width: 15px; height: 15px; }
  .guide__tabs a[aria-current="true"] { background: rgba(255, 255, 255, .1); color: var(--on-deep); box-shadow: inset 0 0 0 1px var(--on-deep-hair); }
  .map-layout { grid-template-columns: minmax(0, 1fr); }
  .map-sticky { position: relative; top: 0; order: -1; }
  .big-map { height: 54vh; min-height: 320px; }
  .gsec__intro { grid-template-columns: minmax(0, 1fr); }
  .illus { width: 220px; }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; --bottom-h: 70px; }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login__art { min-height: 52vh; padding: 30px 22px; gap: 24px; }
  .login__title { font-size: 58px; }
  .login__panel { padding: 0 16px 40px; margin-top: -40px; position: relative; z-index: 2; }
  .login__card { padding: 30px 22px; border-radius: 26px; }
  .login__card .h2 { font-size: 38px; }
  .header__inner { padding: 0 16px; gap: 10px; }
  .brand__txt em, .brand__txt .sep { display: none; }
  .nav { display: none; }
  .user { margin-left: auto; }
  .user__txt { display: none; }
  .container { padding: 0 16px; }
  .page { padding-top: 24px; padding-bottom: calc(var(--bottom-h) + 50px); }
  .section { margin-top: 48px; }
  .bottom-nav {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    height: 62px; border-radius: 22px;
    background: color-mix(in srgb, var(--deep) 88%, transparent);
    -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .08);
  }
  .bottom-nav a { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; text-decoration: none; color: var(--on-deep-3); font-size: 10.5px; font-weight: 500; letter-spacing: .02em; transition: color .3s; }
  .bottom-nav a svg { width: 21px; height: 21px; }
  .bottom-nav a[aria-current="page"] { color: var(--on-deep); }
  .bottom-nav a[aria-current="page"]::before { content: ''; position: absolute; top: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--copper-hi); }
  .bottom-nav .badge { position: absolute; top: 7px; left: calc(50% + 6px); }
  .hero { padding: 30px 22px 26px; border-radius: 26px; }
  .hero h1 { font-size: 52px; }
  .hero__meta { font-size: 13.5px; }
  .count { padding: 18px 12px; }
  .count__num { font-size: 40px; }
  .count__lbl { font-size: 9.5px; letter-spacing: .12em; }
  .card { padding: 22px 20px; border-radius: 22px; }
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ov-day { min-height: 136px; padding: 16px 14px 16px 16px; }
  .ov-day__num { font-size: 34px; }
  .ov-day__title { font-size: 13.5px; }
  .flight__route { padding: 18px 20px 20px; gap: 8px; }
  .flight__top, .flight__foot { padding-left: 20px; padding-right: 20px; }
  .flight__iata { font-size: 44px; }
  .flight__time { font-size: 15px; }
  .stays__seg { height: 48px; padding: 0 8px; border-radius: 10px; }
  .stays__seg b { font-size: 14px; }
  .stays__seg span { display: none; }
  .stays__axis span:nth-child(even) { visibility: hidden; }
  .day-chips, .guide__tabs { margin: -24px -16px 22px; padding: 10px 16px; }
  .day-head h1 { font-size: 42px; }
  .item { grid-template-columns: 26px minmax(0, 1fr); gap: 0 12px; }
  .item__time { display: none; }
  .item__clock { display: inline; }
  .item__dot { width: 26px; height: 26px; margin-top: 18px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 0 0 4px var(--bg); }
  .item__dot svg { width: 13px; height: 13px; }
  .item__body { padding: 18px 18px; border-radius: 20px; }
  .item h3 { font-size: 24px; }
  .item__actions .btn { flex: 1 1 auto; }
  .route__links, .route__alt { padding-left: 0; }
  .day-map { height: 270px; }
  .places { padding: 6px; }
  .gsec__intro { padding: 26px 22px; }
  .illus, .illus--wide { width: 100%; max-width: 300px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact { border-left: 0; border-top: 1px solid var(--hair); }
  .fact:first-child { border-top: 0; }
  .lines-legend > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .compass { grid-template-columns: minmax(0, 1fr); }
  .wx { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .wx__big { font-size: 72px; }
  .temp { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .temp__scale { margin-left: 0; }
  .sun { grid-template-columns: minmax(0, 1fr); }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc__out .serif { font-size: 24px; }
  .bar { grid-template-columns: 84px minmax(0, 1fr) 74px; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { border-radius: 28px 28px 0 0; max-height: 92dvh; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
  .fab { right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); width: 54px; height: 54px; padding: 0; }
  .fab span { display: none; }
  .fab svg { width: 20px; height: 20px; }
  #toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .table--stack thead { display: none; }
  .table--stack tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
  .table--stack td { padding: 0; border: 0; }
  .table--stack td[data-l]::before { content: attr(data-l) ': '; color: var(--muted); }
  .balance { padding: 24px 22px; }
  .callout { flex-wrap: wrap; align-items: flex-start; padding: 20px; }
  .callout > div { flex: 1 1 200px; }
  .callout > .btn { width: 100%; }
}

@media (hover: none) {
  .btn:hover, .lift:hover, .ov-day:hover, .place:hover, .rail a:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   Itinerario visual: mapa al lado, recorrido con fotos
   ========================================================= */
.page--wide { max-width: 1560px; }
.it-layout {
  display: grid; gap: 0 32px; align-items: start;
  grid-template-columns: 250px minmax(0, 1fr) minmax(380px, .9fr);
  grid-template-areas: "rail head map" "rail body map";
  grid-template-rows: auto 1fr;
}
.it-layout > .rail { grid-area: rail; grid-row: 1 / span 2; }
.it-head { grid-area: head; min-width: 0; }
.it-body { grid-area: body; min-width: 0; }
.it-map { grid-area: map; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + 22px); align-self: start; min-width: 0; }
.route-panel { border-radius: 26px; padding: 16px; }
.route-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 4px 14px; flex-wrap: wrap; }
.route-panel__head .serif { font-size: 22px; line-height: 1.15; margin-top: 4px; }
.route-panel .day-map { height: calc(100vh - var(--header-h) - 250px); min-height: 380px; border-radius: 18px; margin: 0; border: 1px solid var(--hair); }
.route-panel__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 4px 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-2); }
.legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.legend .bullet { width: 16px; height: 16px; font-size: 9.5px; }
.seg-mini { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--hair); }
.seg-mini button { border: 0; background: transparent; height: 30px; padding: 0 13px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); transition: background-color .35s var(--ease), color .3s; }
.seg-mini button:hover { color: var(--ink); }
.seg-mini button[aria-pressed="true"] { background: var(--deep); color: var(--on-deep); }

.strip-wrap { margin-bottom: 26px; }
.strip { display: flex; gap: 12px; overflow-x: auto; padding: 12px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--hair-2) transparent; }
.stop-card {
  flex: none; width: 176px; scroll-snap-align: start; text-align: left; padding: 0; overflow: hidden;
  border: 1px solid var(--glass-border); background: var(--glass); border-radius: 18px; box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.stop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.stop-card__img { position: relative; display: block; height: 112px; overflow: hidden; background: linear-gradient(135deg, var(--deep-2), var(--deep)); }
.stop-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.stop-card:hover .stop-card__img img { transform: scale(1.07); }
.stop-card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent-2); }
.stop-card__ph svg { width: 30px; height: 30px; }
.stop-card__n { position: absolute; left: 10px; top: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 43, 39, .88); color: #fff; font: 600 12.5px/1 var(--sans); box-shadow: 0 0 0 2px var(--c); }
.stop-card__body { display: block; padding: 10px 12px 12px; }
.stop-card__time { display: block; font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stop-card__name { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.3; margin-top: 5px; color: var(--ink); }

.item__photo { position: relative; height: 220px; margin: -22px -24px 18px; overflow: hidden; border-radius: 22px 22px 0 0; background: var(--deep); }
.item__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.item:hover .item__photo img { transform: scale(1.04); }
.item__photo figcaption { position: absolute; right: 10px; bottom: 8px; max-width: calc(100% - 20px); }
.item__photo figcaption a { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; color: rgba(255, 255, 255, .9); text-decoration: none; background: rgba(0, 0, 0, .38); padding: 3px 9px; border-radius: 999px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
button.item__dot { border: 0; padding: 0; cursor: pointer; font: inherit; }
.item__dot--n { background: var(--deep); color: #fff; box-shadow: 0 0 0 2px var(--c), 0 0 0 6px var(--bg); transition: transform .35s var(--ease); }
.item__dot--n:hover { transform: scale(1.1); }
.item__dot--n b { font: 600 13px/1 var(--sans); }

.pin--hub span { width: 26px; height: 26px; background: #FFFFFF; color: #33504B; box-shadow: 0 0 0 1.5px #4E5B5A, 0 4px 10px -2px rgba(0, 0, 0, .35); }
.pin--hub span svg { width: 13px; height: 13px; }
.pin--active span { transform: scale(1.3); }
.leg-tip { font: 12.5px/1.45 var(--sans) !important; border-radius: 10px !important; padding: 7px 11px !important; border: 1px solid var(--hair) !important; box-shadow: var(--shadow) !important; }
.pop-img { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
.place__ico { overflow: hidden; }
.place__ico img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Lugares de Instagram */
.reel-group + .reel-group { margin-top: 48px; }
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.reel { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; }
.reel__img { position: relative; height: 160px; overflow: hidden; background: linear-gradient(135deg, var(--deep-2), var(--deep)); }
.reel__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.reel:hover .reel__img img { transform: scale(1.06); }
.reel__n { position: absolute; left: 12px; top: 12px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: rgba(14, 43, 39, .85); color: #fff; font: 600 12.5px/1 var(--sans); }
.reel__credit { position: absolute; right: 8px; bottom: 6px; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: rgba(255, 255, 255, .88); background: rgba(0, 0, 0, .38); padding: 2px 8px; border-radius: 999px; text-decoration: none; }
.reel__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.reel__body .h3 { font-size: 23px; }
.reel__day { align-self: flex-start; margin-top: 4px; }
.reel__note { font-size: 13.5px; color: var(--ink-2); }
.reel__actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }

@media (max-width: 1279px) {
  .it-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr); grid-template-areas: "head map" "body map"; }
  .it-layout > .rail { display: none; }
  .day-chips {
    display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    position: sticky; top: var(--header-h); z-index: 30; margin: -36px -28px 26px; padding: 12px 28px;
    background: linear-gradient(180deg, var(--deep-2), var(--deep)); box-shadow: 0 16px 30px -24px rgba(0, 0, 0, .6);
  }
  .day-chips::-webkit-scrollbar { display: none; }
  .day-chips a { flex: none; scroll-snap-align: center; display: grid; justify-items: center; gap: 3px; min-width: 54px; padding: 8px 6px 9px; border-radius: 14px; text-decoration: none; color: var(--on-deep-2); transition: background-color .3s, color .3s; }
  .day-chips a:hover { background: rgba(255, 255, 255, .06); color: var(--on-deep); }
  .day-chips a small { font: 600 9.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--on-deep-3); }
  .day-chips a b { font: 400 24px/1 var(--serif); }
  .day-chips a i { width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
  .day-chips a[aria-current="true"] { background: rgba(255, 255, 255, .1); color: var(--on-deep); box-shadow: inset 0 0 0 1px var(--on-deep-hair); }
}
@media (max-width: 920px) {
  .it-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "map" "body"; }
  .it-map { position: relative; top: 0; grid-row: auto; margin-bottom: 26px; }
  .route-panel .day-map { height: 400px; min-height: 0; }
}
@media (max-width: 760px) {
  .day-chips { margin: -24px -16px 22px; padding: 10px 16px; }
  .route-panel { padding: 10px; border-radius: 22px; }
  .route-panel__head { padding: 6px 6px 12px; }
  .route-panel .day-map { height: 340px; border-radius: 16px; }
  .route-panel__foot { padding: 12px 6px 4px; }
  .item__photo { height: 180px; margin: -18px -18px 16px; border-radius: 20px 20px 0 0; }
  .stop-card { width: 150px; }
  .stop-card__img { height: 96px; }
  .reels { grid-template-columns: minmax(0, 1fr); }
}

/* Mapa base de OpenStreetMap entonado con la paleta (pátina) */
.leaflet-tile-pane { filter: grayscale(1) sepia(.06) hue-rotate(120deg) saturate(.35) brightness(1.08) contrast(.8); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) grayscale(1) sepia(.25) hue-rotate(125deg) saturate(.6) brightness(.78) contrast(1.05); }
}
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) grayscale(1) sepia(.25) hue-rotate(125deg) saturate(.6) brightness(.78) contrast(1.05); }

/* Flechas de dirección y leyenda por color */
.leg-arrow { background: none; border: 0; }
.leg-arrow span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, .3); }
.leg-arrow svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.legend .lg--dir { font-weight: 600; color: var(--ink); }
.legend .lg--dir i { width: 22px; height: 8px; border-radius: 999px; box-shadow: 0 0 0 2px var(--glass-2); }
