@font-face {
  font-family: "Julius Sans One";
  src: url("assets/fonts/julius-sans-one.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "New Spirit";
  src: url("assets/fonts/new-spirit-bold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Frank Ruhl Libre";
  src: url("assets/fonts/frank-ruhl-libre-black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nord";
  src: url("assets/fonts/nord-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #ffffff;
  --ink: #050505;
  --muted: rgba(5, 5, 5, 0.6);
  --soft: rgba(5, 5, 5, 0.1);
  --line: rgba(5, 5, 5, 0.18);
  --error: #7a3e36;
  --display: "Julius Sans One", "New Spirit", "Frank Ruhl Libre", Didot, "Bodoni 72", Georgia, serif;
  --title: var(--display);
  --ui: "Nord", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: var(--title);
  --sans: var(--ui);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #fff;
  font-family: var(--sans);
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lock-screen,
.intro-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.lock-screen {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.lock-inner,
.intro-inner {
  width: min(42rem, 100%);
  text-align: center;
  animation: appear 1100ms ease both;
}

.lock-inner {
  position: relative;
  z-index: 2;
  animation-name: appearRaised;
}

.eyebrow,
.hint,
.subtitle,
.form-message,
.modal-caption,
.item-section,
.item-title,
.section-nav,
.modal-close,
.modal-nav {
  font-family: var(--sans);
}

.eyebrow {
  margin: 0 0 1.8rem;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

h1 {
  margin: 0 0 2.35rem;
  font-size: clamp(3.4rem, 10.8vw, 8.4rem);
  font-family: var(--title);
  font-weight: 400;
  line-height: 0.92;
  font-style: normal;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}

.subtitle {
  margin: 0;
  color: rgba(5, 5, 5, 0.78);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hint {
  margin: 3.8rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.password-form {
  width: min(22rem, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid var(--line);
}

.password-form input {
  min-width: 0;
  padding: 0.95rem 0.3rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.88rem;
  letter-spacing: 0.22em;
}

.password-form input::placeholder {
  color: rgba(5, 5, 5, 0.34);
}

.password-form button,
.text-button {
  background: transparent;
  border: 0;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.password-form button {
  padding: 0.95rem 0.3rem 0.95rem 1rem;
}

.form-message {
  min-height: 1.2rem;
  margin: 1rem 0 0;
  color: var(--error);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.intro-line {
  width: min(58rem, 100%);
  min-height: clamp(6rem, 14vw, 9rem);
  margin: 0 auto 2rem;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: clamp(2.8rem, 8.4vw, 7rem);
  font-family: var(--title);
  font-style: normal;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  text-wrap: balance;
}

html[lang="es"] .intro-line {
  width: min(58rem, 100%);
  font-size: clamp(2.35rem, 6.5vw, 5.8rem);
  white-space: normal;
  transform: none;
}

.intro-guide {
  width: min(44rem, 100%);
  min-height: 3.1rem;
  margin: 0 auto 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.2rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-guide > span {
  width: auto;
  min-width: 11.4rem;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.46rem;
  white-space: nowrap;
}

.intro-guide > span:nth-child(2) {
  min-width: 13rem;
}

html[lang="es"] .intro-guide {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.intro-guide b {
  flex: 0 0 auto;
  margin-right: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
}

.language-switch {
  width: fit-content;
  margin: 0 auto 2rem;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  padding: 0.22rem;
  background: rgba(5, 5, 5, 0.045);
  border: 1px solid rgba(5, 5, 5, 0.14);
  border-radius: 999px;
}

.lock-screen .language-switch {
  margin: 0 auto 1.65rem;
}

.language-choice {
  min-width: 5.9rem;
  padding: 0.58rem 0.85rem;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: rgba(5, 5, 5, 0.48);
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 240ms ease, color 240ms ease, transform 240ms ease;
}

.language-choice.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0.55rem 1.4rem rgba(0, 0, 0, 0.08);
}

.language-choice:hover,
.language-choice:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
}

.text-button {
  position: relative;
  padding: 0.7rem 0;
  color: var(--muted);
  transition: color 300ms ease;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--ink);
}

.experience {
  min-height: 100vh;
  padding-bottom: 7.5rem;
  animation: fadeOnly 1000ms ease both;
}

.site-header {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 90;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.6rem, 1.4vw, 1rem);
  width: min(78rem, calc(100% - 1.5rem));
  padding: 0.62rem 0.72rem 0.62rem 1rem;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(5, 5, 5, 0.14);
  border-radius: 999px;
  box-shadow: 0 1.2rem 3.5rem rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(22px) saturate(1.35);
  transform: translateX(-50%);
}

.mobile-map-zoom {
  display: none;
}

.brand {
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--title);
  font-size: clamp(0.96rem, 1.35vw, 1.24rem);
  font-style: normal;
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.55rem, 1.5vw, 1.2rem);
  max-width: none;
  overflow-x: auto;
  padding: 0 0.15rem;
  font-size: clamp(0.56rem, 0.8vw, 0.68rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  scrollbar-width: none;
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  flex: 0 0 auto;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 220ms ease;
}

html[lang="es"] .section-nav {
  font-size: clamp(0.52rem, 0.72vw, 0.62rem);
  letter-spacing: 0.1em;
}

html[lang="es"] .subtitle,
html[lang="es"] .hint,
html[lang="es"] .modal-caption {
  font-size: 0.92em;
}

.section-nav a:hover,
.section-nav a:focus-visible {
  color: var(--ink);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.view-toggle {
  justify-self: end;
  width: 7.6rem;
  display: inline-grid;
  grid-template-columns: 2.12rem 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.34rem 0.68rem 0.34rem 0.38rem;
  color: var(--ink);
  background: rgba(5, 5, 5, 0.92);
  border: 1px solid rgba(5, 5, 5, 0.92);
  border-radius: 999px;
  box-shadow: 0 0.9rem 2rem rgba(0, 0, 0, 0.14);
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.view-toggle:hover,
.view-toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 1.2rem 2.8rem rgba(0, 0, 0, 0.2);
}

.view-toggle-label {
  width: 3rem;
  color: #fff;
  text-align: center;
}

.view-toggle-icon {
  position: relative;
  width: 2.12rem;
  height: 2.12rem;
  flex: 0 0 auto;
  display: block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.98) 0 0.18rem, transparent 0.2rem),
    radial-gradient(circle at 70% 36%, rgba(255, 255, 255, 0.98) 0 0.18rem, transparent 0.2rem),
    radial-gradient(circle at 46% 74%, rgba(255, 255, 255, 0.98) 0 0.18rem, transparent 0.2rem),
    rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.view-toggle-icon span {
  position: absolute;
  display: block;
}

.view-toggle-icon.is-map span:nth-child(1) {
  left: 0.72rem;
  top: 0.78rem;
  width: 0.8rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.64);
  transform: rotate(10deg);
  transform-origin: left center;
}

.view-toggle-icon.is-map span:nth-child(2) {
  left: 1.17rem;
  top: 0.94rem;
  width: 0.72rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.64);
  transform: rotate(118deg);
  transform-origin: left center;
}

.view-toggle-icon.is-map span:nth-child(3) {
  left: 0.83rem;
  top: 1.37rem;
  width: 0.66rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(-34deg);
  transform-origin: left center;
}

.view-toggle-icon.is-grid {
  display: grid;
  grid-template-columns: repeat(2, 0.48rem);
  grid-template-rows: repeat(2, 0.48rem);
  align-content: center;
  justify-content: center;
  gap: 0.18rem;
  background: rgba(255, 255, 255, 0.12);
}

.view-toggle-icon.is-grid span {
  position: static;
  width: 0.48rem;
  height: 0.48rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.12);
}

.gallery-intro {
  width: min(70rem, calc(100% - 2rem));
  margin: 14vh auto 16vh;
}

.gallery-intro h2 {
  width: min(64rem, 100%);
  margin: 0;
  font-size: clamp(3.8rem, 10.8vw, 9.6rem);
  font-family: var(--title);
  font-weight: 400;
  font-style: normal;
  line-height: 0.98;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  text-wrap: balance;
}

.gallery-section {
  width: min(76rem, calc(100% - 2rem));
  margin: 0 auto 18vh;
  scroll-margin-top: 6rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 29rem);
  gap: clamp(1.6rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(1.2rem, 3vw, 2.6rem);
}

.section-heading h3 {
  min-width: 0;
  max-width: min(50rem, 58vw);
  margin: 0;
  font-size: clamp(2.6rem, 6.4vw, 5.8rem);
  font-family: var(--title);
  font-weight: 400;
  font-style: normal;
  line-height: 0.95;
  letter-spacing: 0.012em;
  text-transform: uppercase;
}

.section-heading h3.is-long-title {
  font-size: clamp(2.2rem, 4.7vw, 4.2rem);
}

.section-heading h3.is-red-canyon {
  white-space: nowrap;
}

.section-heading p {
  width: min(29rem, 100%);
  margin: 0 0 0.55rem;
  justify-self: end;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.68rem;
  line-height: 1.8;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-align: right;
}

.media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.7rem, 1.6vw, 1.3rem);
  align-items: start;
  justify-content: flex-start;
}

.gallery-item {
  position: relative;
  flex: 0 0 auto;
  width: auto;
  height: clamp(13rem, 22vw, 22rem);
  min-height: 0;
  grid-column: auto;
  aspect-ratio: var(--media-ratio, 4 / 5);
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: left;
  isolation: isolate;
}

.gallery-item img,
.gallery-item video,
.modal-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-item img,
.gallery-item video {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 1;
  transition: transform 900ms ease;
}

.gallery-item:hover img,
.gallery-item:hover video,
.gallery-item:focus-visible img,
.gallery-item:focus-visible video {
  transform: scale(1.025);
}

.asset-failed img,
.asset-failed video,
.modal-asset-failed .modal-media {
  display: none;
}

.placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  color: rgba(242, 238, 231, 0.52);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.06), transparent 34%),
    radial-gradient(circle at 74% 28%, rgba(242, 238, 231, 0.08), transparent 20rem),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px),
    #090909;
}

