/* ==========================================================================
   Free Tours Free · Componentes
   Piezas reutilizables en todas las páginas.
   ========================================================================== */

/* --- Cabecera ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 231, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(48, 32, 16, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  color: var(--terra);
}

.logo-mark { width: 38px; height: 38px; flex: none; transition: transform 0.4s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }

.logo-word {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.logo-word em { color: var(--terra); font-weight: 400; }
.logo-light .logo-word { color: #f6f1e7; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav > a:not(.btn) {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s, background 0.2s;
}

.main-nav > a:not(.btn):hover { color: var(--ink); background: rgba(31, 26, 21, 0.05); }
.main-nav > a[aria-current] { color: var(--ink); }

.main-nav > a[aria-current]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 1px;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--terra);
}

.nav-cta { --accent: var(--terra); --accent-deep: var(--terra-deep); margin-left: 12px; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--card);
  place-items: center;
}

.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

.menu-open .menu-icon { background: transparent; }
.menu-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .menu-toggle { display: grid; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px var(--gutter) 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(48, 32, 16, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0.25s;
  }

  .menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }

  .main-nav > a:not(.btn) {
    padding: 14px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 1.45rem;
    color: var(--ink);
  }

  .main-nav > a:not(.btn):hover { background: none; color: var(--terra); }
  .main-nav > a[aria-current]::after { left: auto; right: 6px; top: 50%; bottom: auto; margin-top: -2.5px; }
  .nav-cta { margin: 20px 0 0; justify-content: center; }
}

/* --- Botones y enlaces ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  box-shadow: 0 10px 22px -12px var(--accent);
  transition: background 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.btn:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 16px 28px -14px var(--accent); }
.btn:active { transform: translateY(0); }

.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow, .card-link:hover .arrow { transform: translateX(4px); }

.btn-small { min-height: 42px; padding: 0 18px; font-size: 0.92rem; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--card); border-color: var(--ink); box-shadow: none; }
.btn-light { background: #fffdf8; color: var(--ink); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.5); }
.btn-light:hover { background: #fff; }
.btn-ink { background: var(--ink); box-shadow: none; }
.btn-ink:hover { background: #000; box-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.link-arrow:hover { color: var(--accent); }
.arrow { width: 18px; height: 18px; flex: none; }

/* --- Iconos, chips e insignias -------------------------------------------- */

.icon { width: 22px; height: 22px; flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.75);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.chip .icon { width: 18px; height: 18px; color: var(--accent); }
.chip-dark { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.9); }
.chip-dark .icon { color: currentColor; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #e3f1dc;
  color: #2f6a2a;
}

.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-soon { background: rgba(31, 26, 21, 0.07); color: var(--ink-soft); }
.badge-soon::before { background: var(--sun); }
.badge-on-image { background: rgba(255, 253, 248, 0.92); backdrop-filter: blur(6px); }

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Sello circular de "Próximamente" para las postales */
.stamp {
  display: grid;
  place-items: center;
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 2px dashed currentColor;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-12deg);
  opacity: 0.8;
}

/* --- Migas de pan --------------------------------------------------------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--ink-mute);
  margin-bottom: 22px;
}

.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; opacity: 0.5; }
.crumbs a { color: var(--ink-soft); transition: color 0.2s; }
.crumbs a:hover { color: var(--accent); }
.on-dark .crumbs, .on-dark .crumbs a { color: rgba(255, 255, 255, 0.75); }

/* --- Buscador ------------------------------------------------------------- */

.search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 520px;
  padding: 6px 6px 6px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, border-color 0.25s;
}

.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint), var(--shadow); }
.search > .icon { color: var(--ink-mute); }

.search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font-size: 1.02rem;
  outline: none;
}

.search input::placeholder { color: var(--ink-mute); }
.search .btn { min-height: 48px; padding: 0 22px; }

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  z-index: 20;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

.search-results[hidden] { display: none; }

.search-results a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--ink);
}

