:root {
  --bg: #fffaf0;
  --bg-soft: #f4ead8;
  --ink: #17211c;
  --muted: #63706a;
  --green: #0b5d4d;
  --green-2: #073f36;
  --copper: #c46a2d;
  --sand: #e7c892;
  --blue: #0d526c;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(23, 33, 28, 0.16);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --container: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--green);
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 9999;
}
.skip-link:focus { left: 10px; }
.container { width: var(--container); margin: 0 auto; }
.section-padding { padding: 100px 0; }
.section-kicker {
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  font-size: 0.78rem;
  margin: 0 0 12px;
}
h1, h2, h3 { line-height: 1.05; margin: 0; letter-spacing: -0.045em; }
h1 { font-size: clamp(3rem, 7vw, 7.5rem); max-width: 1000px; }
h2 { font-size: clamp(2rem, 4vw, 4.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 2rem); }
p { margin: 0; }
code { background: rgba(12, 93, 77, 0.08); padding: 2px 6px; border-radius: 8px; }

.nav {
  width: var(--container);
  margin: 0 auto;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 20;
}
.site-header .nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
}
.simple-header .brand-mark, .footer .brand-mark { border-color: rgba(23,33,28,0.12); background: rgba(12,93,77,0.1); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  color: inherit;
  transition: 180ms ease;
}
.nav-links a:hover { background: rgba(255,255,255,0.14); transform: translateY(-1px); }
.simple-header .nav-links a:hover { background: rgba(12,93,77,0.08); }
.nav-toggle { display: none; border: 0; background: rgba(255,255,255,0.15); color: inherit; border-radius: 12px; padding: 8px 12px; }

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/atacama-valle-luna.jpg') center/cover no-repeat;
  transform: scale(1.04);
  animation: slowZoom 18s ease-in-out infinite alternate;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,14,12,0.2), rgba(5,14,12,0.42) 36%, rgba(5,14,12,0.88));
}
.hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  padding: 140px 0 54px;
}
.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-text { max-width: 760px; font-size: clamp(1.05rem, 1.5vw, 1.35rem); margin-top: 22px; color: rgba(255,255,255,0.88); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,0.18); }
.btn.primary { background: var(--copper); color: white; }
.btn.secondary { background: var(--sand); color: var(--ink); }
.btn.ghost { color: white; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28); }
.btn.ghost-dark { color: var(--ink); background: rgba(23,33,28,0.06); border: 1px solid rgba(23,33,28,0.12); }
.btn.small { min-height: 42px; padding: 10px 16px; font-size: 0.9rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 56px;
  max-width: 760px;
}
.hero-stats div {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.17);
  backdrop-filter: blur(12px);
}
.hero-stats strong { display: block; font-size: 1.35rem; }
.hero-stats span { color: rgba(255,255,255,0.78); font-size: 0.92rem; }

.two-col { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.rich-text p + p { margin-top: 18px; }
.rich-text { color: var(--muted); font-size: 1.08rem; }
.rich-text h2 { color: var(--ink); margin-bottom: 20px; }
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--green-2);
  color: white;
}
.feature-strip article { padding: 42px; border-right: 1px solid rgba(255,255,255,0.12); min-height: 250px; }
.feature-strip article:last-child { border-right: 0; }
.feature-strip span { color: var(--sand); font-weight: 900; }
.feature-strip h3 { margin: 24px 0 12px; }
.feature-strip p { color: rgba(255,255,255,0.72); }
.section-head { display: grid; gap: 16px; margin-bottom: 44px; max-width: 940px; }
.section-head p:not(.section-kicker) { color: var(--muted); font-size: 1.08rem; max-width: 760px; }
.section-head.narrow { max-width: 780px; margin-left: auto; margin-right: auto; text-align: center; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.destination-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 100%;
}
.destination-card img { height: 270px; width: 100%; object-fit: cover; }
.destination-card.big-card { grid-column: span 2; }
.destination-card.big-card img { height: 390px; }
.card-content { padding: 26px; }
.tag {
  display: inline-flex;
  color: var(--green);
  background: rgba(12,93,77,0.09);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.card-content p { color: var(--muted); margin-top: 14px; }

.dark-section { background: #071f1b; color: white; }
.dark-section .section-head p:not(.section-kicker) { color: rgba(255,255,255,0.68); }
.timeline { max-width: 920px; margin: 0 auto; position: relative; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px; background: rgba(255,255,255,0.18); }
.timeline-item { display: grid; grid-template-columns: 36px 1fr; gap: 24px; margin-bottom: 22px; }
.timeline-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--copper); border: 8px solid #071f1b; position: relative; z-index: 2; }
.timeline-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 26px; padding: 28px; }
.timeline-card span { color: var(--sand); font-weight: 900; }
.timeline-card h3 { margin: 8px 0 14px; }
.timeline-card p, .timeline-card li { color: rgba(255,255,255,0.76); }
.timeline-card ul { margin: 16px 0 0; padding-left: 20px; }

