/* ============================================================
   Botaya — estilos. HTML + CSS puro, sin frameworks.
   Paleta y tipografías extraídas del diseño original.
   ============================================================ */

:root {
  --ink: #2C3D28;        /* verde oscuro: texto y secciones oscuras */
  --hero-bg: #192214;    /* verde casi negro: hero */
  --cream: #F5F0E8;      /* crema: fondo claro */
  --gold: #C4A882;       /* dorado/arena: acento */
  --sage: #7A8C6A;       /* salvia: acentos sobre fondo oscuro */
  --footer-bg: #131d0f;  /* verde casi negro: footer */
  --accent-hover: #4A5E3A;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;

  /* Tokens de consistencia (radios, sombras y ritmo) */
  --radius: 3px;
  --radius-sm: 2px;
  --shadow-card: 0 2px 22px rgba(44, 61, 40, 0.05);
  --shadow-card-hover: 0 12px 30px rgba(44, 61, 40, 0.11);
  --shadow-pop: 0 12px 28px rgba(44, 61, 40, 0.10);
  --space-head: clamp(40px, 6vw, 68px);   /* aire entre cabecera de sección y contenido */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
input, textarea, button { font-family: inherit; }
input::placeholder, textarea::placeholder { color: rgba(44, 61, 40, 0.35); }

/* Foco visible al navegar con teclado (accesibilidad). No aparece con el ratón. */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--radius-sm); }
.form input:focus-visible, .form textarea:focus-visible { outline: none; border-bottom-color: var(--ink); }

@keyframes linePulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%      { opacity: 0.9; transform: scaleY(1.15); }
}

/* ---------- utilidades ---------- */
.section { padding: clamp(72px, 8vw, 112px) clamp(20px, 5vw, 52px); scroll-margin-top: 80px; }
.container { max-width: 1200px; margin: 0 auto; }
.eyebrow {
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.eyebrow--sage { color: var(--sage); }
.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 50px);
  font-weight: 400; line-height: 1.14; color: var(--ink);
}
.section-title--light { color: var(--cream); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center;
  height: 70px; padding: 0 clamp(20px, 5vw, 52px); gap: 24px;
  background: transparent; box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.solid {
  background: rgba(245, 240, 232, 0.97);
  box-shadow: 0 2px 28px rgba(44, 61, 40, 0.07);
}
.nav__brand {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--serif); font-size: 19px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--cream); transition: color 0.3s;
}
.nav.solid .nav__brand { color: var(--ink); }

.nav__links {
  flex: 1; display: flex; justify-content: center;
  align-items: center; gap: 30px; flex-wrap: wrap;
}
.nav__link {
  background: none; border: none; cursor: pointer; padding: 4px 0;
  font-family: var(--sans); font-size: 10px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream); transition: color 0.25s;
}
.nav.solid .nav__link { color: var(--ink); }
.nav__link:hover { color: var(--gold); }

.nav__langs { display: flex; align-items: center; gap: 2px; }
.nav__lang {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 10px; font-weight: 400;
  letter-spacing: 0.12em; padding: 4px 7px;
  color: rgba(245, 240, 232, 0.85);
  border-bottom: 1.5px solid transparent;
  transition: all 0.35s;
}
.nav.solid .nav__lang { color: var(--ink); }
.nav__lang.active { font-weight: 600; border-bottom-color: var(--gold); }

/* En escritorio, .nav__menu es "transparente": sus hijos (links + langs)
   se comportan como si fueran hijos directos de .nav (layout intacto). */
.nav__menu { display: contents; }