.search-results a:hover, .search-results a.is-active { background: var(--paper); }
.search-results small { color: var(--ink-mute); font-size: 0.85rem; }
.search-results .badge { font-size: 0.66rem; }
.search-empty { padding: 12px 14px; color: var(--ink-soft); font-size: 0.95rem; }

/* --- Carrusel horizontal -------------------------------------------------- */

.rail-wrap { position: relative; }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--rail-item, minmax(260px, 300px));
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 8px var(--gutter) 28px;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
}

.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

.rail-controls { display: flex; gap: 8px; }

.rail-btn {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.rail-btn:hover:not(:disabled) { border-color: var(--ink); }
.rail-btn:disabled { opacity: 0.35; cursor: default; }
.rail-btn .arrow { width: 20px; height: 20px; }
.rail-btn[data-dir="-1"] .arrow { transform: rotate(180deg); }
.band-dark .rail-btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }

/* --- Tarjetas de ciudad --------------------------------------------------- */

.city-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 5.2;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--night);
  color: #fff;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.city-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.city-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0) 35%, rgba(10, 8, 6, 0.78) 100%);
}

a.city-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
a.city-card:hover img { transform: scale(1.06); }

.city-card .badge { position: absolute; top: 18px; left: 18px; }
.city-card small { font-size: 0.86rem; opacity: 0.85; }
.city-card h3 { font-size: clamp(2rem, 3vw, 2.6rem); margin-top: 2px; }
.city-card p { margin-top: 8px; font-size: 0.95rem; opacity: 0.88; line-height: 1.45; }

.city-card .go {
  position: absolute;
  right: 18px; top: 18px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  transform: scale(0.9);
  opacity: 0.95;
  transition: transform 0.35s var(--ease), background 0.2s;
}

a.city-card:hover .go { transform: scale(1); background: var(--terra); color: #fff; }

.city-card.is-soon img { filter: saturate(0.7); }

/* Postal ilustrada para ciudades sin fotografía */
.postcard {
  --pc-bg: #f2c98a;
  --pc-ink: #4a2b12;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 5.2;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--pc-bg);
  background-image:
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.45) 0 70px, transparent 71px),
    url("../img/route-pattern.svg");
  background-size: auto, 340px;
  color: var(--pc-ink);
  box-shadow: var(--shadow-sm);
}

