/* ============ Más que viajes · Barrio de las Letras ============ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  --radius-sm: 0.375rem; --radius-md: 0.625rem; --radius-lg: 1rem;
  --radius-xl: 1.5rem; --radius-full: 9999px;
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 660px; --content-default: 980px; --content-wide: 1240px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;
  --font-script: 'Parisienne', 'Segoe Script', cursive;
}

/* ---- Light (marca) ---- */
:root, [data-theme='light'] {
  --color-bg: #fbf6ef;
  --color-surface: #fffcf8;
  --color-surface-2: #f7f1e8;
  --color-surface-offset: #f2ece2;
  --color-divider: #e5dbcd;
  --color-border: #dbcfbe;

  --color-text: #2f3230;
  --color-text-muted: #6f7570;
  --color-text-faint: #a9a49b;
  --color-text-inverse: #fdf9f4;

  --color-primary: #4d7d76;        /* verde salvia profundo */
  --color-primary-hover: #3a635e;
  --color-primary-soft: #8fb4ae;
  --color-primary-wash: #e3ede9;

  --color-rose: #b0716e;           /* rosa empolvado */
  --color-rose-soft: #d9a7a2;
  --color-rose-wash: #f6e7e3;

  --color-gold: #a9863f;
  --color-gold-soft: #c7a86a;

  --shadow-sm: 0 1px 3px rgba(74, 62, 48, 0.07);
  --shadow-md: 0 6px 20px rgba(74, 62, 48, 0.09);
  --shadow-lg: 0 18px 48px rgba(74, 62, 48, 0.14);
  --map-filter: sepia(0.32) saturate(0.62) brightness(1.06) contrast(0.92);
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ---- Dark ---- */
[data-theme='dark'] {
  --map-filter: invert(0.92) hue-rotate(180deg) saturate(0.5) brightness(0.92) contrast(0.95);
  --color-bg: #1b1d1c;
  --color-surface: #232624;
  --color-surface-2: #2a2e2b;
  --color-surface-offset: #31352f;
  --color-divider: #343834;
  --color-border: #454a44;

  --color-text: #e6e2da;
  --color-text-muted: #a3a89f;
  --color-text-faint: #74796f;
  --color-text-inverse: #1b1d1c;

  --color-primary: #9cc4bd;
  --color-primary-hover: #b6d5cf;
  --color-primary-soft: #6d968f;
  --color-primary-wash: #2b3634;

  --color-rose: #dfa9a4;
  --color-rose-soft: #b9827e;
  --color-rose-wash: #392e2d;

  --color-gold: #d5b671;
  --color-gold-soft: #a98f4f;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #1b1d1c; --color-surface: #232624; --color-surface-2: #2a2e2b;
    --color-surface-offset: #31352f; --color-divider: #343834; --color-border: #454a44;
    --color-text: #e6e2da; --color-text-muted: #a3a89f; --color-text-faint: #74796f;
    --color-text-inverse: #1b1d1c; --color-primary: #9cc4bd; --color-primary-hover: #b6d5cf;
    --color-primary-soft: #6d968f; --color-primary-wash: #2b3634; --color-rose: #dfa9a4;
    --color-rose-soft: #b9827e; --color-rose-wash: #392e2d; --color-gold: #d5b671;
    --map-filter: invert(0.92) hue-rotate(180deg) saturate(0.5) brightness(0.92) contrast(0.95);
  }
}

/* leyenda */
.legend { margin-top: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.legend h3 { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: var(--space-4); }
.legend ul { list-style: none; display: grid; gap: var(--space-3); }
.legend li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.45; }
.legend .key { width: 14px; height: 14px; border-radius: 50% 50% 50% 3px; transform: rotate(-45deg); flex-shrink: 0; margin-top: 4px; border: 1.5px solid #fffdf9; }
.legend b { color: var(--color-text); font-weight: 600; }
.legend .rule { display: flex; align-items: center; gap: var(--space-3); }
.legend .rule i { display: block; width: 14px; border-top: 2px dashed var(--color-rose); flex-shrink: 0; }

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none; text-size-adjust: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth; scroll-padding-top: 5.5rem;
}

body {
  min-height: 100dvh; line-height: 1.65;
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-text); background-color: var(--color-bg);
  background-image: var(--paper);
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
a { color: inherit; }
ul[role='list'] { list-style: none; }

h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); font-weight: 500; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

