/* ==========================================================================
   app.css — Billete en Blanco · Public site design system
   Spec: 40_web_public.md §0 (visual contract), §2 (layout)
   References: home.png, posts.png, post.png, quien-soy.png, ruta.png
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (Google Fonts loaded via <link> in layout.php)
   -------------------------------------------------------------------------- */
/* Fraunces: display serif for headings
   Inter: humanist sans-serif for body copy */

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour */
  --c-bg:          #FAFAF7;   /* broken white — page background */
  --c-surface:     #FFFFFF;   /* card / section background */
  --c-border:      #E5E5E0;   /* card borders, dividers */
  --c-text:        #111111;   /* primary text */
  --c-text-muted:  #666660;   /* dates, locations, meta */
  --c-text-light:  #999993;   /* placeholders, captions */
  --c-accent:      #1B4F8A;   /* deep blue — links, buttons, active nav */
  --c-accent-dark: #153D6B;   /* hover state */
  --c-tag-bg:      #EEEEEA;   /* tag pill background */
  --c-tag-text:    #444440;   /* tag pill text */
  --c-stripe-bg:   #F3F3EF;   /* info stripe row */
  --c-input-border:#C8C8C3;
  --c-footer-bg:   #F3F3EF;

  /* Typography */
  --font-serif:    'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:     'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-width:     1100px;
  --gap:           1.5rem;     /* standard column gap */
  --radius:        6px;        /* card corner radius */

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
}

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--c-accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

ul, ol { list-style: none; }

/* --------------------------------------------------------------------------
   4. Typography scale
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-family: var(--font-sans); font-weight: 600; }

p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }

small { font-size: 0.8125rem; }

/* --------------------------------------------------------------------------
   5. Layout utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.container--narrow {
  max-width: 720px;
}

/* 2-column grid used on home post cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

/* --------------------------------------------------------------------------
   6. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: var(--sp-6);
}

.site-logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; color: var(--c-accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.site-nav a {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--c-text);
  border-bottom-color: var(--c-accent);
  text-decoration: none;
}

/* Hamburger (mobile) — hidden by default, shown at <640px */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  color: var(--c-text);
}

/* --------------------------------------------------------------------------
   7. Info stripe (home page)
   -------------------------------------------------------------------------- */
.info-stripe {
  background: var(--c-stripe-bg);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-3) 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  letter-spacing: 0.01em;
}

.info-stripe strong {
  color: var(--c-text);
  font-weight: 600;
}

.info-stripe__sep {
  margin-inline: var(--sp-3);
  color: var(--c-border);
}

/* --------------------------------------------------------------------------
   8. Hero / page title block
   -------------------------------------------------------------------------- */
.page-hero {
  text-align: center;
  padding: var(--sp-12) 0 var(--sp-10);
}

.page-hero h1 {
  margin-bottom: var(--sp-4);
}

.page-hero__sub {
  font-size: 1.0625rem;
  color: var(--c-text-muted);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
}

.page-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   9. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.5625rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}
.btn--primary:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
  text-decoration: none;
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--c-accent);
  border-color: var(--c-accent);
}
.btn--outline:hover {
  background: var(--c-accent);
  color: #fff;
  text-decoration: none;
}

/* Link-style CTA (e.g. "Leer el último post →") */
.btn--link {
  background: none;
  border: none;
  color: var(--c-accent);
  padding: 0;
  font-weight: 500;
}
.btn--link:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   10. Section titles (within page body)
   -------------------------------------------------------------------------- */
.section-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: var(--sp-6);
}

/* --------------------------------------------------------------------------
   11. Post cards (home — 2-column grid)
   -------------------------------------------------------------------------- */
.post-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: box-shadow 0.15s;
}
.post-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.post-card__meta {
  font-size: 0.75rem;
  color: var(--c-text-muted);
}

.post-card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.3;
}
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { color: var(--c-accent); }