.postcard small { font-weight: 600; font-size: 0.86rem; opacity: 0.8; }
.postcard h3 { font-size: clamp(2rem, 3vw, 2.6rem); font-style: italic; font-weight: 400; color: inherit; }
.postcard .stamp { position: absolute; top: 20px; right: 20px; }
.postcard-sea { --pc-bg: #a9cfd4; --pc-ink: #123a40; }
.postcard-rose { --pc-bg: #efb9a6; --pc-ink: #5a2414; }
.postcard-sun { --pc-bg: #f2c98a; --pc-ink: #4a2b12; }
.postcard-olive { --pc-bg: #c4d3a8; --pc-ink: #2c3c1c; }
.postcard-lilac { --pc-bg: #cfc6ee; --pc-ink: #2e2556; }
.postcard-sand { --pc-bg: #e6d3b3; --pc-ink: #4a3620; }

/* --- Tarjetas de tipo de free tour ---------------------------------------- */

.theme-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.theme-card {
  --tc-bg: var(--terra);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  padding: 32px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--tc-bg);
  color: #fff;
  isolation: isolate;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.theme-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.theme-card.history { --tc-bg: #b9502f; }
.theme-card.mystery { --tc-bg: var(--night-soft); }
.theme-card.essential { --tc-bg: #4c6b47; }

.theme-card .theme-icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.theme-card .theme-icon .icon { width: 26px; height: 26px; }
.theme-card h3 { margin-top: 26px; font-size: clamp(1.9rem, 2.6vw, 2.35rem); }
.theme-card p { margin-top: 12px; max-width: 30ch; color: rgba(255, 255, 255, 0.84); line-height: 1.5; }

.theme-card .theme-img {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: -1;
  width: 100%;
  height: 58%;
  object-fit: cover;
  opacity: 0.5;
  mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
  transition: transform 1.2s var(--ease), opacity 0.4s;
}

.theme-card:hover .theme-img { transform: scale(1.05); opacity: 0.65; }

.theme-card .card-link {
  align-self: flex-start;
  display: inline-flex;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  transition: background 0.2s;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-weight: 600;
}

/* --- Tarjetas de ruta ----------------------------------------------------- */

.route-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.route-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.route-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.route-card .media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--paper-deep); }
.route-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.route-card:hover .media img { transform: scale(1.05); }
.route-card .media .badge { position: absolute; top: 16px; left: 16px; }

.route-card .body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.route-card h3 { margin-top: 10px; font-size: 1.6rem; line-height: 1.12; }
.route-card p { margin-top: 10px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.5; }

.route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.route-meta span { display: inline-flex; align-items: center; gap: 6px; }
.route-meta .icon { width: 17px; height: 17px; color: var(--accent); }

.theme-mystery-img { filter: grayscale(1) contrast(1.1) brightness(0.8); }
.route-card .media.mystery::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(37, 30, 90, 0.45), rgba(10, 12, 30, 0.55));
  mix-blend-mode: multiply;
}

/* --- Bloques de característica (sin cajas) -------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 40px 48px;
}

.feature .feature-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  transform: rotate(-4deg);
}

.feature:nth-child(even) .feature-icon { transform: rotate(4deg); }
.feature .feature-icon .icon { width: 26px; height: 26px; }
.feature h3 { font-size: 1.4rem; line-height: 1.2; }
.feature p { margin-top: 10px; color: var(--ink-soft); line-height: 1.55; }
.band-dark .feature p { color: rgba(243, 239, 230, 0.7); }
.band-dark .feature .feature-icon { background: rgba(255, 255, 255, 0.08); color: var(--moon); }

/* Pasos numerados unidos por una línea de ruta */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 32px;
  counter-reset: step;
}

.steps::before {
  content: "";
  position: absolute;
  top: 28px; left: 28px; right: 10%;
  border-top: 2px dashed var(--line-strong);
}

.step { position: relative; counter-increment: step; padding-right: 12px; }

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.5rem;
  box-shadow: 0 0 0 8px var(--paper);
}

.band .step::before { box-shadow: 0 0 0 8px var(--paper-deep); }
.step h3 { font-size: 1.45rem; }
.step p { margin-top: 8px; color: var(--ink-soft); }

/* --- Recorrido (lista de paradas) ----------------------------------------- */

.stops { position: relative; counter-reset: stop; }

.stops::before {
  content: "";
  position: absolute;
  top: 26px; bottom: 26px; left: 23px;
  border-left: 2px dashed var(--line-strong);
}

.stop {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding-block: 10px;
}

.stop-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.stop.is-ready .stop-num { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 6px var(--accent-tint); }

.stop-body {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px 14px 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.35s var(--ease);
}

a.stop-body:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateX(4px); }
.stop.is-soon .stop-body { background: transparent; border-style: dashed; }

.stop-thumb {
  flex: none;
  width: 76px; height: 76px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--paper-deep);
}

.stop-text { flex: 1; min-width: 0; }
.stop-text strong { display: block; font-family: var(--serif); font-size: 1.22rem; font-weight: 500; line-height: 1.2; }
.stop-text span {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.4;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.stop .badge { flex: none; }
.stop .go { flex: none; color: var(--accent); }

.stops-more {
  margin: 14px 0 0 66px;
  font-size: 0.93rem;
  color: var(--ink-mute);
}

/* --- Mapas ---------------------------------------------------------------- */

.map {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 40%, rgba(196, 83, 47, 0.08), transparent 40%),
    var(--paper-deep);
  box-shadow: var(--shadow);
  z-index: 0;
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--ink-mute);
  font-size: 0.95rem;
  text-align: center;
}