a, button, input, select { transition: color var(--transition-interactive), background var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============ Shared bits ============ */
.wrap { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: clamp(var(--space-4), 4vw, var(--space-10)); }
.wrap--narrow { max-width: var(--content-narrow); }
.wrap--default { max-width: var(--content-default); }

section { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }

.eyebrow {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-primary);
  display: flex; align-items: center; gap: var(--space-3);
}
.eyebrow::after { content: ''; height: 1px; flex: 1; max-width: 90px; background: linear-gradient(to right, var(--color-primary-soft), transparent); }

.section-head { margin-bottom: clamp(var(--space-8), 4vw, var(--space-12)); max-width: 720px; }
.section-head h2 { font-size: var(--text-xl); margin-block: var(--space-3) var(--space-4); letter-spacing: -0.01em; }
.section-head p { color: var(--color-text-muted); font-size: var(--text-base); max-width: 60ch; }

.script { font-family: var(--font-script); color: var(--color-rose); font-weight: 400; }

.ornament { display: flex; align-items: center; justify-content: center; gap: var(--space-3); color: var(--color-rose-soft); }
.ornament::before, .ornament::after { content: ''; height: 1px; width: clamp(40px, 12vw, 110px); background: linear-gradient(to right, transparent, var(--color-rose-soft), transparent); }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--color-divider);
}
.site-header .wrap { display: flex; align-items: center; gap: var(--space-6); min-height: 4.25rem; }

.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; border-radius: var(--radius-full); object-fit: cover; box-shadow: var(--shadow-sm); background: #fff; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt b { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.01em; }
.brand-txt span { font-family: var(--font-script); font-size: 0.9rem; color: var(--color-primary); }

.nav { display: flex; gap: var(--space-5); margin-left: auto; align-items: center; }
.nav a { font-size: var(--text-sm); text-decoration: none; color: var(--color-text-muted); position: relative; padding-block: var(--space-1); }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--color-rose); transition: right var(--transition-interactive); }
.nav a:hover { color: var(--color-text); }
.nav a:hover::after { right: 0; }

.theme-btn {
  width: 2.4rem; height: 2.4rem; border-radius: var(--radius-full);
  border: 1px solid var(--color-border); color: var(--color-text-muted);
  display: grid; place-items: center; flex-shrink: 0;
}
.theme-btn:hover { color: var(--color-primary); border-color: var(--color-primary-soft); background: var(--color-primary-wash); }

@media (max-width: 900px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: var(--space-3); gap: var(--space-4); padding-block: var(--space-3); }
  .nav {
    order: 3; width: 100%; margin-left: 0; gap: var(--space-4);
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 2px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; font-size: var(--text-xs); letter-spacing: 0.04em; }
  .theme-btn { margin-left: auto; }
}

@media (max-width: 560px) {
  html { font-size: 15px; }
}

/* ============ Hero ============ */
.hero { position: relative; padding-block: 0; overflow: hidden; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: clamp(320px, 52vw, 620px); object-fit: cover; object-position: center 60%; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--color-bg) 30%, transparent) 0%, transparent 35%, color-mix(in oklab, var(--color-bg) 92%, transparent) 88%, var(--color-bg) 100%);
}
.hero-inner { position: relative; z-index: 2; margin-top: clamp(-160px, -14vw, -90px); text-align: center; padding-bottom: var(--space-10); }
.hero-kicker { font-family: var(--font-script); font-size: clamp(1.35rem, 3vw, 2rem); color: var(--color-rose); }
.hero h1 { font-size: var(--text-3xl); letter-spacing: -0.015em; margin-block: var(--space-2) var(--space-5); font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--color-primary); }
.hero-lede { color: var(--color-text-muted); max-width: 58ch; margin-inline: auto; }

.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-8); }
.fact {
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-full); padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs); box-shadow: var(--shadow-sm);
}
.fact b { font-weight: 600; }
.fact svg { width: 15px; height: 15px; color: var(--color-primary); flex-shrink: 0; }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-8); }
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 500; text-decoration: none;
  padding: 0.7rem 1.5rem; border-radius: var(--radius-full);
  border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--color-primary); color: var(--color-text-inverse); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { border-color: var(--color-border); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--color-primary-soft); background: var(--color-primary-wash); color: var(--color-primary); }

/* ============ Historia ============ */
.historia { background: var(--color-surface-2); border-block: 1px solid var(--color-divider); }
.historia-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
.historia-copy p { color: var(--color-text-muted); margin-bottom: var(--space-4); }
.historia-copy p:first-of-type { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-text); line-height: 1.5; }
.historia-figure { position: relative; }
.historia-figure img { border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.historia-figure figcaption { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-3); font-style: italic; }

