/* ==========================================================================
   Free Tours Free · Páginas
   Estilos propios de cada plantilla: portada, destinos, ciudad, ruta,
   parada y páginas de información.
   ========================================================================== */

.eyebrow-moon { --accent: var(--moon); }
.eyebrow-light { --accent: #fff; }
.link-light { color: #fff; }
.link-light:hover { color: var(--moon); }
.btn-on-color { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-on-color:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ==========================================================================
   Portada
   ========================================================================== */

.home-hero { padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 72px); overflow: hidden; }

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.home-hero-copy .eyebrow { margin-bottom: 26px; }
.home-hero-copy .lead { margin-top: 28px; max-width: 31em; }
.home-hero-copy .search { margin-top: 36px; }
.home-hero-copy .chips { margin-top: 22px; }

/* Collage de la portada */
.hero-collage {
  position: relative;
  aspect-ratio: 50 / 56;
  max-width: 560px;
  justify-self: end;
  width: 100%;
}

.collage-main, .collage-stop {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.collage-main { inset: 0 0 18% 16%; animation: rise 1s var(--ease) 0.1s both; }
.collage-main img, .collage-stop img { width: 100%; height: 100%; object-fit: cover; }

.collage-main figcaption {
  position: absolute;
  left: 22px; right: 22px; bottom: 20px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  color: #fff;
}

.collage-main figcaption .badge { position: static; }
.collage-main figcaption strong { font-family: var(--serif); font-size: 2rem; font-weight: 500; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5); }
.collage-main::after { content: ""; position: absolute; inset: 55% 0 0; z-index: 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.45)); pointer-events: none; }
.collage-main figcaption { z-index: 1; }

.collage-stop {
  left: 0; bottom: 0;
  width: 44%;
  aspect-ratio: 3 / 4;
  border: 6px solid var(--card);
  border-radius: 26px;
  rotate: -5deg;
  animation: rise 1s var(--ease) 0.3s both;
}

.collage-stop figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.2;
}

.collage-stop figcaption small { display: block; margin-bottom: 3px; font-family: var(--sans); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }

.collage-audio, .collage-pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
}

.collage-audio { right: -12px; top: 9%; animation: rise 1s var(--ease) 0.5s both; }
.collage-audio small, .collage-pin span { display: block; font-size: 0.74rem; font-weight: 500; color: var(--ink-mute); }
.collage-pin strong { display: block; font-size: 0.92rem; color: var(--ink); }

.collage-audio .play {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--terra);
  color: #fff;
}

.collage-audio .play .icon { width: 15px; height: 15px; margin-left: 2px; }

.wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.wave i { width: 3px; height: 40%; border-radius: 3px; background: var(--terra); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -0.2s; }
.wave i:nth-child(3) { animation-delay: -0.5s; }
.wave i:nth-child(4) { animation-delay: -0.8s; }
.wave i:nth-child(5) { animation-delay: -0.35s; }

@keyframes wave { 50% { height: 100%; } }

.collage-pin { right: 6%; bottom: 7%; padding-right: 20px; animation: rise 1s var(--ease) 0.65s both; }
.collage-pin > .icon { width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: var(--terra-tint); color: var(--terra-deep); }

/* Tarjeta final del carrusel */
.rail-end {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--line-strong);
  transition: border-color 0.25s, background 0.25s;
}

.rail-end:hover { border-color: var(--terra); background: var(--card); }
.rail-end .icon { width: 40px; height: 40px; color: var(--terra); margin-bottom: 8px; }
.rail-end strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; line-height: 1.1; }
.rail-end span { color: var(--ink-soft); font-size: 0.95rem; }

/* "Así es una parada" */
.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.showcase-copy .eyebrow { margin-bottom: 18px; }
.showcase-copy .lead { margin-top: 22px; }

.showcase-points { display: grid; gap: 22px; margin: 36px 0 40px; }
.showcase-points li { display: flex; gap: 18px; align-items: flex-start; }
.showcase-points li > span { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--card); color: var(--terra); box-shadow: var(--shadow-sm); }
.showcase-points strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.showcase-points p { color: var(--ink-soft); }

.showcase-device { position: relative; display: block; max-width: 440px; margin-inline: auto; padding: 0 30px; }