.leaflet-container { font-family: var(--sans); background: var(--paper-deep); }
.leaflet-tile-pane { filter: sepia(0.28) saturate(0.85) brightness(1.02); }
.leaflet-container .leaflet-control-attribution { font-size: 10px; background: rgba(255, 253, 248, 0.8); }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 12px 16px; font-size: 0.92rem; line-height: 1.4; }
.leaflet-popup-content strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.leaflet-popup-content a { color: var(--terra); font-weight: 600; }

.pin {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: var(--pin, var(--terra));
  border: 3px solid #fff;
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.45);
}

.pin span { transform: rotate(45deg); color: #fff; font: 700 13px/1 var(--sans); }
.pin.is-soon { background: #fff; border-color: var(--pin, var(--terra)); }
.pin.is-soon span { color: var(--pin, var(--terra)); }
.pin.is-focus { scale: 1.25; }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.legend-history { --c: #c4532f; }
.legend-mystery { --c: #6d5ce0; }
.legend-essential { --c: #4c6b47; }

/* Parada destacada (imagen + texto en una sola pieza) */
.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}

.spotlight:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.spotlight-media { aspect-ratio: 1; overflow: hidden; }
.spotlight-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.spotlight:hover .spotlight-media img { transform: scale(1.04); }
.spotlight-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(32px, 5vw, 72px); }
.spotlight-copy .eyebrow { margin-bottom: 18px; }
.spotlight-copy .lead { margin-top: 18px; }
.spotlight-copy .chips { margin: 26px 0 32px; }

/* Índice de lugares con números grandes */
.place-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(32px, 6vw, 80px);
  border-top: 1px solid var(--line-strong);
}

.place-index li {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-strong);
}

.place-index li > span { font-family: var(--serif); font-size: 1rem; font-style: italic; color: var(--accent); min-width: 2ch; }
.place-index h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.place-index p { margin-top: 6px; color: var(--ink-soft); }

/* --- Héroe genérico de página --------------------------------------------- */

.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px); }

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.page-hero .lead { margin-top: 24px; max-width: 34em; }
.page-hero .chips, .page-hero .btn-row { margin-top: 30px; }

.page-hero-media {
  position: relative;
  aspect-ratio: 5 / 6;
}

.page-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.page-hero-media .note {
  position: absolute;
  left: -28px; bottom: 32px;
  max-width: 270px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.35;
  transform: rotate(-2deg);
}

.page-hero-media .note small {
  display: block;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Héroe a sangre con fotografía */
.cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(78vh, 720px);
  margin: 0 clamp(8px, 1.4vw, 20px);
  padding-block: 120px clamp(40px, 6vw, 72px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #fff;
  isolation: isolate;
}

.cover > img, .cover > picture > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 10, 6, 0.1) 0%, rgba(14, 10, 6, 0.25) 40%, rgba(14, 10, 6, 0.8) 100%);
}

.cover h1 em { color: #ffd9c7; }
.cover .lead { margin-top: 20px; max-width: 36em; color: rgba(255, 255, 255, 0.88); }
.cover .chips { margin-top: 28px; }
.cover .btn-row { margin-top: 32px; }

/* --- Cita destacada ------------------------------------------------------- */

.statement {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.8vw, 3.1rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.statement em { color: var(--accent); }

/* --- Preguntas frecuentes ------------------------------------------------- */

.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.3s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq details p { max-width: 62ch; padding: 0 56px 26px 0; color: var(--ink-soft); }

/* --- Formularios ---------------------------------------------------------- */

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { display: grid; gap: 8px; font-weight: 600; font-size: 0.93rem; }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  font-weight: 400;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.form-note { font-size: 0.88rem; color: var(--ink-mute); }

/* --- Llamada final -------------------------------------------------------- */

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px);
  border-radius: var(--radius-xl);
  background-color: var(--terra);
  background-image: url("../img/route-pattern-light.svg");
  background-size: 420px;
  color: #fff;
  text-align: center;
}