/* Botón hamburguesa: oculto en escritorio, visible en móvil/tablet */
.nav__toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; padding: 10px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav__toggle-bar {
  display: block; width: 100%; height: 1.5px;
  background: var(--cream); transform-origin: center;
  transition: transform 0.28s ease, opacity 0.2s ease, background 0.3s;
}
.nav.solid .nav__toggle-bar { background: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  overflow: hidden; background: var(--hero-bg);
  background-size: cover; background-position: center;
}
.hero__pattern {
  position: absolute; inset: 0;
  background-image: url('fotos/botaya-aerea-mobile.jpg');   /* móvil: versión ligera */
  background-size: cover; background-position: center;
}
@media (min-width: 700px) {
  .hero__pattern { background-image: url('fotos/botaya-aerea.jpg'); }  /* tablet/PC */
}
.hero__overlay {
  position: absolute; inset: 0;
  /* Overlay reforzado para que "BOTAYA" (texto crema) se lea sobre la foto */
  background: linear-gradient(to bottom, rgba(10,16,8,0.72) 0%, rgba(16,26,12,0.45) 45%, rgba(10,16,8,0.82) 100%);
}
.hero__inner {
  position: relative; z-index: 2; text-align: center;
  color: var(--cream); padding: 0 24px; max-width: 920px;
}
.hero__eyebrow {
  font-family: var(--sans); font-size: 10px; font-weight: 400;
  letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 30px;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(56px, 16vw, 170px); font-weight: 300;
  letter-spacing: 0.14em; line-height: 0.88;
  text-transform: uppercase; margin-bottom: 38px;
}
.hero__subtitle {
  font-family: var(--serif);
  font-size: clamp(17px, 2.1vw, 25px); font-weight: 300; font-style: italic;
  color: rgba(245, 240, 232, 0.72);
  max-width: 460px; margin: 0 auto 54px; line-height: 1.55;
}
.hero__cta {
  background: none; border: 1px solid rgba(196, 168, 130, 0.45);
  color: var(--gold); padding: 14px 42px; cursor: pointer;
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.24em; text-transform: uppercase;
  transition: all 0.35s;
}
.hero__cta:hover {
  background: rgba(196, 168, 130, 0.1);
  border-color: var(--gold); color: #d4b892;
}
.hero__scroll {
  position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%);
}
.hero__scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, transparent, rgba(196, 168, 130, 0.55), transparent);
  animation: linePulse 2.8s ease infinite;
}

/* Fade-in escalonado del hero */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s ease, transform 0.9s ease; }
.hero.visible .reveal { opacity: 1; transform: translateY(0); }
.hero.visible .reveal:nth-child(1) { transition-delay: 0.15s; }
.hero.visible .reveal:nth-child(2) { transition-delay: 0.30s; }
.hero.visible .reveal:nth-child(3) { transition-delay: 0.45s; }
.hero.visible .reveal:nth-child(4) { transition-delay: 0.60s; }
.hero__scroll.reveal { transition: opacity 1.2s 1.1s ease; transform: translateX(-50%); }
.hero.visible .hero__scroll.reveal { opacity: 1; }

/* ============================================================
   HISTORIA
   ============================================================ */
.historia { background: var(--cream); }
.historia__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 92px; align-items: start;
}
.historia__body {
  font-family: var(--sans); font-size: 15px; line-height: 1.8;
  color: rgba(44, 61, 40, 0.76); margin-top: 18px; text-wrap: pretty;
}
.historia__title { margin-bottom: 36px; }
.historia__body:first-of-type { margin-top: 0; }
.timeline { margin-top: 56px; border-bottom: 1px solid rgba(44, 61, 40, 0.09); }
.timeline__item {
  display: flex; gap: 26px; align-items: flex-start;
  padding: 18px 0; border-top: 1px solid rgba(44, 61, 40, 0.09);
}
.timeline__year {
  font-family: var(--serif); font-size: 13px; font-weight: 500;
  color: var(--gold); white-space: nowrap; min-width: 58px;
  padding-top: 2px; letter-spacing: 0.04em;
}
.timeline__text {
  font-family: var(--sans); font-size: 13px; line-height: 1.68;
  color: rgba(44, 61, 40, 0.62);
}
.historia__media { position: sticky; top: 88px; }
.figure {
  aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; padding: 22px;
  background: repeating-linear-gradient(135deg, #3a4f2e 0, #3a4f2e 2px, #48603a 2px, #48603a 28px);
  background-size: cover; background-position: center;
}
.figure__caption {
  font-family: monospace; font-size: 9px;
  color: rgba(245, 240, 232, 0.4); letter-spacing: 0.13em; text-transform: uppercase;
}
/* Foto real de la sección Historia (sustituye el fondo de relleno) */
.figure[data-figure="historia"] {
  background-image: url('fotos/historia.jpg');
}
.figure[data-figure="historia"] .figure__caption { display: none; }

/* ============================================================
   VISITAR
   ============================================================ */
.visitar {
  background:
    linear-gradient(rgba(25, 34, 20, 0.9), rgba(25, 34, 20, 0.93)),
    url('fotos/visitar.jpg') center / cover no-repeat;
}
.visitar__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: var(--space-head); flex-wrap: wrap; gap: 20px;
}
.visitar__subtitle {
  font-family: var(--serif); font-size: 17px; font-weight: 300; font-style: italic;
  color: rgba(245, 240, 232, 0.4); max-width: 260px;
  text-align: right; line-height: 1.55;
}
.visitar__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.activity {
  background: rgba(245, 240, 232, 0.032); padding: 46px 42px;
  transition: background 0.3s;
}
.activity:hover { background: rgba(245, 240, 232, 0.068); }
.activity__num {
  font-family: var(--serif); font-size: 56px; font-weight: 300;
  color: rgba(196, 168, 130, 0.2); margin-bottom: 20px;
  line-height: 1; letter-spacing: -0.02em;
}
.activity__title {
  font-family: var(--serif); font-size: 27px; font-weight: 400;
  color: var(--cream); margin-bottom: 12px;
}
.activity__desc {
  font-family: var(--sans); font-size: 14px; line-height: 1.7;
  color: rgba(245, 240, 232, 0.52);
}

