:root {
  --paper: #f4f1ea;
  --paper-2: #e9e4da;
  --ink: #171815;
  --muted: #6e7068;
  --line: rgba(23, 24, 21, .16);
  --accent: #53624b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: min(1460px, calc(100vw - 48px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.6; text-rendering: optimizeLegibility; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button { color: inherit; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; transform: translateY(-160%); padding: .7rem 1rem; color: white; background: #111; border-radius: 2px; }
.skip-link:focus { transform: none; }
.site-header { min-height: 100svh; }
.nav-shell { position: absolute; z-index: 20; top: 0; left: 50%; width: var(--page); min-height: 76px; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 28px; color: white; border-bottom: 1px solid rgba(255,255,255,.28); }
.brand { font-family: var(--serif); font-size: clamp(1.05rem, 1.6vw, 1.35rem); text-decoration: none; letter-spacing: .02em; }
.destination-nav { display: flex; gap: clamp(14px, 1.8vw, 30px); max-width: 72%; overflow-x: auto; scrollbar-width: none; }
.destination-nav::-webkit-scrollbar { display: none; }
.destination-nav a { white-space: nowrap; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; opacity: .82; }
.destination-nav a:hover, .destination-nav a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav-toggle { display: none; border: 0; background: transparent; color: inherit; }
.hero { position: relative; min-height: 100svh; display: grid; place-items: end start; overflow: hidden; background: radial-gradient(circle at 72% 22%, #a5afa0 0, #67715f 26%, #3b4437 58%, #20251f 100%); color: white; }
.hero--image::before { content: ""; position: absolute; inset: 0; background-image: var(--hero); background-size: cover; background-position: center; transform: scale(1.015); animation: hero-settle 1.8s ease-out both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,8,4,.18) 0%, rgba(4,8,4,.2) 36%, rgba(4,8,4,.78) 100%), linear-gradient(90deg, rgba(3,7,3,.45), transparent 65%); }
.hero-content { position: relative; z-index: 2; width: var(--page); margin: 0 auto; padding: 180px 0 clamp(72px, 10vh, 124px); }
.eyebrow { margin: 0 0 18px; font-size: .72rem; font-weight: 650; letter-spacing: .22em; text-transform: uppercase; }
.hero h1 { max-width: 1050px; margin: 0; font-family: var(--serif); font-size: clamp(4rem, 10vw, 9.8rem); font-weight: 400; line-height: .86; letter-spacing: -.045em; text-wrap: balance; }
.hero-subtitle { max-width: 680px; margin: 34px 0 0; font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 2.1rem); line-height: 1.25; }
.hero-intro { max-width: 650px; margin-top: 22px; color: rgba(255,255,255,.84); font-size: 1rem; }
.hero-cta { display: inline-flex; gap: 18px; align-items: center; margin-top: 42px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.65); text-decoration: none; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; }
.destination { width: var(--page); margin: 0 auto; padding: clamp(92px, 13vw, 190px) 0; border-bottom: 1px solid var(--line); }
.destination-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: clamp(40px, 8vw, 130px); align-items: end; margin-bottom: clamp(44px, 7vw, 100px); }
.section-number { margin: 0 0 18px; color: var(--muted); font-size: .72rem; letter-spacing: .18em; }
.destination h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(3.2rem, 7vw, 7.2rem); line-height: .92; letter-spacing: -.045em; text-wrap: balance; }
.destination-description { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.18rem); max-width: 54ch; }
.photo-grid { columns: 3 340px; column-gap: clamp(16px, 2vw, 30px); }
.photo-card { position: relative; break-inside: avoid; margin: 0 0 clamp(16px, 2vw, 30px); }
.photo-button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: #d8d5cd; cursor: zoom-in; }
.photo-button img { width: 100%; height: auto; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.photo-button:hover img, .photo-button:focus-visible img { transform: scale(1.025); filter: saturate(1.05); }
.photo-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.photo-expand { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; color: white; background: rgba(12,14,12,.45); border: 1px solid rgba(255,255,255,.45); border-radius: 50%; opacity: 0; transform: translateY(5px); transition: .25s ease; backdrop-filter: blur(8px); }
.photo-button:hover .photo-expand, .photo-button:focus-visible .photo-expand { opacity: 1; transform: none; }
figcaption { margin-top: 11px; color: var(--muted); font-size: .82rem; }
.video-section { margin-top: clamp(70px, 10vw, 140px); }
.video-section h3 { margin: 0 0 30px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4vw, 4rem); }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(24px, 3vw, 48px); }
.video-card { margin: 0; }
.video-card video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #151713; }
.empty-state { min-height: 70vh; display: grid; align-content: center; justify-items: center; text-align: center; padding: 80px 24px; }
.empty-state h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 400; }
.site-footer { width: var(--page); margin: 0 auto; padding: 52px 0 72px; display: grid; grid-template-columns: 1fr 2fr auto; gap: 30px; align-items: start; color: var(--muted); font-size: .84rem; }
.site-footer > a { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.site-footer p { margin: 0; }
.footer-meta { text-align: right; }
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; color: white; background: rgba(8,9,8,.97); }
.lightbox::backdrop { background: rgba(8,9,8,.97); }
.lightbox-toolbar { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.lightbox-count { margin: 0; font-size: .78rem; letter-spacing: .12em; }
.lightbox-close, .lightbox-prev, .lightbox-next { border: 0; color: white; background: rgba(255,255,255,.08); cursor: pointer; border-radius: 50%; }
.lightbox-close { width: 44px; height: 44px; font-size: 2rem; line-height: 1; }
.lightbox-prev, .lightbox-next { position: absolute; z-index: 3; top: 50%; width: 52px; height: 52px; transform: translateY(-50%); font-size: 2.6rem; line-height: 1; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255,255,255,.18); outline: 2px solid white; outline-offset: 2px; }
.lightbox-stage { width: 100%; height: calc(100% - 84px); display: grid; place-items: center; padding: 72px 84px 20px; }
.lightbox-stage img, .lightbox-stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-caption { height: 84px; margin: 0; padding: 18px 80px; text-align: center; color: rgba(255,255,255,.78); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes hero-settle { from { transform: scale(1.07); filter: brightness(.8); } to { transform: scale(1.015); filter: none; } }
@media (max-width: 960px) {
  :root { --page: calc(100vw - 32px); }
  .nav-shell { min-height: 68px; }
  .nav-toggle { display: block; padding: 8px 0; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
  .destination-nav { position: absolute; top: 68px; left: -16px; right: -16px; display: none; max-width: none; padding: 20px 16px 26px; flex-direction: column; color: var(--ink); background: var(--paper); box-shadow: 0 18px 30px rgba(0,0,0,.12); }
  .destination-nav.is-open { display: flex; }
  .destination-heading { grid-template-columns: 1fr; gap: 30px; }
  .photo-grid { columns: 2 280px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 2; }
}
@media (max-width: 620px) {
  :root { --page: calc(100vw - 24px); }
  .hero-content { padding-bottom: 62px; }
  .hero h1 { font-size: clamp(3.4rem, 18vw, 6rem); }
  .hero-subtitle { margin-top: 24px; }
  .destination { padding: 86px 0; }
  .photo-grid { columns: 1; }
  .video-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-meta { grid-column: auto; text-align: left; }
  .lightbox-stage { padding: 64px 10px 12px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 22px; width: 46px; height: 46px; }
  .lightbox-prev { left: 16px; }
  .lightbox-next { right: 16px; }
  .lightbox-caption { padding: 14px 70px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* NAVIGATION-FULL-NAMES-FIX-V1
   Los nombres de destinos nunca se recortan.
   En pantallas intermedias se utiliza el menú desplegable. */
@media (min-width: 1201px) {
  .brand {
    flex: 0 0 auto;
  }

  .destination-nav {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-content: center;
    column-gap: clamp(12px, 1.35vw, 24px);
    row-gap: 6px;
    overflow: visible;
  }
}

@media (min-width: 961px) and (max-width: 1200px) {
  .nav-shell {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
    padding: 8px 0;
    font-size: .75rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .destination-nav {
    position: absolute;
    top: 68px;
    left: -16px;
    right: -16px;
    display: none;
    max-width: none;
    max-height: calc(100svh - 68px);
    padding: 20px 16px 26px;
    overflow-y: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .12);
  }

  .destination-nav.is-open {
    display: flex;
  }
}


/* PUBLIC-PERFORMANCE-PATCH-V1
   Renderizado progresivo, medios diferidos y reserva visual estable. */
.hero--image::before {
  content: none !important;
  display: none !important;
}

.hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  z-index: 1;
}

.destination {
  content-visibility: auto;
  contain-intrinsic-size: auto 1200px;
}

.destination-heading,
.photo-card,
.video-card {
  opacity: 1;
  transform: none;
}

.video-section[hidden] {
  display: none !important;
}

.destination-empty {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
}

.media-loader {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .42fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  min-height: 220px;
  margin-top: clamp(28px, 5vw, 72px);
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid var(--line);
  background: rgba(233, 228, 218, .42);
}

.media-loader-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.media-loader-preview span {
  display: block;
  min-height: 150px;
  border-radius: 2px;
  background:
    linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .58) 42%, transparent 64%) 0 0 / 240% 100%,
    #d8d4ca;
  animation: gallery-skeleton 1.5s linear infinite;
}

.media-loader-preview span:nth-child(2) {
  min-height: 190px;
}

.media-loader-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .92rem;
}

.media-loader-copy button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .7rem;
}

.media-loader-copy button:hover,
.media-loader-copy button:focus-visible {
  color: var(--paper);
  background: var(--ink);
}

.media-loader-copy button:disabled {
  cursor: wait;
  opacity: .55;
}

.media-loader[data-state="error"] {
  border-color: rgba(145, 45, 35, .5);
}

.media-loader[data-state="error"] .media-loader-preview span {
  animation: none;
  background: #ded5cc;
}

@keyframes gallery-skeleton {
  to { background-position: -240% 0, 0 0; }
}

@media (max-width: 760px) {
  .media-loader {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .media-loader-preview span {
    min-height: 96px;
  }

  .media-loader-preview span:nth-child(2) {
    min-height: 122px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .media-loader-preview span {
    animation: none;
  }
}