.timeline-h { margin-top: clamp(var(--space-10), 5vw, var(--space-16)); display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: var(--space-5); }
.hcard { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-5); position: relative; overflow: hidden; }
.hcard::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(to bottom, var(--color-rose-soft), var(--color-primary-soft)); }
.hcard b { display: block; font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-gold); letter-spacing: 0.02em; }
.hcard h3 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; margin-block: var(--space-1) var(--space-2); }
.hcard p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.55; }

@media (max-width: 860px) { .historia-grid { grid-template-columns: 1fr; } }

/* ============ Mapa + cronograma ============ */
.plan { background: var(--color-bg); }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.chip {
  font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.04em;
  padding: 0.45rem 0.95rem; border-radius: var(--radius-full);
  border: 1px solid var(--color-border); color: var(--color-text-muted);
  background: var(--color-surface); display: inline-flex; align-items: center; gap: 0.4rem;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip[aria-pressed='true'] { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-inverse); }
.chip:hover:not([aria-pressed='true']) { border-color: var(--color-primary-soft); color: var(--color-text); }

.plan-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(var(--space-6), 3vw, var(--space-10)); align-items: start; }

.map-panel { position: sticky; top: 5.5rem; }
.map-frame {
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md); background: var(--color-surface-2);
}
#map { height: clamp(380px, 62vh, 640px); width: 100%; background: var(--color-surface-2); }
#map .leaflet-tile-pane { filter: var(--map-filter); }
.leaflet-container { font-family: var(--font-body); background: var(--color-surface-2); }
.map-note { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-3); display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* markers */
.pin {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg);
  display: grid; place-items: center; box-shadow: 0 3px 8px rgba(60,50,40,0.32);
  border: 2px solid #fffdf9; font-weight: 600; font-size: 12px; color: #fff;
  font-family: var(--font-body); transition: transform 180ms ease, box-shadow 180ms ease;
}
.pin span { transform: rotate(45deg); }
.pin--poi { background: #4d7d76; }
.pin--cafe { background: #b0716e; }
.pin--comer { background: #a9863f; }
.pin--stay { background: #7a7f92; }
.pin--near { background: #8fb4ae; }
.pin.is-active { transform: rotate(-45deg) scale(1.35); box-shadow: 0 6px 16px rgba(60,50,40,0.45); z-index: 999 !important; }

.leaflet-popup-content-wrapper { background: var(--color-surface); color: var(--color-text); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); }
.leaflet-popup-tip { background: var(--color-surface); border: 1px solid var(--color-border); }
.leaflet-popup-content { margin: var(--space-4); font-size: var(--text-sm); line-height: 1.5; min-width: 190px; }
.leaflet-popup-content b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; display: block; margin-bottom: 2px; }
.leaflet-popup-content i { color: var(--color-text-muted); font-size: var(--text-xs); font-style: normal; display: block; margin-bottom: var(--space-2); }
.leaflet-popup-content a { color: var(--color-primary); font-size: var(--text-xs); text-decoration: none; border-bottom: 1px solid currentColor; }
.leaflet-popup-close-button { color: var(--color-text-muted) !important; }
.leaflet-control-attribution { background: color-mix(in oklab, var(--color-surface) 85%, transparent) !important; color: var(--color-text-faint) !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: var(--color-text-muted) !important; }
.leaflet-bar a { background: var(--color-surface) !important; color: var(--color-text) !important; border-color: var(--color-border) !important; }

/* cronograma */
.rail { position: relative; padding-left: var(--space-8); list-style: none; }
.rail::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1.5px; background: linear-gradient(to bottom, var(--color-rose-soft), var(--color-primary-soft), var(--color-divider)); }

.stop { position: relative; margin-bottom: var(--space-4); }
.stop::before {
  content: ''; position: absolute; left: calc(-1 * var(--space-8) + 5px); top: 1.35rem;
  width: 13px; height: 13px; border-radius: 50%; background: var(--color-bg);
  border: 2px solid var(--color-primary-soft); z-index: 2; transition: all var(--transition-interactive);
}
.stop.is-active::before { background: var(--color-rose); border-color: var(--color-rose); transform: scale(1.25); }

.stop-btn {
  width: 100%; text-align: left; display: block;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
}
.stop-btn:hover { border-color: var(--color-primary-soft); box-shadow: var(--shadow-md); transform: translateX(2px); }
.stop.is-active .stop-btn { border-color: var(--color-rose-soft); background: var(--color-surface); box-shadow: var(--shadow-md); }

.stop-top { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.stop-time { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--color-primary); letter-spacing: 0.01em; line-height: 1; }
.stop-dur { font-size: var(--text-xs); color: var(--color-text-faint); }
.stop-tag { margin-left: auto; font-size: var(--text-xs); padding: 0.15rem 0.6rem; border-radius: var(--radius-full); background: var(--color-primary-wash); color: var(--color-primary); white-space: nowrap; }
.stop[data-cat='cafe'] .stop-tag { background: var(--color-rose-wash); color: var(--color-rose); }
.stop[data-cat='comer'] .stop-tag { background: color-mix(in oklab, var(--color-gold) 14%, transparent); color: var(--color-gold); }
.stop h3 { font-size: var(--text-lg); margin-top: var(--space-2); font-weight: 600; }
.stop-addr { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; display: flex; align-items: center; gap: 0.35rem; }
.stop-addr svg { width: 13px; height: 13px; color: var(--color-rose-soft); }

.stop-body { display: none; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px dashed var(--color-divider); }
.stop.is-open .stop-body { display: block; }
.stop-body p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }
.stop-tip { margin-top: var(--space-3); font-size: var(--text-sm); background: var(--color-surface-2); border-left: 2px solid var(--color-gold-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: var(--space-3) var(--space-4); color: var(--color-text); }
.stop-tip b { font-weight: 600; color: var(--color-gold); }
.stop-links { display: flex; gap: var(--space-3); margin-top: var(--space-4); flex-wrap: wrap; }
.mini-link { font-size: var(--text-xs); color: var(--color-primary); text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; border-bottom: 1px solid color-mix(in oklab, var(--color-primary) 40%, transparent); }
.mini-link:hover { color: var(--color-primary-hover); }
.mini-link svg { width: 13px; height: 13px; }

.must { display: inline-flex; align-items: center; gap: 0.3rem; font-size: var(--text-xs); color: var(--color-rose); font-weight: 500; }
.must svg { width: 13px; height: 13px; }

@media (max-width: 1000px) {
  .plan-layout { grid-template-columns: 1fr; }
  .map-panel { position: relative; top: 0; }
}

/* ============ Card grids ============ */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: var(--space-5); }
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-2);
  box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--color-primary-soft); transform: translateY(-2px); }