.placeholder span {
  max-width: 12rem;
  font-family: var(--title);
  font-size: clamp(1.15rem, 2.5vw, 2.25rem);
  font-style: normal;
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
}

.play-mark {
  position: absolute;
  z-index: 4;
  inset: 50% auto auto 50%;
  width: 3.6rem;
  height: 3.6rem;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(242, 238, 231, 0.42);
  border-radius: 50%;
}

.play-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border-top: 0.46rem solid transparent;
  border-bottom: 0.46rem solid transparent;
  border-left: 0.72rem solid rgba(242, 238, 231, 0.76);
}

.item-meta {
  position: absolute;
  z-index: 5;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(5, 5, 5, 0.08);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.item-title {
  color: var(--ink);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.item-section {
  color: rgba(5, 5, 5, 0.56);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-item::after {
  display: none;
}

.gallery-3d {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #fff;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.gallery-3d.is-dragging {
  cursor: grabbing;
}

.gallery-3d::before,
.gallery-3d::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gallery-3d::before {
  z-index: 0;
  background: none;
}

.gallery-3d::after {
  z-index: 1;
  background: none;
}

.gallery-3d-stage {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 4400px;
  height: 2900px;
  transform-origin: 0 0;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.canvas-lines,
.canvas-labels,
.canvas-nodes {
  position: absolute;
  inset: 0;
}

.canvas-lines {
  z-index: 0;
  overflow: visible;
}

.canvas-line {
  stroke: rgba(5, 5, 5, 0.11);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.canvas-line.is-strong {
  stroke: rgba(5, 5, 5, 0.42);
  stroke-width: 1.35;
}

.canvas-labels {
  z-index: 1;
  pointer-events: none;
}

.canvas-label {
  position: absolute;
  left: var(--label-x);
  top: var(--label-y);
  color: rgba(5, 5, 5, 0.34);
  font-family: var(--title);
  font-size: 6.8rem;
  font-style: normal;
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.canvas-nodes {
  z-index: 2;
}

.gallery-3d-item {
  position: absolute;
  left: var(--node-x);
  top: var(--node-y);
  width: var(--node-size);
  aspect-ratio: var(--media-ratio, 4 / 5);
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: left;
  isolation: isolate;
  transform: translate(-50%, -50%);
  transition:
    border-color 260ms ease,
    opacity 360ms ease,
    filter 360ms ease,
    transform 360ms ease,
    box-shadow 360ms ease;
}

.gallery-3d-item img,
.gallery-3d-item video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.gallery-3d-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 28%, rgba(0, 0, 0, 0.74)),
    radial-gradient(circle at 50% 46%, transparent 42%, rgba(0, 0, 0, 0.32));
  pointer-events: none;
}

.gallery-3d-item.is-near {
  box-shadow: none;
}

.gallery-3d-item:hover,
.gallery-3d-item:focus-visible {
  box-shadow: none;
  transform: translate(-50%, -50%) scale(1.035);
}

.gallery-3d-item.asset-failed img,
.gallery-3d-item.asset-failed video {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1.4rem, 4vw, 3.2rem);
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: min(92vw, 86rem);
  max-height: calc(100vh - clamp(2.8rem, 8vw, 6.4rem));
  display: grid;
  place-items: center;
  gap: 0.55rem;
}

.modal-stage {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  min-height: 0;
}

.modal-stage-inner {
  position: relative;
  display: inline-grid;
  place-items: center;
  max-width: 100%;
  max-height: min(80vh, calc(100vh - 8rem));
}

.modal-media {
  position: relative;
  z-index: 2;
  grid-area: 1 / 1;
  max-width: 100%;
  max-height: min(80vh, calc(100vh - 8rem));
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(5, 5, 5, 0.12);
}

.modal video.modal-media {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(80vh, calc(100vh - 8rem));
  background: transparent;
}

.modal-placeholder {
  position: relative;
  grid-area: 1 / 1;
  width: min(58rem, 92vw);
  height: min(74vh, 42rem);
  border: 1px solid rgba(5, 5, 5, 0.12);
}

.modal-stage-inner:not(.modal-asset-failed) .modal-placeholder {
  display: none;
}

.hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  border: 0;
  background: transparent;
  cursor: none;
  pointer-events: auto;
}

.cursor-hint {
  content: "";
  position: absolute;
  z-index: 6;
  left: 0;
  top: 0;
  width: 4.4rem;
  height: 4.4rem;
  border: 1px solid rgba(5, 5, 5, 0.34);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.055);
  box-shadow: 0 0 2.6rem rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 180ms ease;
}

.cursor-hint.is-visible {
  opacity: 1;
}

.modal-caption {
  align-self: start;
  margin: 0;
  color: rgba(5, 5, 5, 0.68);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
}

.modal-note {
  width: min(46rem, 78vw);
  margin: -0.1rem auto 0;
  color: rgba(5, 5, 5, 0.82);
  font-family: var(--sans);
  font-size: clamp(0.76rem, 1.25vw, 0.98rem);
  letter-spacing: 0.11em;
  line-height: 1.95;
  text-align: center;
  text-wrap: pretty;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity 1400ms ease, transform 1400ms ease;
}

.modal-note:not(.has-text) {
  display: none;
}

.modal-note.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.modal-timed-content {
  display: grid;
  gap: 0.6rem;
  width: min(42rem, 76vw);
  margin: 0 auto;
}

.modal-timed-note {
  margin: 0;
  color: rgba(5, 5, 5, 0.84);
  font-family: var(--sans);
  font-size: clamp(0.76rem, 1.2vw, 0.96rem);
  letter-spacing: 0.11em;
  line-height: 1.9;
  text-align: center;
  text-wrap: pretty;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity 1400ms ease, transform 1400ms ease;
}

.modal-timed-note.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.modal-close,
.modal-nav {
  position: fixed;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(5, 5, 5, 0.14);
  color: rgba(5, 5, 5, 0.72);
  font-size: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
  transition: opacity 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.modal-nav {
  z-index: 110;
  top: 50%;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.08);
  opacity: 0.72;
  transform: translateY(-50%);
}

.modal-return {
  position: relative;
  z-index: 120;
  align-self: start;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  margin-top: 0.15rem;
  padding: 0.72rem 1.05rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 245, 0.92)),
    #fff;
  border: 1px solid rgba(5, 5, 5, 0.18);
  border-radius: 999px;
  color: rgba(5, 5, 5, 0.78);
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0.9rem 2rem rgba(0, 0, 0, 0.08);
  opacity: 0.92;
  transition: opacity 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.modal-return::before {
  content: "↖";
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-1px);
}

