:root {
  --text: #2f2f2f;
  --muted: #666666;
  --line: #eeeeee;
  --hover: #888888;
  --white: #ffffff;
  --soft: #f7f7f5;
  --max: 1160px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

body::selection {
  background: #e8e8e4;
}

body::before {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: var(--scroll-progress, 0%);
  height: 1px;
  content: "";
  background: var(--text);
  pointer-events: none;
}

body[data-lang="en"] [lang="es"],
body[data-lang="es"] [lang="en"] {
  display: none !important;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--hover);
  text-decoration: underline;
}

a:focus-visible,
video:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer {
  background: var(--white);
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 12px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: transform 500ms ease, background-color 500ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: clamp(78px, 6vw, 94px);
  height: auto;
}

.utility-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text);
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  font-weight: 400;
}

.utility-nav a {
  position: relative;
}

.utility-nav a::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms ease;
}

.utility-nav a:hover::after,
.utility-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: auto;
  padding: 0;
  background: var(--white);
}

.hero picture {
  width: 100%;
}

.hero-image {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.hero-copy {
  position: absolute;
  top: clamp(36px, 7vw, 96px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: grid;
  gap: 10px;
  width: min(92vw, 1000px);
  padding: 0 clamp(10px, 2vw, 24px);
  text-align: center;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.3rem, 7.4vw, 6.1rem);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hero-copy p {
  margin: 0;
  font-size: clamp(1rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.section-pad {
  padding: clamp(42px, 6.2vw, 82px) clamp(18px, 3vw, 42px);
  border-top: 1px solid var(--line);
}

.container {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.narrow {
  width: min(100%, 680px);
  margin: 0 auto;
}

.intro {
  text-align: center;
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  font-weight: 300;
}

.intro p {
  margin: 0 0 10px;
}

.signature {
  margin-top: 22px !important;
  color: var(--muted);
}

h2 {
  margin: 0 0 28px;
  font-size: clamp(1.55rem, 2.6vw, 2.55rem);
  font-weight: 300;
  line-height: 1.15;
}

h3 {
  margin: 0 0 18px;
  font-size: clamp(1.18rem, 1.75vw, 1.48rem);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text);
}

.trailer h2,
.where h2,
.authors h2,
.gratitude h2 {
  text-align: center;
}

.trailer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.trailer-copy {
  display: grid;
  gap: 16px;
  align-content: center;
}

.trailer h2 {
  margin: 0;
  text-align: left;
}

.video-frame {
  width: 100%;
  margin: 0;
  aspect-ratio: 3282 / 2522;
  background: transparent;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--white);
}

.where-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
  margin-top: 22px;
}

.location-accordion {
  display: grid;
  gap: 14px;
  max-height: min(760px, calc(100vh - 150px));
  overflow: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}

.location-panel {
  border-top: 1px solid var(--line);
}

.location-panel:last-child {
  border-bottom: 1px solid var(--line);
}

.location-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  color: var(--text);
  font-size: clamp(1.04rem, 1.45vw, 1.24rem);
  font-weight: 400;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
}

.location-panel summary::-webkit-details-marker {
  display: none;
}

.location-panel summary::after {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  content: "+";
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 320ms ease, border-color 320ms ease;
}

.location-panel[open] summary::after {
  content: "-";
  border-color: var(--text);
  transform: rotate(180deg);
}

.location-panel-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    grid-template-rows 560ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 420ms ease,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.location-panel[open] .location-panel-body {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

.location-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.location-list li {
  position: relative;
  display: grid;
  gap: 4px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: color 320ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.location-list li::before {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.location-list li:hover,
.location-list li:focus-visible,
.location-list li.is-active {
  transform: translateX(6px);
}

.location-list li:hover::before,
.location-list li:focus-visible::before,
.location-list li.is-active::before {
  transform: scaleX(1);
}

.location-list span:first-child {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
}

.location-list small {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.location-list a {
  justify-self: start;
  margin-top: 4px;
  color: var(--text);
  font-size: 0.9rem;
}

.global-map {
  position: relative;
  position: sticky;
  top: 116px;
  min-height: clamp(420px, 62vh, 680px);
  margin-top: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #f4f4f4;
  filter: grayscale(100%);
  transition: filter 420ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.global-map:hover,
.global-map.wama-map-active {
  filter: grayscale(0%);
}

#wama-free-map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: transparent;
}

.map-fallback {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 70%, rgba(47, 47, 47, 0.08), transparent 16%),
    radial-gradient(circle at 73% 36%, rgba(47, 47, 47, 0.08), transparent 18%),
    linear-gradient(135deg, #f8f8f6 0%, #ffffff 48%, #f1f1ee 100%);
}

.fallback-route {
  position: absolute;
  left: 13%;
  right: 13%;
  top: 52%;
  height: 1px;
  background: #cfcfca;
  transform: rotate(-15deg);
}

.fallback-pin {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--text);
  box-shadow: 0 2px 10px rgba(47, 47, 47, 0.18);
}

.fp1 {
  left: 19%;
  top: 69%;
}

.fp2 {
  left: 31%;
  top: 58%;
}

.fp3 {
  left: 56%;
  top: 43%;
}

.fp4 {
  left: 68%;
  top: 49%;
}

.fp5 {
  left: 80%;
  top: 34%;
}

.fallback-label {
  position: absolute;
  color: #777777;
  font-size: 0.82rem;
}

.fl1 {
  left: 15%;
  top: 76%;
}

.fl2 {
  right: 12%;
  top: 25%;
}

.leaflet-pane,
.leaflet-control {
  z-index: 2;
}

.leaflet-container {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.leaflet-control-attribution {
  font-size: 10px;
}

.wama-map-popup {
  max-width: 260px;
  color: var(--text);
}

.wama-map-popup h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 500;
}

.wama-map-popup p {
  margin: 0 0 12px;
  color: #555555;
  font-size: 13px;
  line-height: 1.45;
}

.wama-map-popup a {
  color: var(--text);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wama-map-marker {
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #555555;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: all 260ms ease;
}

.wama-map-marker-active {
  width: 26px;
  height: 26px;
  border: 3px solid #ffffff;
  background: #2f2f2f;
  box-shadow: 0 8px 22px rgba(47, 47, 47, 0.28);
}

.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.book-copy p,
.gratitude p {
  margin: 0 0 16px;
  color: var(--text);
  font-size: clamp(1rem, 1.45vw, 1.14rem);
}

.specs {
  margin-top: 24px !important;
  color: var(--muted) !important;
}

figure {
  margin: 0;
}

.book figure img,
.proof-grid img,
.author-grid img {
  width: 100%;
  height: auto;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
}

.authors {
  text-align: center;
}

.author-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: clamp(24px, 5vw, 70px);
}

.author-grid article {
  display: grid;
  gap: 12px;
}

.author-grid img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(0.92);
}

.author-grid h3 {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 400;
}

.author-grid p {
  margin: 0;
  color: var(--muted);
}

.author-meta {
  display: grid;
  gap: 6px;
}

.author-social {
  color: var(--text);
  font-size: 0.98rem;
  text-decoration: underline;
}

.gratitude {
  text-align: center;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 58px);
  margin-top: 34px;
}

.logo-row img {
  width: auto;
  max-width: 170px;
  max-height: 82px;
  object-fit: contain;
  filter: grayscale(0.08);
}

.logo-row img:first-child {
  max-height: 112px;
}

.site-footer {
  padding: 28px clamp(18px, 3vw, 42px) 34px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer .brand img {
  width: clamp(78px, 6vw, 94px);
}

.site-footer p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: no-preference) {

  .site-header,
  .intro .narrow,
  .trailer-layout>*,
  .where-layout>*,
  .book-copy,
  .book-grid img,
  .proof-grid img,
  .author-grid article,
  .logo-row img {
    transition:
      opacity 700ms ease,
      transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
      filter 700ms ease;
  }

  .reveal {
    opacity: 0;
    clip-path: inset(18% 0 0 0);
    transform: translateY(20px);
  }

  .reveal.is-visible {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }

  .book-grid img:hover,
  .proof-grid img:hover,
  .author-grid img:hover {
    filter: saturate(0.95) contrast(1.02);
    transform: translateY(-3px);
  }
}

@media (max-width: 820px) {

  .site-header,
  .footer-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: static;
    gap: 10px;
  }

  .brand img {
    width: 78px;
  }

  .utility-nav {
    justify-content: flex-start;
    font-size: 0.94rem;
  }

  .trailer-layout,
  .where-layout,
  .book-grid,
  .proof-grid,
  .author-grid {
    grid-template-columns: 1fr;
  }

  .book figure {
    order: -1;
  }

  .trailer-copy {
    order: -1;
  }

  .trailer h2 {
    text-align: center;
  }

  .global-map {
    order: -1;
    position: relative;
    top: auto;
    min-height: 380px;
  }

  .location-accordion {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .section-pad {
    padding: 46px 20px;
  }

  h2 {
    margin-bottom: 30px;
  }

  .global-map {
    position: relative;
    top: auto;
    min-height: 340px;
  }
}