.cta-panel h2 { max-width: 15ch; margin-inline: auto; }
.cta-panel h2 em { color: #ffe3c7; }
.cta-panel p { max-width: 40em; margin: 20px auto 0; color: rgba(255, 255, 255, 0.86); font-size: 1.12rem; }
.cta-panel .btn-row { justify-content: center; margin-top: 34px; }

/* --- Pie ------------------------------------------------------------------ */

.site-footer {
  margin-top: var(--section);
  padding-top: clamp(56px, 7vw, 88px);
  background: var(--ink);
  color: rgba(246, 241, 231, 0.7);
  font-size: 0.95rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
  gap: 40px;
  padding-bottom: 56px;
}

.footer-brand p { max-width: 30em; margin-top: 18px; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-col h2 { margin-bottom: 6px; font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #f6f1e7; }
.footer-col a, .footer-bottom a { transition: color 0.2s; }
.footer-col a:hover, .footer-bottom a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-block: 26px 34px;
  border-top: 1px solid rgba(246, 241, 231, 0.12);
  font-size: 0.88rem;
}

.footer-tagline { margin-left: auto; font-family: var(--serif); font-style: italic; }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 980px) {
  .theme-cards, .route-cards { grid-template-columns: 1fr; }
  .theme-card { min-height: 400px; }
  .theme-card .theme-img { height: 46%; }
  .features { --cols: 2; }
  .page-hero-grid, .spotlight { grid-template-columns: 1fr; }
  .spotlight-media { aspect-ratio: 4 / 3; }
  .place-index { grid-template-columns: 1fr; }
  .page-hero-media { aspect-ratio: 4 / 3; }
  .page-hero-media .note { left: 16px; bottom: -24px; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .features, .steps { --cols: 1; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; border-top: 0; border-left: 2px dashed var(--line-strong); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; }
  .step::before { grid-row: span 2; margin: 0; }
  .form-row { grid-template-columns: 1fr; }
  .search .btn { padding: 0 16px; }
  .search .btn .label { display: none; }
  .stop-thumb { width: 56px; height: 56px; }
  .stop .badge { display: none; }
  .cover { min-height: 76vh; margin: 0 8px; }
  .footer-tagline { margin-left: 0; width: 100%; }
}

/* --- Selector de idioma -------------------------------------------------- */

.lang-switch { position: relative; }

.lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  list-style: none;
  transition: background 0.2s, color 0.2s;
}

.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { background: rgba(31, 26, 21, 0.05); color: var(--ink); }
.lang-switch summary .icon { width: 18px; height: 18px; }
.lang-switch summary .chevron { width: 14px; height: 14px; transition: transform 0.2s; }
.lang-switch[open] summary .chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: grid;
  min-width: 170px;
  padding: 6px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.lang-menu a { padding: 10px 14px; border-radius: 10px; font-weight: 500; color: var(--ink); }
.lang-menu a:hover { background: var(--paper); }
.lang-menu a[aria-current] { color: var(--terra); font-weight: 700; }

@media (max-width: 980px) {
  .lang-switch { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .lang-switch summary { padding: 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 400; color: var(--ink); }
  .lang-menu { position: static; margin-top: 10px; grid-template-columns: repeat(2, 1fr); box-shadow: none; }
}

/* --- Barra de vista previa (sesión del panel) --------------------------- */

.preview-bar {
  position: relative;
  z-index: 60;
  padding: 8px 16px;
  background: #fbe6a6;
  color: #5b430f;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.preview-bar a { margin-left: 8px; text-decoration: underline; }

.search-results .is-disabled {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  color: var(--ink-mute);
}

.steps-4 { --cols: 4; }
@media (max-width: 980px) { .steps-4 { --cols: 2; } }
@media (max-width: 720px) { .steps-4 { --cols: 1; } }