.post-card__excerpt {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   12. Tag pills
   -------------------------------------------------------------------------- */
.tag {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  background: var(--c-tag-bg);
  color: var(--c-tag-text);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.tag:hover { background: #E0E0DB; text-decoration: none; }

/* --------------------------------------------------------------------------
   13. Map section (home + /ruta)
   -------------------------------------------------------------------------- */
.map-section {
  margin: var(--sp-12) 0 var(--sp-8);
}

.map-container {
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: #e8eef4;
}

/* Leaflet map fills the container */
.map-container .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: var(--font-sans);
}

.map-metrics {
  text-align: center;
  margin: var(--sp-5) 0 var(--sp-6);
  font-size: 0.875rem;
  color: var(--c-text-muted);
}
.map-metrics strong { color: var(--c-text); }
.map-metrics__sep { margin-inline: var(--sp-4); color: var(--c-border); }

/* --------------------------------------------------------------------------
   14. Newsletter block (home)
   -------------------------------------------------------------------------- */
.newsletter {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-10) var(--sp-8);
  text-align: center;
  margin: var(--sp-12) 0;
}

.newsletter h2 {
  font-size: 1.375rem;
  margin-bottom: var(--sp-6);
}

.newsletter__form {
  display: flex;
  gap: var(--sp-3);
  max-width: 480px;
  margin-inline: auto;
}

.newsletter__input {
  flex: 1;
  padding: 0.625rem var(--sp-4);
  border: 1px solid var(--c-input-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  background: var(--c-bg);
  color: var(--c-text);
  outline: none;
  transition: border-color 0.15s;
}
.newsletter__input:focus { border-color: var(--c-accent); }
.newsletter__input::placeholder { color: var(--c-text-light); }

.newsletter__note {
  margin-top: var(--sp-3);
  font-size: 0.75rem;
  color: var(--c-text-light);
}

/* --------------------------------------------------------------------------
   15. Post list (bitácora page — horizontal rows)
   -------------------------------------------------------------------------- */
.post-list { }

.post-list__item {
  display: flex;
  gap: var(--sp-5);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--c-border);
  align-items: flex-start;
}
.post-list__item:first-child { border-top: 1px solid var(--c-border); }

.post-list__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-tag-bg);
}
.post-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-list__body { flex: 1; min-width: 0; }

.post-list__meta {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-2);
}

.post-list__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--sp-2);
}
.post-list__title a { color: var(--c-text); text-decoration: none; }
.post-list__title a:hover { color: var(--c-accent); }

.post-list__excerpt {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   16. Pagination
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-10) 0 var(--sp-6);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 var(--sp-2);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.pagination a:hover { background: var(--c-tag-bg); color: var(--c-text); text-decoration: none; }
.pagination .is-current {
  background: var(--c-accent);
  color: #fff;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   17. Post detail
   -------------------------------------------------------------------------- */
.post-detail { padding: var(--sp-10) 0 var(--sp-16); }

.post-detail__header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--sp-8);
}

.post-detail__header h1 {
  margin-bottom: var(--sp-4);
}

.post-detail__meta {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
}

.post-detail__figure {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: var(--sp-10);
}

.post-detail__figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.post-detail__caption {
  margin-top: var(--sp-2);
  text-align: center;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--c-text-muted);
  line-height: 1.4;
}

/* Rich content from CMS */
.post-content {
  max-width: 680px;
  margin-inline: auto;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.post-content h2,
.post-content h3 { margin: var(--sp-8) 0 var(--sp-4); }

.post-content p { margin-bottom: var(--sp-5); }

/* Drop cap on first paragraph */
.post-content > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.5em;
  font-weight: 700;
  float: left;
  line-height: 0.8;
  margin: 0.1em 0.1em 0 0;
  color: var(--c-text);
}

.post-content blockquote {
  margin: var(--sp-8) 0;
  padding-left: var(--sp-6);
  border-left: 3px solid var(--c-accent);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--c-text-muted);
  line-height: 1.55;
}

.post-content img {
  border-radius: var(--radius);
  margin: var(--sp-6) 0;
}

.post-content a { color: var(--c-accent); }

/* Post navigation (Anterior / Siguiente) */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-10);
  border-top: 1px solid var(--c-border);
  margin-top: var(--sp-10);
  max-width: 680px;
  margin-inline: auto;
}

.post-nav__link {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  font-size: 0.8125rem;
}
.post-nav__link span:first-child { color: var(--c-text-muted); }
.post-nav__link span:last-child {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--c-text);
  font-size: 0.9375rem;
}
.post-nav__link:hover span:last-child { color: var(--c-accent); }

.post-nav__link--next { text-align: right; }

/* --------------------------------------------------------------------------
   18. About page (Quién soy)
   -------------------------------------------------------------------------- */
.about-hero {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-8);
  padding: var(--sp-12) 0 var(--sp-10);
}

.about-hero__photo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-tag-bg);
}
.about-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero__text h1 { margin-bottom: var(--sp-4); }
.about-hero__text p { color: var(--c-text-muted); }

.about-section {
  padding: var(--sp-8) 0;
  border-top: 1px solid var(--c-border);
}

.about-section h2 {
  font-size: 1.25rem;
  margin-bottom: var(--sp-5);
}

/* Checklist items */
.checklist { display: flex; flex-direction: column; gap: var(--sp-3); }
.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.9375rem;
}
.checklist__item::before {
  content: '✓';
  color: var(--c-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* How it works — 4-column icon grid */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  text-align: center;
}

.how-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-4);
}

.how-item__icon {
  font-size: 1.75rem;
  margin-bottom: var(--sp-3);
}

