/* ==========================================================================
   Wayraq Perú — Cuaderno de viaje
   Archetype: Magazine Multi-Page (paper, serif, hairlines, drop caps)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --paper:      #f7f2e9;
  --paper-2:    #efe7d7;
  --paper-3:    #e6dbc6;
  --ink:        #1c1915;
  --ink-soft:   #3b352e;
  --mute:       #6f675d;
  --accent:     #9b2b25;   /* rojo cochinilla */
  --accent-2:   #7d211c;
  --puna:       #2e4a3c;   /* verde puna */
  --ochre:      #b5823a;
  --line:       rgba(28, 25, 21, .16);
  --line-ink:   #1c1915;

  --f-display: "Bodoni Moda", "Playfair Display", Georgia, serif;
  --f-body:    "Spectral", Georgia, "Times New Roman", serif;
  --f-sans:    "Archivo", "Helvetica Neue", Arial, sans-serif;

  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-io:   cubic-bezier(.65, 0, .35, 1);

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 64px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(17px, 1.05vw + 10px, 19px);
  line-height: 1.6;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 8px 14px;
}
.skip:focus { left: 8px; }

/* ---------- 3. Page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: .5s;
  animation-timing-function: var(--ease-out);
}
::view-transition-old(root) { animation-name: vtOut; }
::view-transition-new(root) { animation-name: vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn  { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 4. Layout helpers ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tint { background: var(--paper-2); }
.rule { border: 0; border-top: 1px solid var(--line-ink); margin: 0; }
.rule--soft { border-top-color: var(--line); }

/* ---------- 5. Typography ---------- */
.kicker {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.meta {
  font-family: var(--f-sans);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--mute);
}
.display {
  font-family: var(--f-display);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 28;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.display em, .h2 em, .h3 em { font-style: italic; color: var(--accent); }
.h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.15;
  text-wrap: balance;
}
.lede { font-size: clamp(1.15rem, 1.4vw, 1.35rem); line-height: 1.55; color: var(--ink-soft); }
.prose p { text-wrap: pretty; }
.prose h3 { margin: 1.8em 0 .5em; }
.prose ul { padding-left: 1.1em; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--accent); }

/* Drop cap — signature */
.dropcap::first-letter {
  float: left;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 5.2em;
  line-height: .78;
  padding: .06em .12em 0 0;
  color: var(--accent);
}

/* Section header: number + label + rule */
.sec-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-ink);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.sec-head__num { font-family: var(--f-display); font-style: italic; font-size: 1.1rem; color: var(--accent); }
.sec-head__label { font-family: var(--f-sans); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.sec-head__link { font-family: var(--f-sans); font-size: 13px; }

/* Animated underline — signature */
.u-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .45s var(--ease-out), color .25s;
  padding-bottom: 2px;
}
.u-link:hover, .u-link:focus-visible { background-size: 100% 1px; }
.u-link--on { background-size: 100% 1px; }
.arrow-link {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: inline-flex; gap: .5em; align-items: center;
}
.arrow-link span { transition: transform .35s var(--ease-out); }
.arrow-link:hover span { transform: translateX(4px); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--f-sans);
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 16px 26px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn--solid:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--paper); }
.btn--light { border-color: var(--paper); color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--ink); }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- 7. Reading progress — signature ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---------- 8. Masthead ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  font-family: var(--f-sans);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar__info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__info a:hover { color: var(--accent); }
.topbar__lang { display: flex; gap: 10px; letter-spacing: .1em; }
.topbar__lang b { color: var(--accent); font-weight: 600; }

.masthead { text-align: center; padding: 28px 0 0; }
.masthead__issue {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--f-sans); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute);
}
.brand { display: inline-block; line-height: 1; }
.brand__name {
  display: block;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 24;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7.4vw, 6rem);
  letter-spacing: -.02em;
}
.brand__name i { font-weight: 400; color: var(--accent); }
.brand__tag {
  display: block; margin-top: 6px;
  font-family: var(--f-sans); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-soft);
}

/* Sticky nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-top: 1px solid var(--line-ink);
  border-bottom: 1px solid var(--line-ink);
  margin-top: 22px;
  transition: box-shadow .3s;
}
.nav.is-stuck { box-shadow: 0 8px 24px -18px rgba(28, 25, 21, .45); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); gap: 20px; }
.nav__mini {
  font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
  white-space: nowrap;
}
.nav__mini i { font-weight: 400; color: var(--accent); }
.nav.is-stuck .nav__mini { opacity: 1; transform: none; pointer-events: auto; }
.nav__links { display: flex; gap: clamp(16px, 2.2vw, 34px); list-style: none; }
.nav__links a {
  font-family: var(--f-sans); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.nav__links a[aria-current="page"] { color: var(--accent); }
.nav__cta { padding: 11px 18px; font-size: 12px; }
.nav__toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer;
  font-family: var(--f-sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  align-items: center; gap: 10px;
}
.nav__toggle i { display: block; width: 22px; height: 1px; background: var(--ink); position: relative; }
.nav__toggle i::before, .nav__toggle i::after { content: ""; position: absolute; left: 0; width: 100%; height: 1px; background: var(--ink); transition: transform .3s var(--ease-out); }
.nav__toggle i::before { top: -6px; }
.nav__toggle i::after { top: 6px; }
.nav.is-open .nav__toggle i { background: transparent; }
.nav.is-open .nav__toggle i::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle i::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 9. Reveal (IO, threshold .01 + safety) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }    /* defensive — gotcha A.4.5 */
.reveal--d1 { transition-delay: .08s; }
.reveal--d2 { transition-delay: .16s; }
.reveal--d3 { transition-delay: .24s; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* Split words (headline) */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); }
.is-split.is-in .split-word > span { transform: none; }