.experience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.experience-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  box-shadow: 0 14px 40px rgba(23, 33, 28, 0.10);
}
.experience-card img { width: 100%; height: 230px; object-fit: cover; }
.experience-card h3 { padding: 24px 24px 0; }
.experience-card p { padding: 14px 24px 26px; color: var(--muted); }
.quote-section {
  background: linear-gradient(135deg, rgba(12,93,77,0.95), rgba(196,106,45,0.88)), url('../img/torres-paine-pehoe.jpg') center/cover fixed;
  color: white;
  padding: 110px 0;
}
.quote-inner { max-width: 980px; }
blockquote { margin: 0; font-size: clamp(2rem, 4vw, 4.5rem); line-height: 1.08; font-weight: 900; letter-spacing: -0.05em; }
.image-stack { position: relative; min-height: 560px; }
.image-stack img { position: absolute; border-radius: var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; }
.image-stack img:first-child { width: 76%; height: 420px; left: 0; top: 0; }
.image-stack img:last-child { width: 62%; height: 330px; right: 0; bottom: 0; border: 10px solid var(--bg); }
.mini-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.mini-list span { padding: 10px 14px; background: rgba(12,93,77,0.08); border-radius: 999px; color: var(--green); font-weight: 800; }

.gallery-section { background: var(--bg-soft); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery-item {
  border: 0;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: #ddd;
  color: white;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.65)); }