.modal-nav:hover,
.modal-nav:focus-visible,
.modal-return:hover,
.modal-return:focus-visible {
  color: var(--ink);
  border-color: rgba(5, 5, 5, 0.36);
  box-shadow: 0 1.1rem 2.6rem rgba(0, 0, 0, 0.12);
  opacity: 1;
  transform: translateY(-2px);
}

.modal-nav:hover,
.modal-nav:focus-visible {
  opacity: 1;
  transform: translateY(-50%) scale(1.04);
}

.modal-close {
  z-index: 140;
  top: 0;
  right: 0;
  width: 5rem;
  height: 5rem;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  opacity: 0.68;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--ink);
  opacity: 1;
}

.modal-close::before {
  content: "X";
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0;
}

.modal-prev {
  left: clamp(0.85rem, 3vw, 2.2rem);
}

.modal-next {
  right: clamp(0.85rem, 3vw, 2.2rem);
}

.modal-prev::before,
.modal-next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.14rem;
  height: 1.5px;
  background: currentColor;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.modal-prev::after,
.modal-next::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.46rem;
  height: 0.46rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

.modal-prev::after {
  left: calc(50% - 0.53rem);
  transform: translateY(-50%) rotate(-135deg);
}

.modal-next::after {
  right: calc(50% - 0.53rem);
  transform: translateY(-50%) rotate(45deg);
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(0.8rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes appearRaised {
  from {
    opacity: 0;
    transform: translateY(calc(-8vh + 0.8rem));
  }
  to {
    opacity: 1;
    transform: translateY(-8vh);
  }
}

@keyframes fadeOnly {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 820px) {
  .mobile-map-zoom {
    position: fixed;
    left: 50%;
    bottom: calc(5.85rem + env(safe-area-inset-bottom, 0px));
    z-index: 89;
    width: min(22rem, calc(100% - 2.2rem));
    min-height: 2.7rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.82rem;
    color: rgba(5, 5, 5, 0.68);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(5, 5, 5, 0.14);
    border-radius: 999px;
    box-shadow: 0 1rem 2.8rem rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(22px) saturate(1.3);
    transform: translateX(-50%);
  }

  .mobile-map-zoom span {
    width: 1rem;
    color: rgba(5, 5, 5, 0.52);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1;
    text-align: center;
  }

  .mobile-map-zoom input {
    flex: 1;
    min-width: 0;
    accent-color: var(--ink);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 0.65rem;
    width: calc(100% - 1rem);
    padding: 0.62rem 0.72rem;
    bottom: 0.5rem;
    border-radius: 1.25rem;
  }

  .brand {
    font-size: 1.05rem;
  }

  .section-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .header-actions {
    gap: 0.65rem;
  }

  .view-toggle {
    width: 7.1rem;
    grid-template-columns: 2.12rem 2.6rem;
  }

  .view-toggle-label {
    width: 2.6rem;
  }

  .intro-line {
    min-height: 7.2rem;
  }

  .intro-guide {
    min-height: 5.4rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading h3 {
    max-width: 100%;
  }

  .section-heading p {
    justify-self: start;
    text-align: left;
  }

  .gallery-item,
  .gallery-item:nth-child(n) {
    grid-column: auto;
  }

  .modal {
    padding: 2.5rem 1rem 1.7rem;
  }

  .modal-stage {
    height: auto;
  }

  .modal-prev,
  .modal-next {
    top: 50%;
    bottom: auto;
  }

  .modal-caption {
    padding: 0 2rem;
    text-align: center;
  }

  .modal-note {
    width: min(34rem, 82vw);
    font-size: 0.92rem;
  }
}

@media (max-width: 520px) {
  .password-form {
    grid-template-columns: 1fr;
    border-bottom: 0;
    gap: 0.8rem;
  }

  .password-form input {
    border-bottom: 1px solid var(--line);
  }

  .password-form button {
    padding: 0.7rem;
  }

  .gallery-intro {
    margin-top: 10vh;
  }

  .intro-guide > span {
    width: 100%;
  }

  html[lang="es"] .intro-line {
    font-size: clamp(2rem, 12vw, 3.5rem);
    white-space: normal;
    transform: translateX(-0.35rem);
  }

}