/* ============================================================
   RUTAS  (grid auto-fit: se ve bien con 1 o con muchos)
   ============================================================ */
.rutas { background: var(--cream); }
.rutas__head, .eventos__head { margin-bottom: var(--space-head); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 380px));
  gap: 24px; justify-content: start;
}
.route {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.route:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.route__media {
  height: 200px; display: flex; align-items: flex-end; padding: 14px;
  background: repeating-linear-gradient(48deg, #384c2c 0, #384c2c 2px, #475e38 2px, #475e38 24px);
  background-size: cover; background-position: center;
}
.route__body { padding: 28px 28px 26px; }
.route__badge {
  display: inline-block; font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-sm); margin-bottom: 16px;
}
.route__name {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  color: var(--ink); margin-bottom: 10px; line-height: 1.3;
}
.route__desc {
  font-family: var(--sans); font-size: 13px; line-height: 1.7;
  color: rgba(44, 61, 40, 0.58); margin-bottom: 24px; text-wrap: pretty;
}
.route__stats {
  display: flex; gap: 20px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid rgba(44, 61, 40, 0.07);
}
.stat__label {
  font-family: var(--sans); font-size: 9px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(44, 61, 40, 0.36); margin-bottom: 5px;
}
.stat__value {
  font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--ink);
}

/* ============================================================
   GALERÍA
   ============================================================ */
.galeria { background: var(--ink); }
.galeria__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: var(--space-head); flex-wrap: wrap; gap: 24px;
}
.galeria__subtitle {
  font-family: var(--sans); font-size: 13px; font-style: italic;
  color: rgba(245, 240, 232, 0.38); margin-top: 10px;
}
.btn-ghost {
  background: none; border: 1px solid rgba(196, 168, 130, 0.32);
  color: var(--gold); padding: 12px 28px; cursor: pointer;
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; transition: all 0.32s;
}
.btn-ghost:hover { background: rgba(196, 168, 130, 0.07); border-color: var(--gold); }
.galeria__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px; gap: 4px;
}
.gallery-item {
  position: relative; overflow: hidden; background: #1b2a13;
  padding: 0; border: none; cursor: pointer; display: block;
  font-family: inherit; color: inherit;
}
.gallery-item--featured { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 0 rgba(196, 168, 130, 0);
  transition: box-shadow 0.3s ease; pointer-events: none;
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item:hover::after, .gallery-item:focus-visible::after {
  box-shadow: inset 0 0 0 2px rgba(196, 168, 130, 0.7);
}
.gallery-item__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px; text-align: left;
  font-family: var(--sans); font-size: 12px; line-height: 1.35;
  color: var(--cream);
  background: linear-gradient(to top, rgba(25, 34, 20, 0.82), rgba(25, 34, 20, 0));
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none;
}
.gallery-item:hover .gallery-item__caption,
.gallery-item:focus-visible .gallery-item__caption { opacity: 1; transform: translateY(0); }
.galeria__empty {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center;
  min-height: 220px; text-align: center;
  border: 1px dashed rgba(245, 240, 232, 0.18); border-radius: var(--radius);
  font-family: var(--serif); font-style: italic; font-size: 18px;
  color: rgba(245, 240, 232, 0.4); padding: 24px;
}

