/* Arcada — viajes a pie (concepto de Materia) */
:root {
  --paper: #f2eee5;
  --paper-2: #e8e2d4;
  --ink: #1b201c;
  --pine: #203128;
  --rose: #d46a4f;        /* enrosadira: el rosa de la roca al atardecer */
  --stone: #cfc6b4;
  --mute: #5a6058;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --gut: clamp(16px, 4.5vw, 72px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.is-preview { scrollbar-width: none; }
html.is-preview::-webkit-scrollbar { display: none; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
em { font-style: italic; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: .96; letter-spacing: -.02em; font-variation-settings: "opsz" 144; }
h1 em, h2 em { color: var(--rose); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.btn { display: inline-flex; align-items: center; gap: .6em; padding: 16px 26px; border-radius: 999px 999px 999px 999px; background: var(--rose); color: #fff; font-weight: 600; text-decoration: none; transition: transform .3s, background .3s; }
.btn::after { content: "→"; }
.btn:hover { transform: translateY(-2px); background: #bf5a40; }
.btn-dark { background: var(--pine); }
.btn-dark:hover { background: #0f1c15; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav { position: fixed; z-index: 50; inset: 0 0 auto; display: flex; align-items: center; gap: 32px; padding: 18px var(--gut); color: var(--ink); transition: color .4s, background .4s, transform .5s; }
.nav.on-photo { color: #fff; }
.nav.solid { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); color: var(--ink); }
.wordmark { display: flex; align-items: center; gap: 9px; font: 500 26px/1 var(--serif); text-decoration: none; letter-spacing: -.02em; }
.wordmark svg { width: 20px; height: 24px; }
.nav nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav nav a { text-decoration: none; opacity: .85; }
.nav nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.nav-cta { padding: 10px 18px; border: 1.5px solid currentColor; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; }
.nav-cta:hover { background: var(--rose); border-color: var(--rose); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 640vh; }
html:not(.js) .hero { height: auto; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); }
.hero-copy { position: absolute; left: var(--gut); bottom: 12vh; width: min(48vw, 720px); z-index: 3; }
.hero-copy h1 { font-size: clamp(60px, 8.6vw, 156px); margin: 18px 0 26px; }
.lede { font-size: clamp(18px, 1.4vw, 21px); max-width: 30em; margin-bottom: 30px; }
.window { position: absolute; inset: 0; z-index: 2; clip-path: inset(14vh 8vw 8vh 58vw round 16vw 16vw 0 0); will-change: clip-path; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; will-change: transform, opacity; }
.shot.s0 { opacity: 1; }
.window-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 12, .35), rgba(10, 16, 12, 0) 30%, rgba(10, 16, 12, .1) 55%, rgba(10, 16, 12, .72)); opacity: 0; }
.arch-cap { position: absolute; z-index: 3; right: 8vw; bottom: 3.6vh; font-size: 13px; color: var(--mute); }
.chap { position: absolute; z-index: 4; left: var(--gut); bottom: 11vh; max-width: 760px; color: #fff; opacity: 0; visibility: hidden; }
.chap .num { display: block; font: 500 14px/1 var(--sans); letter-spacing: .2em; margin-bottom: 18px; }
.chap h2 { font-size: clamp(54px, 7.4vw, 132px); margin-bottom: 22px; }
.chap h2 em { color: #ffd2bf; }
.chap p { font-size: clamp(18px, 1.35vw, 21px); max-width: 30em; }
.reveal { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; }
.reveal-t { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: flex; justify-content: space-between; padding: 0 var(--gut); font-size: clamp(80px, 17.5vw, 330px); letter-spacing: -.045em; line-height: .8; }
.reveal-t span { display: block; opacity: 0; }
.reveal-t span:last-child { font-style: italic; color: var(--rose); }
.reveal-k, .reveal-s { position: absolute; left: 0; right: 0; text-align: center; opacity: 0; }
.reveal-k { top: 14vh; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.reveal-s { bottom: 8vh; font: 400 clamp(22px, 2vw, 30px)/1.2 var(--serif); }
.hero-hint { position: absolute; z-index: 3; left: 50%; bottom: 3.4vh; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.hero-hint::after { content: ""; display: block; width: 1px; height: 26px; margin: 8px auto 0; background: currentColor; animation: drip 1.8s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Mapa ---------- */
.map { position: relative; padding: 150px 0 120px; background: var(--paper-2); }
.map-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; padding: 0 var(--gut) 44px; }
.map-head h2 { font-size: clamp(46px, 6vw, 104px); margin-top: 16px; max-width: 11em; }
.map-help { max-width: 18em; font-size: 17px; color: var(--mute); padding-bottom: 8px; }
.map-frame { position: relative; margin: 0 calc(var(--gut) * .5); height: min(90vh, 900px); min-height: 560px; border-radius: 48vw 48vw 26px 26px / 9vw 9vw 26px 26px; overflow: hidden; background: #e4dccb; isolation: isolate; }
.map-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.map-gl:active { cursor: grabbing; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; font: italic 400 26px var(--serif); color: var(--mute); transition: opacity .8s; pointer-events: none; }
.map.ready .map-loading { opacity: 0; }
.pins { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.pin { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 0; border-radius: 999px; background: #fffaf2; color: var(--ink); box-shadow: 0 6px 18px rgba(30, 30, 20, .22); font-size: 13px; font-weight: 600; white-space: nowrap; transform-origin: 18px 50%; transition: background .3s, color .3s, opacity .3s; }
.pin::after { content: ""; position: absolute; left: 17px; top: 100%; width: 2px; height: 22px; background: inherit; }
.pin b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--pine); color: #fff; font: 600 13px var(--sans); }
.pin.on { background: var(--rose); color: #fff; z-index: 3; }
.pin.on b { background: #fff; color: var(--rose); }
.pin.far span { display: none; }
.pin.far { padding-right: 4px; }
.days { position: absolute; z-index: 3; left: 22px; top: 11vw; list-style: none; padding: 10px; border-radius: 22px; background: rgba(255, 250, 242, .88); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(30, 30, 20, .14); width: 236px; }
.days button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: none; text-align: left; font-size: 15px; font-weight: 500; }
.days button i { font: 600 12px var(--sans); font-style: normal; color: var(--mute); width: 34px; flex: none; }
.days button:hover { background: rgba(0, 0, 0, .05); }
.days button[aria-current="true"] { background: var(--pine); color: #fff; }
.days button[aria-current="true"] i { color: #ffd2bf; }
.card { position: absolute; z-index: 3; right: 22px; bottom: 22px; width: 360px; border-radius: 22px; overflow: hidden; background: #fffaf2; box-shadow: 0 16px 40px rgba(30, 30, 20, .22); transition: opacity .35s, transform .35s; }
.card.swap { opacity: 0; transform: translateY(10px); }
.card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--stone); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 20px; position: relative; }
.card-k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }
.card-t { font-size: 32px; margin: 8px 0 10px; }
.card-p { font-size: 15.5px; line-height: 1.5; }
.card-d { display: flex; gap: 22px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e5ddcd; font-size: 13px; color: var(--mute); }
.card-d div { display: flex; flex-direction: column; }
.card-d dd { font: 500 20px/1.2 var(--serif); color: var(--ink); }
.card-nav { position: absolute; right: 18px; top: -22px; display: flex; gap: 8px; }
.card-nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pine); color: #fff; font-size: 18px; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.card-nav button:hover { background: var(--rose); }
.map-tools { position: absolute; z-index: 3; right: 22px; top: 11vw; display: flex; gap: 8px; }
.map-tools button { height: 44px; min-width: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255, 250, 242, .92); box-shadow: 0 6px 16px rgba(30, 30, 20, .14); font-size: 14px; font-weight: 600; }
.map-tools .t-in, .map-tools .t-out { padding: 0; font-size: 20px; }
.map-tools button[aria-pressed="true"] { background: var(--pine); color: #fff; }
.map-scale { position: absolute; z-index: 3; left: 24px; bottom: 18px; font-size: 12px; color: var(--mute); background: rgba(255, 250, 242, .7); padding: 4px 10px; border-radius: 99px; }

/* ---------- La salida ---------- */
.trip { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6vw; align-items: center; padding: 150px var(--gut); }
.trip-photos { position: relative; height: min(78vh, 760px); }
.tp { position: absolute; overflow: hidden; }
.tp img { width: 100%; height: 100%; object-fit: cover; }
.tp figcaption { position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: 13px; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.tp1 { left: 0; top: 0; width: 70%; height: 82%; border-radius: 999px 999px 0 0; }
.tp2 { right: 0; bottom: 0; width: 46%; height: 52%; border-radius: 18px; box-shadow: 0 0 0 10px var(--paper); }
.trip-copy h2 { font-size: clamp(64px, 8vw, 140px); margin: 16px 0 34px; }
.trip-copy h2 small { display: block; margin-top: 14px; font: 400 18px/1.4 var(--sans); letter-spacing: 0; color: var(--mute); }
.incl { list-style: none; border-top: 1.5px solid var(--ink); margin-bottom: 30px; }
.incl li { padding: 13px 0; border-bottom: 1px solid #d6cdbb; font-size: 17px; }
.incl b { font-weight: 600; }
.trip-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 34px; color: var(--mute); font-size: 15px; }
.trip-meta b { color: var(--ink); font: 500 22px var(--serif); }

/* ---------- Próximas salidas ---------- */
.next-trips { position: relative; padding: 130px var(--gut) 140px; background: var(--pine); color: #f4efe5; }
.nt-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 40px; }
.nt-head .kicker { color: #a9b5a9; order: 2; }
.nt-head h2 { font-size: clamp(54px, 7vw, 120px); }
.nt-list { list-style: none; border-top: 1px solid rgba(255, 255, 255, .25); }
.nt { display: grid; grid-template-columns: 90px 1fr minmax(0, 300px) 120px; align-items: baseline; gap: 24px; padding: 26px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); cursor: default; transition: color .3s, padding .4s; }
.nt-m { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #a9b5a9; }
.nt-n { font: 400 clamp(32px, 4vw, 64px)/1 var(--serif); letter-spacing: -.02em; }
.nt-x { color: #c9d0c6; font-size: 16px; }
.nt-p { text-align: right; font: 400 24px var(--serif); }
.nt.is-feat .nt-n { font-style: italic; color: #ffb59f; }
.nt.hot { color: #ffb59f; padding-left: 14px; }
.nt-peek { position: fixed; z-index: 20; left: 0; top: 0; width: 260px; height: 330px; border-radius: 999px 999px 14px 14px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .3s, transform .3s; }
.nt-peek.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.nt-peek img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cómo viajamos ---------- */
.how { padding: 150px var(--gut); }
.how h2 { font-size: clamp(48px, 6.4vw, 112px); max-width: 13em; margin-bottom: 70px; }
.how-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; border-top: 1.5px solid var(--ink); padding-top: 26px; }
.how-cols p { font-size: 18px; }
.how-cols b { display: block; font: 500 26px/1.15 var(--serif); margin-bottom: 10px; }

/* ---------- Footer ---------- */
.foot { display: grid; grid-template-columns: minmax(0, 1fr) 1.3fr; gap: 6vw; align-items: end; padding: 120px var(--gut) 50px; background: var(--ink); color: #f1ece2; }
.foot-arch { aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; overflow: hidden; max-height: 70vh; }
.foot-arch img { width: 100%; height: 100%; object-fit: cover; }
.foot-copy h2 { font-size: clamp(60px, 8vw, 150px); margin-bottom: 40px; }
.foot-copy h2 em { color: #ffb59f; }
.foot-mail { display: inline-block; font: 400 clamp(26px, 2.6vw, 42px) var(--serif); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; margin-bottom: 20px; }
.foot-mail:hover { color: #ffb59f; }
.foot-copy p { color: #c4c0b6; font-size: 15px; }
.foot-legal { margin-top: 60px; font-size: 13px !important; }

/* ---------- Móvil ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 14px; padding: 14px 16px; }
  .nav nav { display: none; }
  .nav-cta { margin-left: auto; padding: 8px 14px; font-size: 13px; }
  .hero-copy { left: 16px; right: 16px; bottom: 4.5vh; width: auto; }
  .shot.s0 { object-position: 30% 50%; }
  .hero-copy h1 { font-size: 54px; margin: 12px 0 14px; }
  .lede { font-size: 16px; margin-bottom: 0; }
  .hero-copy .btn { display: none; }
  .arch-cap { display: none; }
  .hero-hint { display: none; }
  .chap { left: 16px; right: 16px; bottom: 8vh; }
  .chap h2 { font-size: 50px; }
  .reveal-t { font-size: 22vw; flex-direction: column; align-items: center; justify-content: center; gap: 52vh; padding: 0; }
  .reveal-k { display: none; }
  .reveal-s { bottom: 5vh; font-size: 20px; }
  .map { padding: 100px 0 70px; }
  .map-head { flex-direction: column; align-items: start; gap: 14px; padding: 0 16px 26px; }
  .map-help { font-size: 15px; }
  .map-frame { margin: 0 8px; height: 82svh; min-height: 560px; border-radius: 46vw 46vw 20px 20px / 18vw 18vw 20px 20px; }
  .trip { grid-template-columns: 1fr; gap: 50px; padding: 90px 16px; }
  .trip-photos { height: 108vw; }
  .tp2 { box-shadow: 0 0 0 6px var(--paper); }
  .next-trips { padding: 90px 16px; }
  .nt-head { flex-direction: column; align-items: start; gap: 10px; }
  .nt-head .kicker { order: 0; }
  .nt { grid-template-columns: 46px 1fr auto; gap: 4px 12px; padding: 18px 0; }
  .nt-x { grid-column: 2 / 4; font-size: 14px; }
  .nt-p { grid-row: 1; grid-column: 3; font-size: 18px; }
  .nt-n { font-size: 30px; }
  .nt-peek { display: none; }
  .how { padding: 90px 16px; }
  .how h2 { margin-bottom: 40px; }
  .how-cols { grid-template-columns: 1fr; gap: 26px; }
  .foot { grid-template-columns: 1fr; padding: 80px 16px 40px; gap: 40px; }
  .foot-arch { max-height: 58vh; width: 78%; }
}

/* Mapa compacto: tablet, móvil y la tarjeta de Materia */
@media (max-width: 1000px) {
  .days { left: 0; right: 0; top: 64px; width: auto; display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; scrollbar-width: none; }
  .days li { flex: none; }
  .days button { padding: 8px 12px; background: rgba(255, 250, 242, .92); border-radius: 999px; font-size: 14px; white-space: nowrap; box-shadow: 0 4px 12px rgba(30, 30, 20, .15); }
  .days button i { width: auto; display: none; }
  .card { left: 10px; right: 10px; bottom: 10px; width: auto; display: grid; grid-template-columns: 34% 1fr; }
  .card-img { aspect-ratio: auto; height: 100%; }
  .card-body { padding: 12px 14px 14px; }
  .card-t { font-size: 22px; margin: 4px 0 6px; }
  .card-p { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .card-d { display: none; }
  .card-nav { position: static; margin-top: 10px; }
  .card-nav button { width: 38px; height: 38px; font-size: 16px; }
  .map-tools { top: auto; bottom: 186px; right: 10px; flex-direction: column; }
  .map-tools .t-all { display: none; }
  .map-tools button { height: 40px; min-width: 40px; padding: 0 12px; font-size: 13px; }
  .map-scale { display: none; }
  .pin span { display: none; }
  .pin { padding-right: 4px; }
  .pin.on span { display: inline; }
  .pin.on { padding-right: 12px; }
  .card { max-width: 560px; }
}
@media (max-width: 640px) {
  .days { top: 20vw; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-hint::after { animation: none; }
}