.device {
  overflow: hidden;
  border-radius: 36px;
  background: var(--card);
  border: 10px solid #fff;
  box-shadow: var(--shadow-lg);
  rotate: 2deg;
  transition: rotate 0.6s var(--ease), translate 0.6s var(--ease);
}

.showcase-device:hover .device { rotate: 0deg; translate: 0 -6px; }
.device-media { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: 24px; }
.device-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.device-step { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 253, 248, 0.92); font-size: 0.78rem; font-weight: 700; }
.device-body { padding: 22px 14px 18px; }
.device-body small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terra); }
.device-body strong { display: block; margin-top: 6px; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; line-height: 1.1; }
.device-body p { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }

.device-audio { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--paper); }
.device-audio .play { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--terra); color: #fff; }
.device-audio .play .icon { width: 14px; height: 14px; margin-left: 2px; }
.device-audio .bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.device-audio .bar i { display: block; width: 38%; height: 100%; background: var(--terra); }
.device-audio small { font-size: 0.8rem; color: var(--ink-mute); font-weight: 600; }

.device-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--ink-soft);
}

.device-tag .icon { width: 36px; height: 36px; padding: 8px; border-radius: 12px; }
.device-tag strong { display: block; color: var(--ink); font-size: 0.9rem; }
.tag-doc { left: -10px; top: 13%; rotate: -3deg; }
.tag-doc .icon { background: #e3f1dc; color: #2f6a2a; }
.tag-legend { right: -14px; top: 38%; rotate: 3deg; }
.tag-legend .icon { background: #e6e2ff; color: #5a49c9; }

/* Manifiesto */
.manifesto { text-align: center; }
.manifesto .statement { max-width: 18ch; margin: 22px auto 0; font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: 1.02; }
.manifesto-points { margin-top: clamp(48px, 7vw, 80px); text-align: left; }

/* Ruta destacada */
.featured-route { margin: 0 clamp(8px, 1.4vw, 20px); border-radius: var(--radius-xl); overflow: hidden; }
.featured-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 7vw, 96px); }
.featured-media { position: relative; }
.featured-media img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: var(--radius-lg); filter: sepia(0.35) contrast(1.05); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
.featured-caption { display: block; margin-top: 14px; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(243, 239, 230, 0.55); }
.featured-copy .eyebrow { margin-bottom: 18px; }
.featured-copy h2 em { color: var(--moon); }
.featured-copy .lead { margin-top: 22px; }
.featured-copy .chips { margin-top: 28px; }
.featured-copy .btn-row { margin-top: 36px; gap: 24px; }

@media (max-width: 980px) {
  .home-hero-grid, .showcase-grid, .featured-grid { grid-template-columns: 1fr; }
  .hero-collage { justify-self: center; max-width: 480px; margin-top: 12px; }
  .featured-media img { aspect-ratio: 4 / 3; }
}

@media (max-width: 720px) {
  .collage-main figcaption .badge { display: none; }
  .collage-stop figcaption small { display: none; }
  .collage-stop { width: 42%; }
  .collage-stop figcaption { padding: 32px 10px 10px; font-size: 0.86rem; }
  .collage-stop figcaption small { font-size: 0.58rem; }
  .collage-audio { right: 0; }
  .collage-pin { display: none; }
  .tag-doc { left: -6px; }
  .tag-legend { right: -6px; }
}

/* ==========================================================================
   Ciudad
   ========================================================================== */