/* ---- Lightbox (pantalla completa) ---- */
body.no-scroll { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(15, 20, 11, 0.94);
  opacity: 0; transition: opacity 0.28s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox__figure {
  margin: 0; max-width: 100%; max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.lightbox__img {
  max-width: 100%; max-height: 82vh; object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__caption {
  font-family: var(--sans); font-size: 13px; text-align: center;
  color: rgba(245, 240, 232, 0.82); max-width: 60ch;
}
.lightbox__close, .lightbox__nav {
  position: absolute; background: none; border: none; cursor: pointer;
  color: var(--cream); line-height: 1;
  transition: color 0.25s, transform 0.25s;
}
.lightbox__close:hover, .lightbox__nav:hover { color: var(--gold); }
.lightbox__close {
  top: clamp(14px, 3vw, 30px); right: clamp(16px, 3vw, 34px);
  font-size: 40px; width: 48px; height: 48px;
}
.lightbox__nav {
  top: 50%; transform: translateY(-50%);
  font-size: 52px; width: 56px; height: 56px;
}
.lightbox__nav:hover { transform: translateY(-50%) scale(1.12); }
.lightbox__nav--prev { left: clamp(6px, 2vw, 28px); }
.lightbox__nav--next { right: clamp(6px, 2vw, 28px); }

/* ============================================================
   FIESTAS / EVENTOS
   ============================================================ */
.eventos { background: var(--cream); }
.event {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.event:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.event__media {
  height: 172px;
  background-size: cover; background-position: center;
}
.event__row {
  display: flex; gap: 24px; align-items: flex-start; padding: 32px;
}
.event__chip {
  flex-shrink: 0; min-width: 64px; padding: 10px 6px;
  background: var(--ink); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; line-height: 1.2;
}
.event__day {
  font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--cream);
}
.event__month {
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: 0.08em; color: var(--gold); margin-top: 2px;
}
.event__name {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  color: var(--ink); margin-bottom: 9px;
}
.event__desc {
  font-family: var(--sans); font-size: 13px; line-height: 1.7;
  color: rgba(44, 61, 40, 0.6);
}

/* ============================================================
   CÓMO LLEGAR
   ============================================================ */
.llegar { background: var(--ink); }
.llegar__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 92px; align-items: start;
}
.llegar__intro {
  font-family: var(--sans); font-size: 15px; line-height: 1.8;
  color: rgba(245, 240, 232, 0.62); margin: 24px 0 32px; text-wrap: pretty;
}
.llegar__map {
  aspect-ratio: 4/3; border-radius: var(--radius);
  border: 1px solid rgba(122, 140, 106, 0.1);
  background: repeating-linear-gradient(138deg, #131c0f 0, #131c0f 2px, #192514 2px, #192514 24px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px;
}
.llegar__map-pin { width: 22px; height: 22px; border: 1.5px solid rgba(122, 140, 106, 0.38); border-radius: 50%; }
.llegar__map-label {
  font-family: monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(122, 140, 106, 0.32); margin-top: 6px;
}
.llegar__aside { padding-top: 8px; }
.btn-map {
  display: inline-block; text-decoration: none;
  background: none; border: 1px solid rgba(196, 168, 130, 0.45);
  color: var(--gold); padding: 13px 32px;
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; transition: all 0.32s;
}
.btn-map:hover { background: rgba(196, 168, 130, 0.1); border-color: var(--gold); color: #d4b892; }

/* ============================================================
   CONTACTO / BUZÓN
   ============================================================ */
.contacto { background: var(--cream); }
.contacto__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 92px; align-items: start;
}
.contacto__subtitle {
  font-family: var(--serif); font-size: 17px; font-weight: 300; font-style: italic;
  color: rgba(44, 61, 40, 0.5); margin: 14px 0 52px; line-height: 1.55; text-wrap: pretty;
}
.form { display: flex; flex-direction: column; gap: 26px; }
.form input, .form textarea {
  width: 100%; padding: 14px 0; border: none;
  border-bottom: 1px solid rgba(44, 61, 40, 0.16);
  background: transparent; font-size: 15px; color: var(--ink);
  outline: none; resize: none; transition: border-color 0.25s;
}
.form input:focus, .form textarea:focus { border-bottom-color: var(--ink); }
.form__submit {
  align-self: flex-start; background: var(--ink); color: var(--cream);
  border: none; padding: 15px 46px; cursor: pointer;
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; transition: background 0.3s;
}
.form__submit:hover { background: var(--accent-hover); }
.form__success {
  padding: 32px; background: rgba(74, 94, 58, 0.07);
  border-radius: var(--radius); border: 1px solid rgba(74, 94, 58, 0.13);
}
.form__success p { font-family: var(--serif); font-size: 22px; color: var(--accent-hover); line-height: 1.55; }
.contacto__aside { padding-top: 116px; display: flex; flex-direction: column; gap: 40px; }
.contacto__label {
  font-family: var(--sans); font-size: 9px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(44, 61, 40, 0.36); margin-bottom: 10px;
}
.contacto__value {
  font-family: var(--sans); font-size: 15px; line-height: 1.8;
  color: rgba(44, 61, 40, 0.7); white-space: pre-line;
}
.is-hidden { display: none !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--footer-bg); padding: 56px clamp(20px, 5vw, 52px) 44px;
  border-top: 1px solid rgba(245, 240, 232, 0.04);
}
.footer__top {
  max-width: 1200px; margin: 0 auto 48px;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 32px;
}
.footer__brand {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--serif); font-size: 19px; font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cream); display: block; margin-bottom: 9px;
}
.footer__tagline {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(245, 240, 232, 0.3);
}
.footer__links { display: flex; flex-direction: column; gap: 10px; text-align: right; }
.footer__link {
  background: none; border: none; cursor: pointer; padding: 0; text-align: right;
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(245, 240, 232, 0.32); transition: color 0.2s;
}
.footer__link:hover { color: rgba(245, 240, 232, 0.62); }
.footer__bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(245, 240, 232, 0.05); padding-top: 26px;
}
.footer__rights { font-family: var(--sans); font-size: 11px; color: rgba(245, 240, 232, 0.2); }