.gallery-item span { position: absolute; left: 18px; bottom: 16px; z-index: 2; font-weight: 900; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.lightbox { position: fixed; inset: 0; display: none; place-items: center; background: rgba(5,14,12,0.88); z-index: 1000; padding: 32px; }
.lightbox.active { display: grid; }
.lightbox img { max-height: 78vh; max-width: min(1100px, 92vw); border-radius: 24px; box-shadow: var(--shadow); }
.lightbox p { color: white; font-weight: 900; margin-top: 16px; }
.lightbox-close, .modal-close { position: absolute; top: 22px; right: 26px; border: 0; width: 44px; height: 44px; border-radius: 50%; background: white; color: var(--ink); cursor: pointer; font-size: 1.8rem; line-height: 1; }

.tips-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tip-card { background: white; padding: 28px; border-radius: 26px; box-shadow: 0 14px 40px rgba(23, 33, 28, 0.08); }
.tip-card h3 { margin-bottom: 14px; }
.tip-card p { color: var(--muted); }
.credits-section { background: #fcf5e8; }
.credits-table, .legal-table { display: grid; gap: 1px; border-radius: 24px; overflow: hidden; box-shadow: 0 18px 50px rgba(23,33,28,0.08); }
.credits-table div, .legal-table div { display: grid; grid-template-columns: 0.9fr 1.7fr; gap: 20px; background: white; padding: 16px 20px; }
.credits-table div:first-child, .legal-table div:first-child { background: var(--green); color: white; font-weight: 900; }
.legal-table div { grid-template-columns: 0.7fr 1.6fr 0.7fr; }

.footer { background: #051411; color: white; padding: 60px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.7fr 0.7fr; gap: 40px; }
.footer p { color: rgba(255,255,255,0.68); margin-top: 14px; max-width: 460px; }
.footer h3 { font-size: 1rem; margin-bottom: 14px; }
.footer a, .link-button { display: block; color: rgba(255,255,255,0.76); text-decoration: none; margin: 8px 0; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.footer a:hover, .link-button:hover { color: white; }

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: none;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  border: 1px solid rgba(23,33,28,0.12);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  z-index: 900;
}
.cookie-banner.active { display: grid; }
.cookie-banner h2 { font-size: 1.25rem; margin-bottom: 4px; }
.cookie-banner p { color: var(--muted); max-width: 820px; }
.cookie-banner a { color: var(--green); font-weight: 800; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-modal { position: fixed; inset: 0; display: none; place-items: center; background: rgba(5,14,12,0.68); z-index: 1100; padding: 20px; }
.cookie-modal.active { display: grid; }
.cookie-modal-card { background: white; max-width: 720px; width: 100%; border-radius: 30px; padding: 34px; position: relative; box-shadow: var(--shadow); }
.cookie-modal-card h2 { font-size: 2rem; margin-bottom: 12px; }
.cookie-modal-card p { color: var(--muted); margin-bottom: 18px; }
.toggle-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 0; border-top: 1px solid rgba(23,33,28,0.1); }
.toggle-row small { display: block; color: var(--muted); margin-top: 4px; }
.toggle-row input { width: 22px; height: 22px; accent-color: var(--green); }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }
.cookie-floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 850;
  border: 0;
  background: var(--green);
  color: white;
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 900;
}

.simple-header { background: var(--bg); border-bottom: 1px solid rgba(23,33,28,0.08); }
.legal-main { padding: 70px 0; }
.legal-card { background: white; border-radius: 32px; padding: clamp(28px, 5vw, 70px); box-shadow: var(--shadow); }
.legal-card h1 { color: var(--green); margin-bottom: 18px; }
.legal-card h2 { font-size: 1.6rem; margin: 34px 0 12px; }
.legal-card p { color: var(--muted); }
.legal-table { margin-top: 18px; }
.legal-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes slowZoom { from { transform: scale(1.04); } to { transform: scale(1.1); } }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-header .nav-links {
    position: absolute;
    right: 0;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(280px, 90vw);
    padding: 14px;
    border-radius: 20px;
    background: rgba(5,14,12,0.92);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links.static { display: flex; position: static; flex-direction: row; width: auto; padding: 0; background: transparent; box-shadow: none; }
  .two-col, .cards-grid, .experience-grid, .tips-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .destination-card.big-card { grid-column: span 2; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .cookie-banner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  :root { --container: min(100% - 24px, 1160px); }
  .section-padding { padding: 70px 0; }
  .hero-stats, .two-col, .cards-grid, .experience-grid, .tips-grid, .footer-grid, .feature-strip { grid-template-columns: 1fr; }
  .destination-card.big-card { grid-column: span 1; }
  .destination-card.big-card img, .destination-card img { height: 250px; }
  .hero-content { padding-bottom: 32px; }
  .feature-strip article { padding: 28px; min-height: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .gallery-item.tall, .gallery-item.wide { grid-row: span 1; grid-column: span 1; }
  .image-stack { min-height: auto; display: grid; gap: 14px; }
  .image-stack img { position: static; width: 100% !important; height: 280px !important; border: 0 !important; }
  .credits-table div, .legal-table div { grid-template-columns: 1fr; gap: 6px; }
  .nav-links.static { display: none; }
  .cookie-actions, .modal-actions { justify-content: stretch; }
  .cookie-actions .btn, .modal-actions .btn { flex: 1; }
}