.how-item__label {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--sp-2);
}

.how-item__desc {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}

/* FAQ accordion */
.faq { display: flex; flex-direction: column; gap: 0; }

.faq__item {
  border-top: 1px solid var(--c-border);
}
.faq__item:last-child { border-bottom: 1px solid var(--c-border); }

.faq__question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: var(--sp-4) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-text);
}

.faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--c-text-muted);
  transition: transform 0.2s;
}

.faq__item.is-open .faq__icon { transform: rotate(45deg); }

.faq__answer {
  display: none;
  padding: 0 0 var(--sp-5);
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  line-height: 1.65;
}
.faq__item.is-open .faq__answer { display: block; }

/* --------------------------------------------------------------------------
   19. Travel route page (/ruta)
   -------------------------------------------------------------------------- */
.ruta-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--gap);
  align-items: flex-start;
}

.ruta-map-wrap {
  position: sticky;
  top: 72px;
}

.ruta-map-wrap .map-container { height: 480px; }

.ruta-stages { }

.ruta-stage {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--c-border);
  align-items: flex-start;
}
.ruta-stage:first-child { border-top: 1px solid var(--c-border); }

.ruta-stage__thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-tag-bg);
}
.ruta-stage__thumb img { width: 100%; height: 100%; object-fit: cover; }

.ruta-stage__body { flex: 1; min-width: 0; }

.ruta-stage__route {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: var(--sp-1);
}

.ruta-stage__date {
  font-size: 0.75rem;
  color: var(--c-text-muted);
}

.ruta-empty {
  text-align: center;
  padding: var(--sp-16) 0;
  color: var(--c-text-muted);
}
.ruta-empty h2 { font-size: 1.25rem; margin-bottom: var(--sp-3); }

/* --------------------------------------------------------------------------
   20. Legal page
   -------------------------------------------------------------------------- */
.legal-content {
  max-width: 720px;
  margin-inline: auto;
  padding: var(--sp-12) 0 var(--sp-16);
}

.legal-content h1 { margin-bottom: var(--sp-8); }

.legal-section { margin-bottom: var(--sp-10); }

.legal-section h2 {
  font-size: 1.125rem;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
}

.legal-section p,
.legal-section ul {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-footer-bg);
  border-top: 1px solid var(--c-border);
  margin-top: auto;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) 0;
  gap: var(--sp-6);
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.site-footer__links a { color: var(--c-text-muted); text-decoration: none; }
.site-footer__links a:hover { color: var(--c-text); }

.site-footer__social {
  display: flex;
  gap: var(--sp-3);
}

/* --------------------------------------------------------------------------
   22. Empty states
   -------------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: var(--sp-16) 0;
  color: var(--c-text-muted);
}
.empty-state p { max-width: 360px; margin-inline: auto; font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   23. Search bar (posts page)
   -------------------------------------------------------------------------- */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}

.search-bar__input {
  flex: 1;
  padding: 0.5625rem var(--sp-4);
  border: 1px solid var(--c-input-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  background: var(--c-bg);
  color: var(--c-text);
  outline: none;
  transition: border-color 0.15s;
}
.search-bar__input:focus { border-color: var(--c-accent); }
.search-bar__input::placeholder { color: var(--c-text-light); }

/* --------------------------------------------------------------------------
   24. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-muted   { color: var(--c-text-muted); }
.mt-1  { margin-top: var(--sp-4); }
.mt-2  { margin-top: var(--sp-8); }
.mb-1  { margin-bottom: var(--sp-4); }
.mb-2  { margin-bottom: var(--sp-8); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   25. Responsive — tablet (≤ 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .ruta-layout {
    grid-template-columns: 1fr;
  }
  .ruta-map-wrap {
    position: static;
  }
  .ruta-map-wrap .map-container { height: 300px; }

  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .newsletter__form {
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   26. Responsive — mobile (≤ 560px)
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .container { padding-inline: var(--sp-4); }

  .site-header__inner { height: 52px; }

  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 52px;
    left: 0; right: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    padding: var(--sp-5) var(--sp-6);
    gap: var(--sp-5);
    z-index: 99;
  }

  .nav-toggle { display: flex; }

  .page-hero { padding: var(--sp-8) 0 var(--sp-6); }

  .post-nav {
    flex-direction: column;
    gap: var(--sp-6);
  }
  .post-nav__link--next { text-align: left; }

  .how-grid { grid-template-columns: repeat(2, 1fr); }

  .site-footer__inner { flex-direction: column; text-align: center; }

  .post-detail__caption {
    text-align: center;
    font-style: italic;
    color: var(--c-text-muted);
    margin-bottom: 1.5rem; /* 24px gap between caption and article body */
  }
}