.map-split {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.map-split-copy .eyebrow { margin-bottom: 18px; }
.map-split-copy .lead { margin-top: 18px; }
.map-split-copy .map-legend { margin-top: 28px; }
.map-tall { min-height: 560px; }

.map-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.pin-sample {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 50% 50% 50% 3px;
  transform: rotate(-45deg);
  background: var(--terra);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

@media (max-width: 980px) {
  .map-split { grid-template-columns: 1fr; }
  .map-tall { min-height: 440px; }
}

/* ==========================================================================
   Ruta
   ========================================================================== */

.hero-night {
  margin: 0 clamp(8px, 1.4vw, 20px);
  padding-top: clamp(48px, 7vw, 96px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 80% 10%, rgba(139, 124, 246, 0.22), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(196, 83, 47, 0.12), transparent 40%),
    var(--night);
  color: #f3efe6;
}

.hero-night h1 em { color: var(--moon); }
.hero-night .lead { color: rgba(243, 239, 230, 0.75); }
.hero-night .page-hero-media .note { color: var(--ink); --accent: #5a4bd0; }

.duotone { filter: sepia(0.5) hue-rotate(200deg) saturate(0.9) contrast(1.05) brightness(0.92); }

.route-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 72px);
}

.route-map { position: sticky; top: calc(var(--header-h) + 24px); }
.route-map .map { height: min(640px, calc(100vh - var(--header-h) - 64px)); min-height: 420px; }

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

.route-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.route-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.route-link img { flex: none; width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.route-link > span { flex: 1; min-width: 0; }
.route-link small { font-size: 0.7rem; }
.route-link strong { display: block; margin-top: 2px; font-family: var(--serif); font-size: 1.12rem; font-weight: 500; line-height: 1.2; }
.route-link .arrow { color: var(--accent); transition: transform 0.3s var(--ease); }
.route-link:hover .arrow { transform: translateX(4px); }

@media (max-width: 980px) {
  .route-layout, .route-links { grid-template-columns: 1fr; }
  .route-map { position: static; }
  .route-map .map { height: 420px; }
}

/* ==========================================================================
   Parada (artículo)
   ========================================================================== */

.read-progress {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 49;
  height: 3px;
}

.read-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.stop-hero { padding-block: clamp(32px, 5vw, 64px) clamp(32px, 4vw, 48px); }

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

.stop-hero-copy .eyebrow { margin-bottom: 18px; }
.stop-hero-copy .lead { margin-top: 22px; max-width: 32em; }
.stop-hero-copy .chips { margin-top: 26px; }

.stop-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* Reproductor */
.listen { display: flex; align-items: center; gap: 12px; margin-top: 32px; }

.listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 24px 8px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-align: left;
  box-shadow: var(--shadow);
  transition: background 0.2s, transform 0.25s var(--ease);
}

.listen-btn:hover { background: #000; transform: translateY(-1px); }
.listen-btn { position: relative; overflow: hidden; }
/* Barra de progreso del audio (la pone js/listen.js con --progress) */
.listen-btn::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: calc(var(--progress, 0) * 100%);
  background: var(--accent);
  transition: width 0.25s linear;
}
.listen-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.listen-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
}

.listen-icon .icon { width: 18px; height: 18px; grid-area: 1 / 1; }
.listen-icon .icon:first-child { margin-left: 3px; }
.listen-icon .icon:last-child, .listen-btn.is-playing .listen-icon .icon:first-child { display: none; }
.listen-btn.is-playing .listen-icon .icon:last-child { display: block; }
.listen-btn.is-playing .listen-icon { animation: pulse 1.6s ease-in-out infinite; }

@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(139, 124, 246, 0.25); } }

.listen-label strong { display: block; font-size: 0.98rem; }
.listen-label small { display: block; font-size: 0.8rem; opacity: 0.7; }

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

.icon-btn:hover { border-color: var(--ink); }

/* Cuerpo del artículo + barra lateral */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: clamp(40px, 7vw, 100px);
}

.article-body { max-width: 700px; font-size: 1.1rem; line-height: 1.75; }
.article-body > p + p { margin-top: 1.1em; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.article-intro {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  line-height: 1.5;
  color: var(--ink);
}

.article-intro::first-letter {
  float: left;
  margin: 0.06em 0.12em 0 0;
  font-size: 3.6em;
  line-height: 0.8;
  font-weight: 500;
  color: var(--accent);
}

.article-body h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 2.4em 0 0.8em;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.article-body h2 > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
}

.figure { margin: 2em 0; }
.figure img { width: 100%; border-radius: var(--radius-lg); }
.figure figcaption, .observe figcaption { margin-top: 12px; font-size: 0.9rem; line-height: 1.5; color: var(--ink-mute); }

.figure-archive {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--paper-deep);
}

.figure-archive img { max-width: 380px; margin-inline: auto; border-radius: 6px; box-shadow: var(--shadow); }
.figure-archive figcaption { text-align: center; }

.pullquote {
  position: relative;
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
}

.observe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.observe img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.observe figcaption strong { display: block; margin-bottom: 2px; font-family: var(--serif); font-size: 1.1rem; font-weight: 500; color: var(--ink); }