/* Figure + parallax — signature (max 20px) */
.fig { margin: 0; }
.fig__frame { overflow: hidden; background: var(--paper-3); position: relative; }
.fig__frame img { width: 100%; height: 100%; object-fit: cover; }
.fig__frame [data-parallax] { height: calc(100% + 40px); margin-top: -20px; will-change: transform; }
.fig figcaption, .fig__cap {
  margin-top: 10px;
  font-family: var(--f-body); font-style: italic; font-size: 14px; color: var(--mute);
  display: flex; justify-content: space-between; gap: 16px;
}
.fig__cap b { font-style: normal; font-family: var(--f-sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }
/* warm tint */
.fig__frame::after { content: ""; position: absolute; inset: 0; background: rgba(181, 130, 58, .06); mix-blend-mode: multiply; pointer-events: none; }
/* clip reveal on cover image */
.clip-in { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-io) .25s; }
.is-ready .clip-in { clip-path: inset(0 0 0 0); }
html:not(.js) .clip-in { clip-path: none; }

/* ---------- 10. Cover (home hero) ---------- */
.cover { padding-top: clamp(36px, 5vw, 64px); }
.cover__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
}
.cover__head { grid-column: 1 / span 7; }
.cover__title { font-size: clamp(2.8rem, 6.6vw, 6.2rem); margin: 18px 0 22px; }
.cover__byline { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.cover__byline .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.cover__aside { grid-column: 9 / span 4; padding-bottom: 8px; }
.cover__aside p { font-size: 1.05rem; color: var(--ink-soft); }
.cover__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cover__figure { grid-column: 1 / -1; margin-top: clamp(28px, 4vw, 48px); }
.cover__figure .fig__frame { aspect-ratio: 16 / 7.2; }
.cover__stats {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-ink); border-bottom: 1px solid var(--line);
  margin-top: 8px;
}
.stat { padding: 20px 18px 18px 0; }
.stat + .stat { padding-left: 18px; border-left: 1px solid var(--line); }
.stat__num { font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; }
.stat__num em { color: var(--accent); }
.stat__label { margin-top: 6px; font-family: var(--f-sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }

/* ---------- 11. Editorial intro (lede + columns) ---------- */
.intro { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 5vw, 80px); }
.intro__cols { columns: 2; column-gap: 40px; }
.intro__cols p { break-inside: avoid-column; }

/* Principles (4 pillars) */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-ink); }
.pillar { padding: 26px 24px 30px 0; }
.pillar + .pillar { padding-left: 24px; border-left: 1px solid var(--line); }
.pillar__n { font-family: var(--f-display); font-style: italic; font-size: 2.6rem; color: var(--accent); line-height: 1; }
.pillar h3 { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.2; margin: 14px 0 10px; font-weight: 500; }
.pillar p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* ---------- 12. Destination grid (article previews) ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.6vw, 36px); }
.dest { display: flex; flex-direction: column; }
.dest .fig__frame { aspect-ratio: 3 / 2; }
.dest--feature { grid-column: span 2; grid-row: span 2; }
.dest--feature .fig__frame { aspect-ratio: 4 / 3; }
.dest--feature .h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.dest__body { padding-top: 16px; }
.dest__body .kicker { display: block; margin-bottom: 8px; }
.dest__body p { font-size: .97rem; color: var(--ink-soft); margin: 10px 0 14px; }
.dest .fig__frame img { transition: transform 1.2s var(--ease-out), filter .6s; }
.dest:hover .fig__frame img:not([data-parallax]) { transform: scale(1.04); }
.dest:hover .h3 { color: var(--accent); }
.dest .h3 { transition: color .3s; }

/* ---------- 13. Pull quote — signature ---------- */
.pull {
  position: relative;
  margin: 0;
  padding: clamp(24px, 4vw, 48px) 0 clamp(24px, 4vw, 48px) clamp(28px, 6vw, 96px);
  border-top: 1px solid var(--line-ink);
  border-bottom: 1px solid var(--line-ink);
}
.pull::before {
  content: "\201C";
  position: absolute; left: 0; top: .02em;
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(6rem, 12vw, 10rem); line-height: 1;
  color: var(--accent);
}
.pull blockquote { margin: 0; }
.pull p {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.7rem); line-height: 1.22; margin: 0; text-wrap: balance;
}
.pull cite { display: block; margin-top: 18px; font-style: normal; }