.card h3 { font-size: var(--text-lg); font-weight: 600; }
.card .meta { font-size: var(--text-xs); color: var(--color-text-muted); display: flex; align-items: center; gap: 0.35rem; }
.card .meta svg { width: 13px; height: 13px; color: var(--color-rose-soft); flex-shrink: 0; }
.card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.55; }
.card .badge { align-self: flex-start; font-size: var(--text-xs); padding: 0.15rem 0.6rem; border-radius: var(--radius-full); background: var(--color-primary-wash); color: var(--color-primary); }
.card .card-foot { margin-top: auto; padding-top: var(--space-3); }

.tinted { background: var(--color-surface-2); border-block: 1px solid var(--color-divider); }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(var(--space-6), 4vw, var(--space-12)); align-items: center; }
.split img { border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ============ Consejos ============ */
.tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--space-5); }
.tip {
  border-left: 2px solid var(--color-primary-soft); padding-left: var(--space-4);
}
.tip h3 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--color-primary); margin-bottom: var(--space-2); }
.tip p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }

/* ============ Footer ============ */
.site-footer { background: var(--color-surface-2); border-top: 1px solid var(--color-divider); padding-block: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-8); }
.footer-brand { text-align: center; }
.footer-brand img { width: 92px; height: 92px; border-radius: var(--radius-full); margin-inline: auto; object-fit: cover; box-shadow: var(--shadow-md); background: #fff; }
.footer-brand .claim { font-family: var(--font-script); font-size: clamp(1.4rem, 3.4vw, 2.1rem); color: var(--color-text); margin-top: var(--space-4); line-height: 1.3; }
.footer-brand small { display: block; color: var(--color-text-muted); font-size: var(--text-sm); margin-top: var(--space-2); }

.sources { margin-top: clamp(var(--space-10), 5vw, var(--space-16)); border-top: 1px solid var(--color-divider); padding-top: var(--space-6); }
.sources h4 { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: var(--space-3); }
.sources ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-2) var(--space-6); }
.sources li { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.5; }
.sources a { color: var(--color-text-muted); text-decoration: none; border-bottom: 1px solid var(--color-divider); }
.sources a:hover { color: var(--color-primary); border-color: currentColor; }
.legal { margin-top: var(--space-8); font-size: var(--text-xs); color: var(--color-text-faint); text-align: center; }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