.truth { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.truth > div { padding: 24px; border-radius: var(--radius-lg); font-size: 1rem; line-height: 1.6; }
.truth-doc { background: #e8f1e1; }
.truth-legend { background: #ebe7ff; }

.truth-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.truth-label .icon { width: 20px; height: 20px; }
.truth-doc .truth-label { color: #2f6a2a; }
.truth-legend .truth-label { color: #4535b5; }

.sources {
  margin-top: 3.5em;
  padding-top: 2em;
  border-top: 1px solid var(--line-strong);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.sources h2 { display: block; margin: 0 0 0.8em; font-size: 1.3rem; }
.sources ul { margin: 1em 0; padding-left: 1.2em; list-style: disc; }
.sources li + li { margin-top: 4px; }

.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }

.aside-card {
  margin: 0;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.aside-card h2 {
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.toc a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.toc a:hover { color: var(--accent); }

.toc a span {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  font-size: 0.8rem;
}

.map-mini { min-height: 200px; border-radius: var(--radius); box-shadow: none; }
.aside-meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.92rem; color: var(--ink-soft); }
.aside-meta .icon { width: 18px; height: 18px; color: var(--accent); }

.facts { display: grid; gap: 14px; }
.facts dt { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.facts dd { margin: 2px 0 0; font-family: var(--serif); font-size: 1.08rem; line-height: 1.35; }

/* Navegación entre paradas */
.stop-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: var(--section);
}

.stop-nav > * {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 30px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.stop-nav small { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.stop-nav-prev small .arrow { transform: rotate(180deg); width: 16px; }
.stop-nav strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.stop-nav span { color: var(--ink-soft); font-size: 0.95rem; }
.stop-nav-prev { transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.stop-nav-prev:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stop-nav-next { text-align: right; align-items: flex-end; }
.stop-nav .is-soon { background: transparent; border: 2px dashed var(--line-strong); box-shadow: none; }
.stop-nav .is-soon small { color: var(--ink-mute); }

@media (max-width: 980px) {
  .stop-hero-grid, .article-layout { grid-template-columns: 1fr; }
  .stop-hero-media { order: -1; }
  .stop-hero-media img { aspect-ratio: 4 / 3; }
  .article-aside { position: static; grid-template-columns: 1fr 1fr; }
  .article-aside .toc { display: none; }
}

@media (max-width: 720px) {
  .observe, .truth, .stop-nav, .article-aside { grid-template-columns: 1fr; }
  .observe img { aspect-ratio: 4 / 3; }
  .stop-nav-next { text-align: left; align-items: flex-start; }
}

/* ==========================================================================
   Tipos de free tour
   ========================================================================== */

.page-theme .page-hero .display { font-size: clamp(2.6rem, 6vw, 5.2rem); }
.theme-mystery .cta-panel { background-color: var(--night-soft); }
.theme-mystery .cta-panel h2 em { color: var(--moon); }
.theme-essential .cta-panel { background-color: var(--olive); }

.what-is { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px clamp(40px, 6vw, 96px); align-items: end; }
.what-is .eyebrow { grid-column: 1 / -1; }
.what-is .statement { font-size: clamp(2rem, 4.4vw, 3.6rem); }

.features-4 { --cols: 4; }

.preview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1fr;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.preview-stops { padding: 20px 16px; }
.preview-stops h3 { margin: 8px 0 18px; font-size: 1.45rem; line-height: 1.15; }
.preview-stops li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-weight: 500; color: var(--ink-soft); }
.preview-stops li span { font-family: var(--serif); font-style: italic; color: var(--accent); }
.preview-stops li.is-active { background: var(--accent-tint); color: var(--ink); }

.preview-article { display: block; padding: 12px; border-radius: var(--radius-lg); background: var(--paper); }
.preview-article img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); margin-bottom: 18px; }
.preview-article h3 { margin: 6px 0 10px; font-size: 1.5rem; line-height: 1.15; }
.preview-article p { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.55; padding-bottom: 10px; }
a.preview-article:hover h3 { color: var(--accent); }
.preview-map { min-height: 100%; height: auto; box-shadow: none; }

.collections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(24px, 4vw, 56px);
}

.collections li { padding: 28px 0 32px; border-top: 1px solid var(--line-strong); }
.collections li span { font-family: var(--serif); font-style: italic; color: var(--accent); }
.collections h3 { margin-top: 10px; font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.collections p { margin-top: 8px; color: var(--ink-soft); }
.collections-note { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 0.93rem; color: var(--ink-mute); }
.collections-note .icon { color: var(--accent); }

@media (max-width: 1100px) {
  .features-4 { --cols: 2; }
  .preview { grid-template-columns: 1fr 1fr; }
  .preview-map { grid-column: 1 / -1; min-height: 320px; }
}

@media (max-width: 720px) {
  .features-4 { --cols: 1; }
  .what-is, .preview, .collections { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Destinos y país
   ========================================================================== */

.dest-hero { text-align: center; padding-bottom: clamp(40px, 5vw, 64px); }
.dest-hero .display { max-width: 14ch; margin: 20px auto 0; font-size: clamp(2.8rem, 6.6vw, 5.6rem); }
.dest-hero .lead { margin: 24px auto 0; max-width: 36em; }
.dest-search { margin: 36px auto 0; padding-right: 20px; }

.dest-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.dest-feature-media {
  position: relative;
  display: block;
  aspect-ratio: 5 / 4.6;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.dest-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.dest-feature-media:hover img { transform: scale(1.04); }
.dest-feature-media::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); }
.dest-feature-media .badge { position: absolute; top: 22px; left: 22px; z-index: 1; }
.dest-feature-media div { position: absolute; left: 30px; bottom: 26px; z-index: 1; }
.dest-feature-media small { font-size: 0.95rem; opacity: 0.85; }
.dest-feature-media strong { display: block; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 500; line-height: 1; }
.dest-feature-copy .eyebrow { margin-bottom: 18px; }
.dest-feature-copy .lead { margin: 18px 0 28px; }
.route-links-stack { grid-template-columns: 1fr; }

.region-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }

.filter-chip {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.directory { display: grid; gap: 44px; }

.region {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.region-head h3 { font-size: 2rem; }
.region-head p { margin-top: 4px; color: var(--ink-mute); font-size: 0.95rem; }
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }

.place {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 14px 18px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
}

.place strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; line-height: 1.2; }
.place small { color: var(--ink-mute); font-size: 0.85rem; }
.place .badge { font-size: 0.66rem; }
.place.is-ready { border: 0; background: var(--card); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.place.is-ready:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.place[hidden], .region[hidden] { display: none; }

.directory-empty { margin-top: 24px; padding: 24px; border-radius: var(--radius); background: var(--card); text-align: center; color: var(--ink-soft); }
.directory-empty a { color: var(--terra); font-weight: 600; text-decoration: underline; }

/* Rejilla de ciudades de un país */
.city-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 980px) {
  .dest-feature { grid-template-columns: 1fr; }
  .region { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Páginas de información
   ========================================================================== */

.centered-hero, .centered-text { text-align: center; }
.centered-hero .lead { margin: 22px auto 0; max-width: 34em; }
.centered-hero .eyebrow { margin-bottom: 20px; }
.centered-hero .btn-row { justify-content: center; margin-top: 32px; }

.page-hero .page-hero-grid .lead + .lead { margin-top: 14px; }

.truth-large > div { padding: clamp(28px, 4vw, 44px); }
.truth-large p:not(.truth-label) { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; }

.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.process li {
  display: flex;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.process li > span { font-family: var(--serif); font-size: 2.4rem; font-style: italic; line-height: 1; color: var(--accent); }
.process h3 { font-size: 1.4rem; }
.process p { margin-top: 6px; color: var(--ink-soft); }

.levels-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.levels-grid .eyebrow { margin-bottom: 18px; }
.levels-grid .lead { margin-top: 18px; }

/* Niveles apilados como tarjetas de un archivo */
.levels { display: grid; gap: 0; }

.levels li {
  position: relative;
  padding: 26px 30px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.levels li + li { margin-top: -10px; }
.levels li:nth-child(1) { margin-right: 64px; background: var(--terra-tint); }
.levels li:nth-child(2) { margin: -10px 32px 0; background: #f9ecdf; }
.levels li:nth-child(3) { margin-left: 64px; }
.levels span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terra); }
.levels h3 { margin-top: 6px; font-size: 1.5rem; }
.levels p { margin-top: 6px; color: var(--ink-soft); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-grid .lead { margin-top: 22px; }
.contact-reasons { display: grid; gap: 22px; margin-top: 40px; }
.contact-reasons li { display: flex; gap: 16px; }
.contact-reasons li > span { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-tint); color: var(--accent-deep); }
.contact-reasons h2 { font-size: 1.25rem; }
.contact-reasons p { color: var(--ink-soft); }

.contact-form {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.contact-form .btn { justify-self: start; }
.form-note a { color: var(--terra); }

.faq-layout { max-width: calc(860px + var(--gutter) * 2); }
.faq-title { margin: 56px 0 8px; font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.faq-title:first-child { margin-top: 0; }
.faq details a { color: var(--terra); text-decoration: underline; text-underline-offset: 3px; }

.legal-date { margin-top: 14px; font-size: 0.92rem; color: var(--ink-mute); }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 720px); gap: clamp(32px, 6vw, 80px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-body h2 { margin: 2em 0 0.6em; font-size: 1.7rem; }
.legal-body p { color: var(--ink-soft); }
.legal-body a { color: var(--terra); text-decoration: underline; }
.legal-body .legal-notice { padding: 18px 22px; border-radius: var(--radius); background: #fbf0d6; color: #6b4d12; font-size: 0.95rem; }

.not-found { min-height: 60vh; display: grid; align-items: center; }

@media (max-width: 980px) {
  .process { grid-template-columns: 1fr 1fr; }
  .levels-grid, .contact-grid, .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

@media (max-width: 720px) {
  .process { grid-template-columns: 1fr; }
  .levels li:nth-child(n) { margin-left: 0; margin-right: 0; }
}

/* ==========================================================================
   Piezas de la versión dinámica
   ========================================================================== */

.city-intro { text-align: center; }
.statement-small {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
}

/* Gastronomía */
.dishes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

.dish {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.dish-media { aspect-ratio: 16 / 10; overflow: hidden; }
.dish-media img { width: 100%; height: 100%; object-fit: cover; }

.dish-placeholder {
  display: grid;
  place-items: center;
  background-image: url("../img/route-pattern.svg");
  background-size: 260px;
}

.dish-placeholder .icon { width: 44px; height: 44px; opacity: 0.6; }
.dish-0 { background-color: #f2c98a; color: #4a2b12; }
.dish-1 { background-color: #efb9a6; color: #5a2414; }
.dish-2 { background-color: #c4d3a8; color: #2c3c1c; }
.dish-3 { background-color: #e6d3b3; color: #4a3620; }

.dish-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.dish h3 { font-size: 1.45rem; line-height: 1.15; }
.dish-body > p { margin-top: 10px; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.55; }
.dish-body > p.dish-where { margin-top: auto; padding-top: 18px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terra); }
.dish-places { display: grid; gap: 8px; margin-top: 10px; }

.dish-places a, .dish-places li > span {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--paper);
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: background 0.2s;
}

.dish-places a:hover { background: var(--terra-tint); }
.dish-places .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--terra); flex: none; }
.dish-places strong { display: block; color: var(--ink); font-size: 0.95rem; }

/* «Cómo saber que estás aquí» */
.recognize-wrap { margin-top: 8px; }

.recognize {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 2px solid var(--accent-tint);
  box-shadow: var(--shadow-sm);
}

.recognize:not(:has(.recognize-media)) { grid-template-columns: 1fr; padding: 24px 28px; }
.recognize-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.recognize-copy { padding-right: 12px; }
.recognize-copy > p:not(.recognize-label) { font-size: 1.05rem; line-height: 1.6; color: var(--ink-soft); }
.recognize-copy .link-arrow { margin-top: 16px; }
.recognize-copy .link-arrow .icon { width: 18px; height: 18px; }

.recognize-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.recognize-label .icon { width: 20px; height: 20px; }
.listen .icon-btn .icon { width: 20px; height: 20px; }
.icon-btn.is-done { border-color: #2f6a2a; color: #2f6a2a; }

.aside-btn { width: 100%; margin-top: 12px; gap: 8px; }
.aside-btn .icon { width: 18px; height: 18px; }
.sources-text p { margin: 0; }

/* Barra fija inferior en el móvil (paradas) */
.action-bar { display: none; }

@media (max-width: 980px) {
  .page-stop .site-footer { padding-bottom: 80px; }

  .action-bar {
    position: fixed;
    left: 10px; right: 10px;
    bottom: calc(env(safe-area-inset-bottom) + 10px);
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 6px;
    padding: 6px;
    border-radius: 22px;
    background: rgba(31, 26, 21, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.55);
    transform: translateY(140%);
    transition: transform 0.4s var(--ease);
  }

  .action-bar.is-visible { transform: none; }

  .action-bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 50px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
  }

  .action-bar-btn .icon, .action-bar-btn .arrow { width: 19px; height: 19px; }
  .action-bar-btn.is-primary { background: var(--accent); }
  .action-bar-btn.is-playing { background: rgba(255, 255, 255, 0.14); }
}

/* Ruta: botón del modo guía sobre el mapa y bloque promocional */
.route-map { display: grid; gap: 12px; }
.guide-launch { width: 100%; gap: 10px; }
.guide-launch .icon, .btn .icon { width: 19px; height: 19px; }

.guide-promo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.guide-promo-grid .eyebrow { margin-bottom: 18px; }
.guide-promo-grid .lead { margin: 18px 0 30px; }

.steps-vertical { --cols: 1; gap: 18px; }
.steps-vertical::before { top: 28px; bottom: 28px; left: 27px; right: auto; border-top: 0; border-left: 2px dashed var(--line-strong); }
.steps-vertical .step { display: grid; grid-template-columns: 56px 1fr; align-items: center; column-gap: 20px; }
.steps-vertical .step::before { margin: 0; }

/* Consejos */
.tips { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-xl); background: var(--card); box-shadow: var(--shadow-sm); }
.tips ul { display: grid; gap: 14px; margin-top: 18px; }
.tips li { display: flex; gap: 12px; color: var(--ink-soft); }
.tips li .icon { flex: none; width: 22px; height: 22px; color: #2f6a2a; }

@media (max-width: 980px) {
  .guide-promo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .recognize { grid-template-columns: 1fr; padding: 14px; gap: 16px; }
  .recognize-copy { padding: 0 6px 6px; }
}

/* Texto del artículo que llega de la base de datos (HTML simple) */
.article-body > p:first-child {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.5;
  color: var(--ink);
}

.article-body > p:first-child::first-letter {
  float: left;
  margin: 0.06em 0.12em 0 0;
  font-size: 3.6em;
  line-height: 0.8;
  font-weight: 500;
  color: var(--accent);
}

.article-body > * + p, .article-body > p + * { margin-top: 1.1em; }

.article-body blockquote {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
}

.article-body ul, .article-body ol { display: grid; gap: 12px; margin: 1.2em 0; }

.article-body ul > li {
  position: relative;
  padding-left: 28px;
}

.article-body ul > li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.6em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
}

.article-body .observe, .article-body .truth { margin-top: 2em; }
.article-body .sources ul > li { padding-left: 0; }
.article-body .sources ul > li::before { display: none; }
.article-body .sources ul { gap: 4px; padding-left: 1.2em; list-style: disc; }

/* Ciudad · Qué ver en un día */
.day-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: day;
}

.day-step {
  position: relative;
  padding: 26px 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--accent);
}

.day-moment {
  margin: 0 0 6px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-step h3 { margin: 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.2; }
.day-step h3 a { color: inherit; text-decoration: none; }
.day-step h3 a:hover { color: var(--accent-deep); }
.day-meta { margin: 6px 0 16px; color: var(--ink-mute); font-size: 0.85rem; }

.day-stops { margin: 0; padding: 0; list-style: none; counter-reset: stop; }
.day-stops li { counter-increment: stop; border-top: 1px solid var(--line); }
.day-stops a {
  display: grid;
  grid-template-columns: 26px 1fr;
  column-gap: 10px;
  padding: 10px 0;
  color: var(--ink);
  text-decoration: none;
}
.day-stops a::before {
  content: counter(stop);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 700;
}
.day-stops strong { font-size: 0.95rem; font-weight: 600; }
.day-stops span { color: var(--ink-soft); font-size: 0.85rem; line-height: 1.4; }
.day-stops a:hover strong { color: var(--accent-deep); }

.day-food {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--paper-deep);
  color: var(--ink-soft);
}
.day-food .icon { flex: none; width: 22px; height: 22px; color: var(--terra); }
.day-food strong { color: var(--ink); }