/* ---------- 14. Tour cards ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  font-family: var(--f-sans); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 16px; border: 1px solid var(--line-ink); background: transparent; cursor: pointer;
  transition: background-color .25s, color .25s;
}
.chip:hover { background: var(--paper-3); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.tour-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.tour { display: flex; flex-direction: column; border-top: 1px solid var(--line-ink); padding-top: 16px; }
.tour[hidden] { display: none; }
.tour .fig__frame { aspect-ratio: 4 / 3; margin-bottom: 16px; }
.tour .fig__frame img { transition: transform 1.2s var(--ease-out); }
.tour:hover .fig__frame img { transform: scale(1.05); }
.tour__top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tour h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.32rem; line-height: 1.2; margin-bottom: 10px; text-wrap: balance; }
.tour p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 16px; }
.tour__foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: end; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.price { font-family: var(--f-sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); line-height: 1.2; }
.price strong { display: block; font-family: var(--f-display); font-size: 1.6rem; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 500; }
.price strong small { font-size: .55em; font-family: var(--f-sans); letter-spacing: .08em; color: var(--mute); margin-right: 4px; }

/* Tour list (compact rows on home) */
.tour-list { list-style: none; border-top: 1px solid var(--line-ink); }
.tour-row {
  display: grid; grid-template-columns: 64px 1fr auto auto; gap: 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  transition: background-color .3s;
}
.tour-row:hover { background: var(--paper-2); }
.tour-row__n { font-family: var(--f-display); font-style: italic; color: var(--accent); font-size: 1.3rem; padding-left: 6px; }
.tour-row h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.2; }
.tour-row .meta { margin-top: 4px; }
.tour-row .price { text-align: right; }

