@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --asphalt: #1b1b19;
  --asphalt-2: #262623;
  --paper: #f4efe5;
  --paper-2: #ebe4d3;
  --ink: #1b1a17;
  --muted: #6c675b;
  --line: #d9d0bd;
  --yellow: #f2b705;
  --rust: #c8472b;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  color: #fff;
  background: linear-gradient(180deg, rgba(20,20,18,.75), rgba(20,20,18,0));
  transition: background .25s;
}
.nav.solid { background: rgba(27,27,25,.94); backdrop-filter: blur(6px); }
.nav .brand { font-family: var(--serif); font-weight: 600; font-size: 20px; text-decoration: none; letter-spacing: .01em; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.nav a { text-decoration: none; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--yellow); }
@media (max-width: 640px) {
  .nav { padding: 12px 16px; }
  .nav ul { gap: 14px; font-size: 12px; }
  .nav li.hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--asphalt);
  color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 600px at 75% 20%, rgba(242,183,5,.16), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(200,71,43,.22), transparent 60%),
    var(--asphalt);
}
.hero-bg .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s; }
.hero-bg .slide.on { opacity: .55; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,27,25,.2), rgba(27,27,25,.85)); }
.hero-inner { padding: 140px 0 70px; }
.eyebrow { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--yellow); margin: 0 0 18px; }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(54px, 11vw, 150px);
  line-height: .92; letter-spacing: -.02em;
  margin: 0 0 22px;
}
.hero p.lead { max-width: 560px; font-size: clamp(18px, 2.2vw, 22px); color: #e9e4d6; margin: 0 0 34px; }
.btn {
  display: inline-block; text-decoration: none;
  background: var(--yellow); color: var(--asphalt);
  font-weight: 600; letter-spacing: .04em;
  padding: 13px 24px; border-radius: 999px;
}
.btn:hover { background: #ffd04a; }
.hero-inner .btn { margin: 0 10px 12px 0; }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn.ghost:hover { border-color: var(--yellow); color: var(--yellow); }

/* línea central de la ruta */
.centerline {
  height: 6px; width: 100%;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 46px, transparent 46px 90px);
  animation: road 4s linear infinite;
  opacity: .9;
}
@keyframes road { to { background-position: -90px 0; } }
@media (prefers-reduced-motion: reduce) { .centerline { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Cifras ---------- */
.stats { background: var(--asphalt-2); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; border-left: 1px solid rgba(255,255,255,.1); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .n { font-family: var(--sans); font-weight: 700; font-size: clamp(38px, 6vw, 68px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--yellow); }
.stat .l { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin-top: 8px; }
@media (max-width: 720px) {
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .stat:nth-child(-n+2) { border-top: 0; }
}

/* ---------- Secciones ---------- */
section { padding: 90px 0; }
.sec-head { max-width: 700px; margin-bottom: 38px; }
.sec-head .eyebrow { color: var(--rust); }
.sec-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 0 0 14px; letter-spacing: -.01em; }
.sec-head p { color: var(--muted); margin: 0; font-size: 18px; }

/* ---------- Mapa ---------- */
.map-box { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
#map-all { height: min(70vh, 620px); min-height: 380px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.legend a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.legend a:hover { color: var(--ink); }
.legend i { width: 22px; height: 4px; border-radius: 2px; display: inline-block; }
.map-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------- Viajes ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip {
  font: inherit; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; text-decoration: none;
  background: #fffdf8; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(27,26,23,.14); }
.card .cover {
  position: relative; aspect-ratio: 16 / 10; background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 16px; color: #fff;
}
.card .cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55)); }
.card .num { position: relative; font-family: var(--sans); font-weight: 700; font-size: 52px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; opacity: .95; }
.card .body { padding: 20px 22px 24px; }
.card .meta { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1.15; margin: 0 0 10px; }
.card p { margin: 0 0 14px; color: #3d3a32; font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12.5px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

/* ---------- Brasil ---------- */
.brasil { background: var(--asphalt); color: #fff; }
.brasil .sec-head p { color: #cfc9b8; }
.brasil .sec-head .eyebrow { color: var(--yellow); }
.b-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .b-grid { grid-template-columns: 1fr; } }
#map-br { height: 420px; border-radius: 6px; border: 1px solid rgba(255,255,255,.15); }
.route-list { display: grid; gap: 14px; }
.route {
  border: 1px dashed rgba(255,255,255,.3); border-radius: 6px; padding: 18px 20px;
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center;
}
.route .rn { font-family: var(--sans); font-weight: 700; font-size: 32px; color: var(--yellow); grid-row: span 2; }
.route h4 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.route small { color: #cfc9b8; font-size: 14px; }
.route.real { border-style: solid; background: rgba(255,255,255,.04); }
.fields { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.fields li { font-size: 13px; letter-spacing: .06em; border: 1px solid rgba(255,255,255,.25); padding: 4px 12px; border-radius: 999px; color: #e1dccd; }

/* ---------- Acerca ---------- */
.about { background: var(--paper-2); }
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width: 800px) { .about .wrap { grid-template-columns: 1fr; gap: 24px; } }
.about h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4.5vw, 50px); margin: 0; line-height: 1.08; }
.about p { margin: 0 0 14px; font-size: 18px; }
.about a.ig { font-weight: 600; text-decoration-color: var(--rust); text-underline-offset: 4px; }

footer { background: var(--asphalt); color: #b9b3a2; padding: 34px 0; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; }

/* ---------- Ficha de viaje ---------- */
.t-hero { background: var(--asphalt); color: #fff; padding: 130px 0 50px; position: relative; overflow: hidden; }
.t-hero .num { font-family: var(--sans); font-weight: 700; letter-spacing: -.04em; font-size: clamp(80px, 16vw, 200px); line-height: .8; color: var(--accent, var(--yellow)); opacity: .95; }
.t-hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 6.5vw, 82px); line-height: 1; letter-spacing: -.015em; margin: 14px 0 22px; max-width: 16ch; }
.t-hero .cover-img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; z-index: 0; }
.t-hero .wrap { position: relative; z-index: 1; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 36px; margin-top: 10px; }
.fact .k { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); }
.fact .v { font-size: 20px; font-family: var(--sans); font-weight: 600; font-variant-numeric: tabular-nums; }
.fact .s { font-size: 13px; color: #bdb7a5; }
.t-body { padding: 60px 0 30px; }
.t-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; align-items: start; }
@media (max-width: 900px) { .t-grid { grid-template-columns: 1fr; gap: 30px; } }
.t-summary { font-size: 20px; line-height: 1.6; margin: 0 0 30px; }
#map-trip { height: min(65vh, 560px); min-height: 360px; border-radius: 6px; border: 1px solid var(--line); position: sticky; top: 74px; }
@media (max-width: 900px) { #map-trip { position: relative; top: auto; } }
.stops { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.stops li { position: relative; padding: 12px 0 12px 54px; border-bottom: 1px solid var(--line); counter-increment: s; }
.stops li::before {
  content: counter(s); position: absolute; left: 0; top: 11px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent, var(--ink)); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 600;
}
.stops .sn { font-weight: 600; font-size: 18px; }
.stops .sd { color: var(--muted); font-size: 15px; }
.block { margin: 46px 0 0; }
.block h2 { font-family: var(--serif); font-weight: 600; font-size: 30px; margin: 0 0 16px; }
.placeholder {
  border: 1.5px dashed #b9ae94; border-radius: 6px; padding: 34px 24px; text-align: center;
  color: var(--muted); background: rgba(255,255,255,.4);
}
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; cursor: zoom-in; }
.video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 14px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; }
.tips { margin: 0; padding-left: 20px; }
.tips li { margin-bottom: 8px; }
.pager { display: flex; justify-content: space-between; gap: 20px; padding: 40px 0 70px; margin-top: 50px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; max-width: 48%; }
.pager .k { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pager .v { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.pager a:hover .v { color: var(--rust); }
.pager .r { text-align: right; margin-left: auto; }

/* marcadores del mapa */
.pin {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--c, #1b1a17); color: #fff; border: 2px solid #fff;
  display: grid; place-items: center; font: 600 12px/1 var(--sans);
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.pin.sm { width: 12px; height: 12px; border-width: 2px; }
.leaflet-popup-content { font-family: var(--sans); }
.leaflet-container a.pop-link { color: var(--rust); font-weight: 600; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(10,10,9,.92); z-index: 100; display: none; place-items: center; padding: 20px; }
.lb.on { display: grid; }
.lb img { max-height: 92vh; max-width: 96vw; object-fit: contain; }
