@font-face { font-family: 'Bricolage'; src: url('fonts/bricolage.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('fonts/figtree.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  --ink: #211a16; --ink-2: #5d524a; --sand: #f6f0e7; --sand-2: #ece2d3; --paper: #fffdf9;
  --clay: #923d31; --clay-dark: #752d23; --line: #dccfbc; --sky: #17506b;
  --radius: 14px; --wrap: 1180px; --display: 'Bricolage', 'Arial Narrow', sans-serif; --body: 'Figtree', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--clay-dark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 650; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(18px, 4vw, 32px); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-tight { padding-top: 12px; }
.section-head { margin-bottom: 30px; max-width: 680px; }
.section-head p { color: var(--ink-2); margin-top: 10px; }
.center { text-align: center; margin-top: 34px; }
.muted { color: var(--ink-2); font-size: .875rem; line-height: 1.45; }
.band { background: var(--sand-2); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 22px; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-dark); }
.btn-outline { border-color: var(--clay); color: var(--clay-dark); }
.btn-outline:hover { background: var(--clay); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-small { min-height: 40px; padding: 7px 14px; font-size: .9375rem; }
.btn-wa { background: var(--ink); color: #fff; }
.btn-wa:hover { background: #000; }
.btn-block { width: 100%; }

/* Cabecera */
.site-head { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: clamp(10px, 2.2vw, 26px); padding: 9px clamp(16px, 3vw, 32px); background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand img { width: 26px; height: auto; mix-blend-mode: multiply; }
.brand .wordmark { width: 112px; }
.main-nav { display: flex; gap: clamp(12px, 2vw, 24px); margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .9688rem; }
.main-nav a:hover { color: var(--clay); }
.lang { display: flex; gap: 2px; font-size: .8125rem; font-weight: 650; }
.lang > * { padding: 7px 7px; border-radius: 6px; text-decoration: none; color: var(--ink-2); min-width: 32px; text-align: center; }
.lang a:hover { background: var(--sand-2); color: var(--ink); }
.lang [aria-current] { color: var(--clay-dark); box-shadow: inset 0 -2px 0 var(--clay); border-radius: 0; }

/* Portadas */
.hero { position: relative; display: flex; align-items: flex-end; color: #fff; background: #2b2019; overflow: hidden; }
.hero-home { min-height: min(84vh, 760px); }
.hero-tour { min-height: min(62vh, 560px); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,12,8,.1) 25%, rgba(20,12,8,.74) 100%); }
.hero-text { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin-inline: auto; padding: clamp(40px, 8vw, 72px) clamp(18px, 4vw, 32px); }
.hero-text h1, .hero-text .lead { text-shadow: 0 1px 18px rgba(0,0,0,.42); }
.kicker { font-size: .875rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.lead { font-size: clamp(1.08rem, 2vw, 1.35rem); line-height: 1.45; max-width: 640px; margin-top: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.crumbs { font-size: .875rem; margin-bottom: 14px; }
.crumbs a { color: #fff; }
.page-head { padding-block: clamp(40px, 6vw, 64px) 26px; }
.page-head .lead { color: var(--ink-2); }

/* Tarjetas */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(70,42,20,.14); }
.card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 16px 18px 18px; }
.card-cat { font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--clay-dark); }
.card-tag { color: var(--ink-2); font-size: .9688rem; line-height: 1.4; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; font-size: .875rem; font-weight: 600; }
.alti { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.alti > span { display: block; width: 38px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--clay) var(--a), var(--sand-2) var(--a)); }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.filters button { min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font: 600 .9375rem var(--body); color: var(--ink); cursor: pointer; }
.filters button:hover { border-color: var(--clay); }
.filters button[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Plan por días */
.plan-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--paper); border-radius: 999px; border: 1px solid var(--line); margin-bottom: 24px; }
.plan-tabs button { min-height: 42px; padding: 7px 20px; border: 0; border-radius: 999px; background: none; font: 600 .9688rem var(--body); color: var(--ink); cursor: pointer; }
.plan-tabs button[aria-selected='true'] { background: var(--clay); color: #fff; }
.plan-days { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 24px; }
.plan-days a { display: flex; flex-direction: column; gap: 2px; height: 100%; color: inherit; text-decoration: none; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); padding-bottom: 12px; }
.plan-days a > *:not(.plan-img) { padding-inline: 13px; }
.plan-img { aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 9px; }
.plan-img img { width: 100%; height: 100%; object-fit: cover; }
.plan-day { font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--clay-dark); }
.plan-days strong { font: 650 1.0625rem/1.2 var(--display); }
.plan-alt { font-size: .875rem; color: var(--ink-2); margin-top: auto; padding-top: 4px; }
.plan-more { margin-top: 22px; color: var(--ink-2); }

/* Historia */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 60px); align-items: center; }
.story-text .kicker { color: var(--clay-dark); }
.story-text p:not(.kicker) { margin-top: 16px; color: var(--ink-2); max-width: 54ch; }
.story-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand-2); }
.story-img img { width: 100%; height: 100%; object-fit: cover; }