/* ============================================================
   APARICIÓN AL HACER SCROLL
   Solo cuando .js-anim está activo (navegador compatible y sin
   "reducir movimiento"). Si no, las secciones se ven normales.
   ============================================================ */
.js-anim .section {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js-anim .section.in-view { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ===== Tablet y móvil (≤900px): menú hamburguesa + apilado ===== */
@media (max-width: 900px) {
  /* Barra: marca a la izquierda, hamburguesa a la derecha */
  .nav__toggle { display: flex; }

  /* Estado abierto: barra en crema y elementos en verde (consistencia) */
  .nav.open { background: rgba(245, 240, 232, 0.98); box-shadow: 0 2px 28px rgba(44, 61, 40, 0.07); }
  .nav.open .nav__brand { color: var(--ink); }
  .nav.open .nav__toggle-bar { background: var(--ink); }

  /* Icono → X al abrir */
  .nav.open .nav__toggle-bar:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .nav.open .nav__toggle-bar:nth-child(2) { opacity: 0; }
  .nav.open .nav__toggle-bar:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

  /* Panel desplegable: colapsado por defecto, se despliega con suavidad.
     visibility:hidden evita que los enlaces sean tabulables cuando está cerrado. */
  .nav__menu {
    display: flex;
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    padding: 0 clamp(20px, 5vw, 52px);
    background: rgba(245, 240, 232, 0.98);
    border-top: 1px solid rgba(44, 61, 40, 0.06);
    box-shadow: var(--shadow-pop);
    max-height: 0; opacity: 0; visibility: hidden; overflow: hidden;
    transition: max-height 0.28s ease, opacity 0.24s ease, visibility 0.28s;
  }
  .nav.open .nav__menu {
    max-height: calc(100vh - 70px); opacity: 1; visibility: visible; overflow-y: auto;
  }

  /* Enlaces de sección: columna, verde, mayor área táctil */
  .nav__links { flex: none; flex-direction: column; align-items: stretch; gap: 0; padding-top: 6px; }
  .nav__link, .nav.solid .nav__link {
    color: var(--ink); font-size: 13px; letter-spacing: 0.16em;
    padding: 15px 2px; text-align: left;
    border-bottom: 1px solid rgba(44, 61, 40, 0.07);
  }
  .nav__links .nav__link:last-child { border-bottom: none; }
  .nav__link:hover { color: var(--gold); }

  /* Selector de idioma centrado, bajo un separador */
  .nav__langs { justify-content: center; gap: 6px; padding: 18px 0 22px; }
  .nav__lang, .nav.solid .nav__lang { color: var(--ink); font-size: 12px; padding: 6px 10px; }

  /* Contenido: grids de 2 columnas → 1 columna */
  .historia__grid, .llegar__grid, .contacto__grid { grid-template-columns: 1fr; gap: 48px; }
  .historia__media { position: static; }
  .galeria__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .contacto__aside { padding-top: 0; }
  .visitar__subtitle { text-align: left; max-width: none; }
}

/* ===== Móvil (≤600px): una sola columna y cabeceras apiladas ===== */
@media (max-width: 600px) {
  .visitar__grid { grid-template-columns: 1fr; }
  .galeria__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item--featured { grid-column: span 1; grid-row: span 1; }
  .gallery-item__caption { opacity: 1; transform: none; } /* en móvil, pie siempre visible */
  .visitar__head, .galeria__head { flex-direction: column; align-items: flex-start; }
  .footer__top { flex-direction: column; }
  .footer__links { text-align: left; }
  .hero__title { letter-spacing: 0.08em; }
}

/* ============================================================
   ACCESIBILIDAD — reducir movimiento
   Si el sistema del usuario pide menos animación, se desactiva
   todo: fundidos, animaciones y el scroll suave.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .js-anim .section { opacity: 1 !important; transform: none !important; }
}