/* ---------- 15. Split feature (B2B band, etc.) ---------- */
.band { background: var(--puna); color: var(--paper); }
.band .kicker { color: #e6b97a; }
.band .h2 em { color: #e6b97a; }
.band .meta { color: rgba(247, 242, 233, .7); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--rev .split__media { order: 2; }
.split .fig__frame { aspect-ratio: 4 / 5; }
.checks { list-style: none; margin: 22px 0 28px; }
.checks li { padding: 12px 0 12px 30px; border-bottom: 1px solid rgba(247, 242, 233, .2); position: relative; }
.checks li::before { content: "—"; position: absolute; left: 0; color: #e6b97a; }
.checks--ink li { border-bottom-color: var(--line); }
.checks--ink li::before { color: var(--accent); }

/* ---------- 16. Testimonials ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-ink); }
.review { padding: 28px 28px 32px 0; }
.review + .review { padding-left: 28px; border-left: 1px solid var(--line); }
.review__stars { color: var(--ochre); letter-spacing: .2em; font-size: 14px; }
.review h3 { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.35rem; margin: 10px 0 10px; }
.review p { font-size: .97rem; color: var(--ink-soft); }
.review__who { font-family: var(--f-sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.review__who b { color: var(--ink); font-weight: 600; }

/* ---------- 17. Journal ---------- */
.journal { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-ink); }
.post { padding: 22px 22px 26px 0; display: flex; flex-direction: column; gap: 10px; }
.post + .post { padding-left: 22px; border-left: 1px solid var(--line); }
.post h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; line-height: 1.25; }
.post:hover h3 { color: var(--accent); }

/* ---------- 18. CTA closing ---------- */
.closing { text-align: center; }
.closing .display { font-size: clamp(2.4rem, 5.6vw, 5rem); margin: 18px auto 22px; max-width: 16ch; }
.closing p { max-width: 54ch; margin-inline: auto; color: var(--ink-soft); }
.closing__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* ---------- 19. Page header (inner pages) ---------- */
.page-head { padding: clamp(40px, 6vw, 88px) 0 clamp(28px, 4vw, 48px); }
.page-head__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 5vw, 80px); align-items: end; }
.page-head .display { font-size: clamp(2.6rem, 6vw, 5.4rem); margin-top: 16px; }
.page-head .lede { margin: 0; }
.crumbs { font-family: var(--f-sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.crumbs a:hover { color: var(--accent); }

/* Destination long-form entries */
.toc { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 16px 0; border-top: 1px solid var(--line-ink); border-bottom: 1px solid var(--line); font-family: var(--f-sans); font-size: 13px; }
.toc a { padding: 4px 0; }
.toc a:hover { color: var(--accent); }
.entry { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); padding-block: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.entry__media { grid-column: 1 / span 7; }
.entry__media .fig__frame { aspect-ratio: 3 / 2; }
.entry__text { grid-column: 8 / span 5; align-self: center; }
.entry--rev .entry__media { grid-column: 6 / span 7; order: 2; }
.entry--rev .entry__text { grid-column: 1 / span 5; }
.entry__num { font-family: var(--f-display); font-style: italic; font-size: 4rem; line-height: 1; color: var(--accent); }
.entry .h2 { margin: 6px 0 16px; font-size: clamp(2rem, 3.6vw, 3rem); }
.entry__list { list-style: none; margin: 18px 0 22px; border-top: 1px solid var(--line); }
.entry__list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.entry__list li span:last-child { font-family: var(--f-sans); font-size: 12px; letter-spacing: .06em; color: var(--mute); white-space: nowrap; }
.entry__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.entry__thumbs .fig__frame { aspect-ratio: 4 / 3; }

/* Article (nosotros) */
.article { display: grid; grid-template-columns: 3fr 9fr; gap: clamp(24px, 5vw, 72px); }
.article__aside { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.article__aside ol { list-style: none; border-top: 1px solid var(--line-ink); font-family: var(--f-sans); font-size: 13px; }
.article__aside li { border-bottom: 1px solid var(--line); }
.article__aside a { display: block; padding: 10px 0; }
.article__aside a:hover { color: var(--accent); }
.article__body { max-width: 70ch; }
.article__body > * + * { margin-top: 0; }
.article__body h2 { margin: 1.6em 0 .6em; }
.article__body .pull { margin: 2.2em 0; }
.article__body .fig { margin: 2.4em 0; }
.article__body .fig .fig__frame { aspect-ratio: 16 / 9; }

/* Values grid */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-ink); margin-top: 28px; }
.value { padding: 22px 22px 24px 0; }
.value + .value { padding-left: 22px; border-left: 1px solid var(--line); }
.value h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; margin-bottom: 8px; }
.value p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* Services list (B2B) */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-ink); }
.service { padding: 26px 26px 30px 0; border-bottom: 1px solid var(--line); }
.service:not(:nth-child(3n + 1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.service__n { font-family: var(--f-sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--accent); }
.service h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; margin: 10px 0 8px; }
.service p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

.dest-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.dest-tags li { list-style: none; padding: 9px 16px; border: 1px solid var(--line-ink); font-family: var(--f-sans); font-size: 13px; }

/* ---------- 20. Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend {
  font-family: var(--f-sans); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 0; border-bottom: 1px solid var(--line-ink);
  background: transparent;
  padding: 10px 0;
  font-size: 1.05rem;
  border-radius: 0;
  transition: border-color .25s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--accent); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: inline-block; padding: 9px 14px; border: 1px solid var(--line-ink); cursor: pointer;
  font-family: var(--f-sans); font-size: 13px; transition: background-color .2s, color .2s;
}
.opt input:checked + span { background: var(--ink); color: var(--paper); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.form__note { grid-column: 1 / -1; font-size: .9rem; color: var(--mute); margin: 0; }
.form__ok {
  grid-column: 1 / -1; display: none;
  padding: 16px 18px; border-left: 3px solid var(--puna); background: var(--paper-2); font-size: .97rem;
}
.form.is-sent .form__ok { display: block; }

/* Contact list */
.contact-list { list-style: none; border-top: 1px solid var(--line-ink); margin-top: 24px; }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list span { font-family: var(--f-sans); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.contact-list a:hover { color: var(--accent); }

/* ---------- 21. Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: clamp(56px, 7vw, 96px) 0 28px; }
.footer a:hover { color: #e6b97a; }
.footer__brand { font-optical-sizing: none; font-variation-settings: "opsz" 24; font-family: var(--f-display); font-weight: 600; font-size: clamp(3rem, 9vw, 7.5rem); line-height: .9; letter-spacing: -.02em; }
.footer__brand i { font-weight: 400; color: #e6b97a; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(247, 242, 233, .25); }
.footer h4 { font-family: var(--f-sans); font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(247, 242, 233, .6); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; font-size: .97rem; }
.footer p { font-size: .95rem; color: rgba(247, 242, 233, .8); }
.footer__social { display: flex; gap: 10px; margin-top: 14px; }
.footer__social a { width: 40px; height: 40px; border: 1px solid rgba(247, 242, 233, .35); display: grid; place-items: center; transition: border-color .25s, background-color .25s; }
.footer__social a:hover { border-color: #e6b97a; background: rgba(230, 185, 122, .12); }
.footer__social svg { width: 17px; height: 17px; fill: currentColor; }
.footer__news { display: flex; border-bottom: 1px solid rgba(247, 242, 233, .5); margin-top: 6px; }
.footer__news input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 10px 0; color: var(--paper); }
.footer__news input::placeholder { color: rgba(247, 242, 233, .5); }
.footer__news input:focus { outline: none; }
.footer__news button { background: none; border: 0; color: #e6b97a; cursor: pointer; font-family: var(--f-sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(247, 242, 233, .15); font-family: var(--f-sans); font-size: 12px; color: rgba(247, 242, 233, .6); }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 22. WhatsApp float ---------- */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 110;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--puna); color: var(--paper);
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  font-family: var(--f-sans); font-size: 13px; font-weight: 600; letter-spacing: .04em;
  box-shadow: 0 10px 30px -10px rgba(28, 25, 21, .55);
  transition: transform .35s var(--ease-out), background-color .25s;
}
.wa:hover { transform: translateY(-3px); background: #253d31; }
.wa svg { width: 22px; height: 22px; fill: currentColor; }

/* Credits table */
.credits { width: 100%; border-collapse: collapse; font-size: .92rem; }
.credits th, .credits td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.credits th { font-family: var(--f-sans); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); border-bottom-color: var(--line-ink); }
.credits img { width: 84px; height: 56px; object-fit: cover; }
.credits a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 23. Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 12px; letter-spacing: .08em; }
  .nav__cta { display: none; }
}
@media (max-width: 960px) {
  :root { --nav-h: 58px; }
  .nav__toggle { display: inline-flex; }
  .nav__mini { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line-ink);
    padding: 8px var(--gutter) 20px;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .45s var(--ease-out), visibility 0s .45s;
  }
  .nav.is-open .nav__links { max-height: 80vh; visibility: visible; transition: max-height .45s var(--ease-out); }
  .nav__links li { border-bottom: 1px solid var(--line); }
  .nav__links a { display: block; padding: 16px 0; font-size: 14px; }
  .masthead { padding-top: 18px; }
  .masthead__issue span:nth-child(3) { display: none; }
  .topbar__info a:nth-child(n + 3) { display: none; }

  .cover__head, .cover__aside { grid-column: 1 / -1; }
  .cover__figure .fig__frame { aspect-ratio: 4 / 3; }
  .cover__stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .intro { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dest--feature { grid-column: 1 / -1; grid-row: auto; }
  .tour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .form-wrap, .page-head__grid { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .split .fig__frame { aspect-ratio: 4 / 3; }
  .reviews, .values { grid-template-columns: 1fr; }
  .review + .review, .value + .value { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .journal { grid-template-columns: repeat(2, 1fr); }
  .post:nth-child(3) { padding-left: 0; border-left: 0; }
  .post:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .services { grid-template-columns: 1fr 1fr; }
  .service:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .service:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--line); }
  .entry__media, .entry__text, .entry--rev .entry__media, .entry--rev .entry__text { grid-column: 1 / -1; order: 0; }
  .article { grid-template-columns: 1fr; }
  .article__aside { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar__lang { display: none; }
  .masthead__issue { justify-content: center; }
  .masthead__issue span:nth-child(1) { display: none; }
  .intro__cols { columns: 1; }
  .pillars, .journal, .services { grid-template-columns: 1fr; }
  .pillar + .pillar, .post + .post, .service:nth-child(even) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .dest-grid, .tour-grid { grid-template-columns: 1fr; }
  .tour-row { grid-template-columns: 40px 1fr; gap: 6px 14px; }
  .tour-row .price { grid-column: 2; text-align: left; }
  .tour-row .arrow-link { display: none; }
  .form { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .footer__grid { grid-template-columns: 1fr; }
  .wa span { display: none; }
  .wa { padding: 14px; }
  .sec-head { grid-template-columns: auto 1fr; }
  .sec-head__link { grid-column: 1 / -1; }
  .credits td:nth-child(3), .credits th:nth-child(3) { display: none; }
}

/* Only intrusive motion is gated */
@media (prefers-reduced-motion: reduce) {
  .fig__frame [data-parallax] { transform: none !important; }
}
.entry__thumbs--one { grid-template-columns: 1fr; }
.entry__thumbs--one .fig__frame { aspect-ratio: 16 / 7; }

/* Lower optical size on headings = sturdier hairlines (legible hyphens, thin strokes) */
.h2, .h3, .pull p, .stat__num, .entry__num, .pillar__n, .tour h3, .tour-row h3, .review h3, .post h3, .value h3, .service h3, .pillar h3 {
  font-optical-sizing: none;
  font-variation-settings: "opsz" 20;
}
.sec-head + .tour-list, .sec-head + .reviews, .sec-head + .journal, .sec-head + .services { border-top: 0; }
.footer { padding-bottom: 92px; }
[hidden] { display: none !important; }
@media (max-width: 960px) {
  .masthead { padding-top: 0; }
  .masthead > .wrap { display: none; }
  .nav { margin-top: 0; border-top: 0; }
}

/* ---------- Language switcher ---------- */
.topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar__hours b { color: var(--accent); font-weight: 600; margin-right: 4px; }
.lang { display: flex; gap: 2px; font-family: var(--f-sans); font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.lang a { padding: 4px 6px; color: var(--mute); transition: color .2s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 960px) { .topbar__hours { display: none; } }
@media (max-width: 640px) { .topbar__info a:nth-child(n + 2) { display: none; } }

/* ---------- Logo (colibrí) ---------- */
.brand {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: clamp(10px, 1.6vw, 22px);
}
.brand__logo {
  grid-row: 1 / span 2;
  width: auto;
  height: clamp(64px, 8.4vw, 116px);
  transform-origin: 70% 60%;
  transition: transform .8s var(--ease-out);
}
.brand:hover .brand__logo { transform: translate(4px, -3px) rotate(-3deg); }
.brand__name, .brand__tag { grid-column: 2; }
.nav__mini { display: inline-flex; align-items: center; gap: 10px; }
.nav__mini img { height: 32px; width: auto; }
.footer__brand { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.footer__logo { height: clamp(64px, 9vw, 128px); width: auto; flex: none; }
@media (max-width: 640px) {
  .footer__brand { flex-direction: column; align-items: flex-start; }
}
/* Let the nav stick to the viewport (its containing block becomes <body>) */
.masthead { display: contents; }
.masthead > .wrap { display: block; padding-top: 28px; text-align: center; }
@media (max-width: 960px) { .masthead > .wrap { display: none; } }

/* ---------- Logo image (replaces wordmark) ---------- */
.brand { display: inline-block; margin-top: 10px; }
.brand__img { width: clamp(260px, 30vw, 420px); height: auto; transition: transform .6s var(--ease-out); }
.brand:hover .brand__img { transform: translateY(-2px); }
.nav__mini img { height: 34px; width: auto; }
.footer__brand { display: block; }
.footer__logo { width: clamp(240px, 32vw, 440px); height: auto; }
.nav__mini img { height: 42px; }

/* Centered menu: logo | links | CTA */
@media (min-width: 961px) {
  .nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav__mini { justify-self: start; }
  .nav__links { justify-self: center; }
  .nav__cta { justify-self: end; }
}
.sec-head__num { font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1; }
.sec-head--band { margin-bottom: 28px; grid-template-columns: auto 1fr; }
.band .sec-head { border-bottom-color: rgba(247, 242, 233, .4); }
.band .sec-head__num { color: #e6b97a; }

/* ---------- Hero slider (portada) ---------- */
.hero {
  position: relative;
  height: 82vh;
  height: 82svh;
  min-height: 520px;
  max-height: 860px;
  overflow: hidden;
  background: #14110e;
  color: #f7f2e9;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s var(--ease-io); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  transition: transform 7s linear;
}
.hero__slide.is-active img { transform: scale(1); }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 17, 14, .78) 0%, rgba(20, 17, 14, .5) 40%, rgba(20, 17, 14, .08) 75%),
    linear-gradient(0deg, rgba(20, 17, 14, .6) 0%, rgba(20, 17, 14, 0) 32%);
}
.hero__content {
  position: absolute; inset: 0; z-index: 2;
  margin-inline: auto;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-bottom: 40px;
}
.hero__kicker { color: #e6b97a; }
.hero__title {
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  max-width: 13ch;
  margin: 16px 0 20px;
  color: #f7f2e9;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.hero__title em { color: #e6b97a; }
.hero__lede { max-width: 46ch; font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: rgba(247, 242, 233, .92); margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn--light { border-color: #f7f2e9; color: #f7f2e9; }
.hero .btn--light:hover { background: #f7f2e9; border-color: #f7f2e9; color: #1c1915; }
.hero__bar {
  position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3;
  margin-inline: auto;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-top: 1px solid rgba(247, 242, 233, .3);
  padding-top: 16px;
}
.hero__caption { margin: 0; font-style: italic; font-size: 15px; color: rgba(247, 242, 233, .85); }
.hero__controls { display: flex; align-items: center; gap: 14px; }
.hero__arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(247, 242, 233, .55); background: transparent; color: #f7f2e9;
  font-size: 18px; line-height: 1; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.hero__arrow:hover { background: #f7f2e9; color: #1c1915; border-color: #f7f2e9; }
.hero__dots { display: flex; gap: 6px; }
.hero__dot {
  width: 26px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.hero__dot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: rgba(247, 242, 233, .4); transition: background-color .3s, height .3s;
}
.hero__dot:hover::before { background: rgba(247, 242, 233, .8); }
.hero__dot.is-active::before { background: #e6b97a; height: 3px; }
.hero .reveal { opacity: 1; transform: none; }

.hero-stats { padding-top: 8px; }
.hero-stats .cover__stats { margin-top: 0; border-top: 0; }

@media (max-width: 960px) {
  .hero { height: 78svh; min-height: 500px; }
  .hero__shade {
    background:
      linear-gradient(0deg, rgba(20, 17, 14, .85) 0%, rgba(20, 17, 14, .45) 55%, rgba(20, 17, 14, .25) 100%);
  }
  .hero__content { justify-content: flex-end; padding-bottom: 104px; }
  .hero-stats .cover__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero__caption { display: none; }
  .hero__bar { justify-content: center; }
  .hero__arrow { width: 38px; height: 38px; }
  .hero__actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide img, .hero__slide.is-active img { transform: none; transition: none; }
}

/* ---------- Header: logo + menú en una sola fila ---------- */
.masthead { display: contents; }
.masthead > .wrap { display: none; }
.nav { margin-top: 0; border-top: 0; }
.nav .wrap { min-height: 76px; }
.nav__mini { opacity: 1; transform: none; pointer-events: auto; }
.nav__mini img { height: 46px; width: auto; }
@media (max-width: 960px) {
  .nav .wrap { min-height: 64px; }
  .nav__mini img { height: 38px; }
}

/* ---------- Hero: texto propio por diapositiva ---------- */
.hero__slide { pointer-events: none; }
.hero__slide.is-active { pointer-events: auto; }
.hero__content > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
}
.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__content > :nth-child(1) { transition-delay: .35s; }
.hero__slide.is-active .hero__content > :nth-child(2) { transition-delay: .48s; }
.hero__slide.is-active .hero__content > :nth-child(3) { transition-delay: .6s; }
.hero__slide.is-active .hero__content > :nth-child(4) { transition-delay: .72s; }
.hero__title { max-width: 14ch; }

/* ---------- Blog ---------- */
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 48px); }
.topics .chip { display: inline-flex; align-items: center; gap: 6px; }
.topics .chip small { font-weight: 500; opacity: .6; letter-spacing: 0; }
.topics .chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.blog-list__label { margin-bottom: 14px; }
.bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.bcard { display: flex; flex-direction: column; border-top: 1px solid var(--line-ink); padding-top: 16px; }
.bcard__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-3); margin-bottom: 16px; }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.bcard:hover .bcard__img img { transform: scale(1.05); }
.bcard__body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bcard__title { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; line-height: 1.2; text-wrap: balance; font-optical-sizing: none; font-variation-settings: "opsz" 20; }
.bcard__title a { transition: color .25s; }
.bcard:hover .bcard__title a { color: var(--accent); }
.bcard__body p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.bcard__body .meta { margin-top: auto; padding-top: 6px; }
.bcard--feature { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(20px, 3vw, 44px); align-items: center; margin-bottom: clamp(48px, 6vw, 80px); }
.bcard--feature .bcard__img { margin: 0; aspect-ratio: 16 / 10; }
.bcard--feature .bcard__title { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.bcard--feature .bcard__body p { font-size: 1.05rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(48px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); }

/* Article */
.post-head { padding: clamp(36px, 5vw, 72px) 0 clamp(24px, 3vw, 40px); max-width: 980px; }
.post-head .kicker { margin: 18px 0 12px; }
.post-head__title { font-size: clamp(2.2rem, 4.6vw, 4rem); max-width: 22ch; margin-bottom: 18px; }
.post-cover { margin: 0 auto clamp(36px, 5vw, 64px); }
.post-cover .fig__frame { aspect-ratio: 16 / 8; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { font-size: clamp(1.05rem, 1.1vw, 1.15rem); line-height: 1.75; }
.post-body > p:first-child::first-letter {
  float: left; font-family: var(--f-display); font-style: italic; font-weight: 500;
  font-size: 4.6em; line-height: .8; padding: .06em .12em 0 0; color: var(--accent);
}
.post-body h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; margin: 1.8em 0 .6em; text-wrap: balance; font-optical-sizing: none; font-variation-settings: "opsz" 20; }
.post-body h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; margin: 1.6em 0 .5em; font-optical-sizing: none; font-variation-settings: "opsz" 20; }
.post-body h4, .post-body h5 { font-family: var(--f-sans); font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 1.8em 0 .6em; color: var(--accent); }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body a:hover { text-decoration-thickness: 2px; }
.post-body img { width: 100%; height: auto; margin: 1.6em 0; background: var(--paper-3); }
.post-body figure { margin: 2em 0; }
.post-body figure img { margin: 0; }
.post-body figcaption { margin-top: 10px; font-style: italic; font-size: .9rem; color: var(--mute); }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.post-body ul, .post-body ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.post-body li { margin-bottom: .45em; }
.post-body li::marker { color: var(--accent); }
.table-wrap { overflow-x: auto; margin: 1.8em 0; border-top: 1px solid var(--line-ink); }
.post-body table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; min-width: 520px; }
.post-body td, .post-body th { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.post-body thead td, .post-body th { font-family: var(--f-sans); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.video { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-cta { margin-top: clamp(48px, 6vw, 80px); margin-bottom: clamp(64px, 8vw, 112px); padding: clamp(28px, 4vw, 44px); background: var(--paper-2); border-top: 3px solid var(--accent); }
.post-cta .h2 { margin: 10px 0 12px; }
.post-cta p { color: var(--ink-soft); }
.post-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

@media (max-width: 960px) {
  .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bcard--feature { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bgrid { grid-template-columns: 1fr; }
  .pager { flex-wrap: wrap; justify-content: center; }
  .post-cover .fig__frame { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .topics { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: thin; }
  .topics .chip { white-space: nowrap; flex: none; }
}
.sec-head + .bgrid .bcard { border-top: 0; padding-top: 0; }

/* ---------- Aviso de cookies (Analytics) ---------- */
.consent {
  position: fixed; left: 20px; bottom: 20px; z-index: 130;
  width: min(440px, calc(100% - 40px));
  padding: 20px 22px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-ink);
  box-shadow: 0 18px 40px -18px rgba(28, 25, 21, .5);
  animation: consentIn .5s var(--ease-out);
}
@keyframes consentIn { from { opacity: 0; transform: translateY(12px); } }
.consent__text { font-size: .95rem; line-height: 1.5; margin: 0 0 14px; }
.consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent__actions .btn { padding: 12px 18px; font-size: 12px; }
.cookie-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .has-consent .wa { bottom: 190px; }
}

/* ---------- Hero en celular: la altura se adapta al texto y más contraste ---------- */
@media (max-width: 960px) {
  .hero { height: auto; min-height: 0; max-height: none; }
  .hero__slides { position: relative; display: grid; }
  .hero__slide { position: relative; inset: auto; grid-area: 1 / 1; }
  .hero__img { position: absolute; inset: 0; }
  .hero__content {
    position: relative; inset: auto;
    min-height: calc(100svh - 150px);
    padding-top: 56px; padding-bottom: 112px;
    justify-content: flex-end;
  }
  .hero__shade {
    background:
      linear-gradient(0deg, rgba(20, 17, 14, .9) 0%, rgba(20, 17, 14, .72) 45%, rgba(20, 17, 14, .5) 100%);
  }
  .hero__title { font-size: clamp(2.2rem, 9vw, 3rem); text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
  .hero__lede { font-size: 1rem; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
  .hero__kicker { text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
}
@media (max-width: 380px) {
  .topbar { font-size: 11.5px; }
  .topbar__info a { white-space: nowrap; }
  .lang a { padding: 4px 4px; }
}
/* Celular: controles del slider a la izquierda para no quedar bajo el botón de WhatsApp */
@media (max-width: 640px) {
  .hero__bar { justify-content: flex-start; }
  .hero__controls { gap: 10px; }
  .hero__dot { width: 18px; }
  .hero__dots { gap: 4px; }
}

/* ---------- Portada: cabecera transparente sobre el slider ---------- */
/* Solo en páginas con .hero (la portada). Al bajar, el menú fijo (.is-stuck) vuelve a ser sólido. */
body:has(.hero) { --head-h: 118px; }
@media (max-width: 960px) { body:has(.hero) { --head-h: 106px; } }

body:has(.hero) .topbar {
  position: relative; z-index: 101;
  background: transparent;
  color: rgba(247, 242, 233, .92);
  border-bottom-color: rgba(247, 242, 233, .22);
}
body:has(.hero) .topbar a:hover { color: #e6b97a; }
body:has(.hero) .topbar__hours b { color: #e6b97a; }
body:has(.hero) .lang a { color: rgba(247, 242, 233, .75); }
body:has(.hero) .lang a:hover, body:has(.hero) .lang a[aria-current="true"] { color: #e6b97a; }

body:has(.hero) .nav {
  transition: background-color .35s var(--ease-out), border-color .35s, box-shadow .3s;
}
body:has(.hero) .nav:not(.is-stuck):not(.is-open) {
  background: transparent;
  border-bottom-color: rgba(247, 242, 233, .22);
  box-shadow: none;
}
body:has(.hero) .nav:not(.is-stuck):not(.is-open) .nav__links > li > a,
body:has(.hero) .nav:not(.is-stuck):not(.is-open) .nav__toggle { color: #f7f2e9; }
body:has(.hero) .nav:not(.is-stuck):not(.is-open) .nav__links a[aria-current="page"] { color: #e6b97a; }
body:has(.hero) .nav:not(.is-stuck):not(.is-open) .nav__toggle i,
body:has(.hero) .nav:not(.is-stuck):not(.is-open) .nav__toggle i::before,
body:has(.hero) .nav:not(.is-stuck):not(.is-open) .nav__toggle i::after { background: #f7f2e9; }
/* logo con letras blancas mientras la cabecera es transparente */
body:has(.hero) .nav:not(.is-stuck):not(.is-open) .nav__mini {
  background: url("assets/img/logo-wayraq.png") left center / contain no-repeat;
}
body:has(.hero) .nav:not(.is-stuck):not(.is-open) .nav__mini img { opacity: 0; }

/* el slider sube hasta arriba, detrás de la cabecera */
body:has(.hero) .hero {
  margin-top: calc(-1 * var(--head-h));
  height: calc(82vh + var(--head-h));
  height: calc(82svh + var(--head-h));
  max-height: calc(860px + var(--head-h));
}
body:has(.hero) .hero__content { padding-top: var(--head-h); }
body:has(.hero) .hero__shade {
  background:
    linear-gradient(180deg, rgba(20, 17, 14, .6) 0, rgba(20, 17, 14, 0) 220px),
    linear-gradient(90deg, rgba(20, 17, 14, .78) 0%, rgba(20, 17, 14, .5) 40%, rgba(20, 17, 14, .08) 75%),
    linear-gradient(0deg, rgba(20, 17, 14, .6) 0%, rgba(20, 17, 14, 0) 32%);
}
@media (max-width: 960px) {
  body:has(.hero) .hero { height: auto; max-height: none; }
  body:has(.hero) .hero__content {
    padding-top: calc(var(--head-h) + 40px);
    min-height: calc(100svh - 40px);
  }
  body:has(.hero) .hero__shade {
    background:
      linear-gradient(180deg, rgba(20, 17, 14, .55) 0, rgba(20, 17, 14, 0) 180px),
      linear-gradient(0deg, rgba(20, 17, 14, .9) 0%, rgba(20, 17, 14, .72) 45%, rgba(20, 17, 14, .45) 100%);
  }
}
/* Celular: controles del slider centrados y rayitas más cortas */
@media (max-width: 640px) {
  .hero__bar { justify-content: center; }
  .hero__controls { gap: 8px; }
  .hero__arrow { width: 36px; height: 36px; font-size: 16px; }
  .hero__dots { gap: 4px; }
  .hero__dot { width: 10px; }
}