/* Confianza y pasos */
.why { display: grid; gap: 26px 34px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.why li { border-top: 3px solid var(--clay); padding-top: 13px; }
.why p, .steps p { color: var(--ink-2); margin-top: 6px; font-size: 1rem; }
.steps { counter-reset: s; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; font: 700 2.8rem/1 var(--display); color: var(--clay); margin-bottom: 6px; }

/* Ficha del tour */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 22px; margin-block: 26px 0; padding-block: 0 24px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font-weight: 650; line-height: 1.3; }
.tour-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: clamp(30px, 5vw, 60px); padding-block: 38px 72px; align-items: start; }
.tour-main { display: flex; flex-direction: column; gap: 42px; min-width: 0; }
.tour-main h2 { margin-bottom: 15px; font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.prose { max-width: 66ch; white-space: pre-line; }
.stops { counter-reset: st; }
.stops li { position: relative; padding: 0 0 12px 34px; counter-increment: st; line-height: 1.4; }
.stops li::before { content: counter(st); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; background: var(--clay); color: #fff; font: 700 .75rem/24px var(--body); text-align: center; }
.stops li:not(:last-child)::after { content: ''; position: absolute; left: 11px; top: 25px; bottom: 1px; width: 2px; background: var(--line); }
.day { padding-block: 24px; border-top: 1px solid var(--line); }
.day:first-child { border-top: 0; padding-top: 0; }
.day h3 { margin-bottom: 15px; font-size: 1.4rem; }
.day-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 18px; }
.day-imgs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; }
.sleep { font-weight: 600; color: var(--clay-dark); margin-top: 4px; }
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 32px 38px; }
.details h2 { font-size: 1.3rem; margin-bottom: 11px; }
.fee p + p { margin-top: 8px; }
.ticks li { padding-left: 23px; position: relative; margin-bottom: 7px; line-height: 1.38; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 11px; height: 6px; border-left: 2px solid var(--clay); border-bottom: 2px solid var(--clay); transform: rotate(-45deg); }
.notice { padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--clay); border-radius: 8px; }
.notice p { margin-top: 5px; }
.pending { padding: 14px 18px; background: var(--sand-2); border-radius: 9px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 9px; }
.gallery a { display: block; border-radius: 9px; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; background: var(--sand-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.04); }

/* Reserva */
.booking { position: sticky; top: 82px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 10px 28px rgba(70,42,20,.1); }
.booking h2 { font-size: 1.35rem; }
.booking form { display: flex; flex-direction: column; gap: 14px; }
.price { padding-block: 11px; border-block: 1px solid var(--line); }
.price span { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.price strong { font: 650 1.2rem/1.25 var(--display); }
.price small { font: 400 .875rem var(--body); }
.booking label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .9375rem; }
.booking input, .booking select { min-height: 46px; width: 100%; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; font: 400 1rem var(--body); color: var(--ink); }
.book-bar { display: none; }

/* Visor */
.viewer { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.viewer::backdrop { background: rgba(15,10,6,.88); }
.viewer img { max-width: 94vw; max-height: 86vh; width: auto; border-radius: 8px; }
.viewer-close { display: block; margin: 0 0 8px auto; padding: 8px 15px; min-height: 40px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: 600 .9375rem var(--body); cursor: pointer; }

/* Pie */
.site-foot { display: grid; grid-template-columns: minmax(220px, 1fr) 2.2fr; gap: 34px; padding: 48px clamp(18px, 4vw, 32px); background: var(--ink); color: #e9ded0; }
.site-foot > * { min-width: 0; }
.site-foot img { border-radius: 8px; margin-bottom: 13px; }
.site-foot h2 { font-size: 1.1rem; margin-bottom: 11px; color: #fff; }
.site-foot ul { columns: 3 170px; column-gap: 24px; }
.site-foot li { margin-bottom: 5px; break-inside: avoid; }
.site-foot a { color: #e9ded0; text-decoration: none; font-size: .9375rem; }
.site-foot a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 920px) {
  .main-nav { display: none; }
  .lang { margin-left: auto; }
  .tour-layout { grid-template-columns: minmax(0, 1fr); }
  .story { grid-template-columns: minmax(0, 1fr); }
  .booking { position: static; scroll-margin-top: 80px; }
  .book-bar { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 16px; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -5px 18px rgba(70,42,20,.12); }
  .book-bar div { min-width: 0; line-height: 1.25; }
  .book-bar span { display: block; font-size: .8125rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .book-bar strong { font-size: .9375rem; }
  .book-bar .btn { flex: none; }
  body:has(.book-bar) { padding-bottom: 68px; }
  .site-foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .brand .wordmark { width: 92px; }
  .btn-wa span { display: none; }
  .btn-wa { padding-inline: 11px; }
  .plan-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-tabs button { padding-inline: 13px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .day-imgs { grid-template-columns: repeat(2, 1fr); }
  .day-imgs img:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .gallery img { transition: none; }
  .card:hover { transform: none; }
  .gallery a:hover img { transform: none; }
}
