/* Los Ahuehuetes — v2: azul profundo + azul pastel, con acentos dorados */

:root {
  --abyss: #04122a;
  --deep: #071d36;
  --navy: #0c2b4e;
  --navy-2: #133a66;
  --pastel: #d5e5f3;
  --pastel-2: #c5daee;
  --pastel-card: #e2edf8;
  --gold: #d8b46c;
  --gold-soft: #ecd3a0;
  --aqua: #7fd3df;
  --ink: #0c2b4e;
  --ink-soft: #3d5b7a;
  --light: #eef4fb;
  --light-soft: rgba(238, 244, 251, 0.78);
  --whatsapp: #25d366;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 18px 44px rgba(4, 18, 42, 0.28);
  --shadow-soft: 0 10px 28px rgba(12, 43, 78, 0.12);
  --nav-h: 88px;
  --max: 1120px;
  --wave-h: 56px;
}

/* Temas por sección: cada sección define sus colores y los componentes los heredan */
.theme-dark,
.theme-navy {
  --bg: var(--deep);
  --heading: #f5f8fc;
  --text: var(--light-soft);
  --eyebrow: var(--gold);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-heading: #f5f8fc;
  --card-text: rgba(238, 244, 251, 0.72);
}
.theme-navy { --bg: var(--navy); }

.theme-pastel,
.theme-pastel-2 {
  --bg: var(--pastel);
  --heading: var(--ink);
  --text: var(--ink-soft);
  --eyebrow: #2b6aa3;
  --card-bg: var(--pastel-card);
  --card-border: rgba(12, 43, 78, 0.08);
  --card-heading: var(--ink);
  --card-text: var(--ink-soft);
}
.theme-pastel-2 { --bg: var(--pastel-2); --card-bg: #d9e7f5; }

[class*="theme-"] {
  background-color: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  color: var(--light-soft);
  background: var(--deep);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
ul, ol { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--heading, var(--ink));
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--eyebrow, var(--gold));
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--light { color: var(--gold); }

/* Ola que une cada sección con la anterior */
.wave { position: relative; }
.wave::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--wave-h) * -1 + 1px);
  height: var(--wave-h);
  background: var(--bg);
  pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 56V30C180 6 360 0 540 14s360 38 540 34 270-26 360-34v42z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 56V30C180 6 360 0 540 14s360 38 540 34 270-26 360-34v42z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--deep);
  box-shadow: 0 10px 26px rgba(216, 180, 108, 0.3);
}
.btn--primary:hover { box-shadow: 0 14px 32px rgba(216, 180, 108, 0.45); }

.btn--ghost {
  color: var(--light);
  border: 1px solid rgba(238, 244, 251, 0.45);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--gold-soft); }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  border-bottom: 1px solid rgba(216, 180, 108, 0.18);
  transition: box-shadow 0.3s ease;
}
/* El desenfoque va en un pseudo-elemento: backdrop-filter en .navbar volvería
   a la barra el contenedor del menú móvil (position: fixed) y lo desbordaría */
.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 29, 54, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s ease;
}
.navbar.is-scrolled { box-shadow: 0 10px 30px rgba(4, 18, 42, 0.35); }
.navbar.is-scrolled::before { background: rgba(4, 18, 42, 0.94); }

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar__logo { display: flex; align-items: center; flex-shrink: 0; }

.logo-img {
  height: 70px;
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}
.logo-img--footer { height: 92px; }

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: rgba(238, 244, 251, 0.82);
  font-weight: 700;
  font-size: 0.93rem;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--gold-soft); }

.nav-link--cta {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--deep);
  margin-left: 10px;
  padding-inline: 20px;
}
.nav-link--cta:hover { color: var(--deep); box-shadow: 0 8px 20px rgba(216, 180, 108, 0.35); }

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
}
.navbar__toggle span {
  display: block;
  height: 2px;
  background: var(--light);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.navbar__toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar__toggle.is-active span:nth-child(2) { opacity: 0; }
.navbar__toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: flex-end;
  padding: 72px 0 120px;
  overflow: hidden;
  background: var(--deep);
}

.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 18, 42, 0.62) 0%, rgba(4, 18, 42, 0.2) 55%, rgba(4, 18, 42, 0.05) 100%),
    linear-gradient(180deg, rgba(7, 29, 54, 0.15) 0%, rgba(7, 29, 54, 0.3) 55%, rgba(7, 29, 54, 0.92) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__kicker {
  color: var(--gold-soft);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin-bottom: 16px;
}

.hero__title {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  font-weight: 600;
  margin-bottom: 20px;
  text-shadow: 0 8px 30px rgba(4, 18, 42, 0.5);
}

.hero__lead {
  color: rgba(238, 244, 251, 0.92);
  font-size: 1.15rem;
  max-width: 34rem;
  margin-bottom: 30px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero__chips li {
  color: var(--light);
  border: 1px solid rgba(236, 211, 160, 0.4);
  background: rgba(4, 18, 42, 0.35);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 700;
}

/* Story */
.story { padding: 96px 0 112px; }

.story__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.story__copy h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 22px;
}
.story__copy p + p { margin-top: 14px; }
.story__copy p { font-size: 1.06rem; }

.story__photos {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: end;
}

.story__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(216, 180, 108, 0.2);
}
.story__photo img { width: 100%; height: 100%; object-fit: cover; }
.story__photo--main img { aspect-ratio: 4 / 5; }
.story__photo--small img { aspect-ratio: 1; }

/* Sections */
.section { padding: 104px 0 112px; }

.section__head { margin-bottom: 48px; max-width: 38rem; }
.section__head--left { margin-right: auto; }
.section__head:not(.section__head--left) { margin-inline: auto; text-align: center; }
.section__head:not(.section__head--left) .eyebrow { justify-content: center; }

.section__head h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); }

.section__desc {
  margin-top: 14px;
  font-size: 1.06rem;
}

/* Pozas */
.pozas__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.pozas__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.pozas__photo img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

.pozas__cards { display: grid; gap: 20px; }

.depth-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.depth-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 211, 223, 0.35), transparent 70%);
}
.depth-card--deep {
  background: linear-gradient(150deg, var(--navy), var(--deep));
  border-color: transparent;
  box-shadow: var(--shadow-soft);
}
.depth-card--deep h3,
.depth-card--deep .depth-card__value { color: #f5f8fc; }
.depth-card--deep p { color: rgba(238, 244, 251, 0.78); }

.depth-card__value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
  color: #2b6aa3;
  margin-bottom: 12px;
}
.depth-card--deep .depth-card__value { color: var(--gold-soft); }
.depth-card h3 { font-size: 1.25rem; margin-bottom: 6px; color: var(--card-heading); }
.depth-card p { color: var(--card-text); }

/* Seguridad */
.safety {
  padding: 88px 0 104px;
  background:
    radial-gradient(ellipse 60% 80% at 85% 50%, rgba(127, 211, 223, 0.16), transparent 70%),
    var(--bg);
}
.safety__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.safety h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 14px; }
.safety p { font-size: 1.06rem; }

.safety__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.safety__stats li {
  background: var(--card-bg);
  border: 1px solid rgba(216, 180, 108, 0.25);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
}
.safety__stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--gold-soft);
  margin-bottom: 4px;
}
.safety__stats span { font-size: 0.9rem; font-weight: 700; color: var(--card-text); }

/* Featured + cards */
.featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  background: linear-gradient(150deg, var(--navy), var(--deep));
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.featured__media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.featured__body {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured__body h3 {
  color: #f5f8fc;
  font-size: 2.1rem;
  margin-bottom: 12px;
}
.featured__body p { color: rgba(238, 244, 251, 0.82); }
.featured .eyebrow { color: var(--gold); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(12, 43, 78, 0.2);
}

.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.card:hover .card__media img { transform: scale(1.06); }

.card__body { padding: 22px 22px 26px; }
.card__body h3 { font-size: 1.22rem; margin-bottom: 8px; color: var(--card-heading); }
.card__body p { color: var(--card-text); font-size: 0.97rem; }

.card__note {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(216, 180, 108, 0.18);
  color: #8a6421;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.theme-dark .card__note,
.theme-navy .card__note { color: var(--gold-soft); }

/* Cabaña y camping */
.stay__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stay-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.stay-card:hover { transform: translateY(-6px); border-color: rgba(216, 180, 108, 0.4); }
.stay-card__media { aspect-ratio: 16 / 10; }
.stay-card__media img { width: 100%; height: 100%; object-fit: cover; }
.stay-card__media--duo { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }

.stay-card__body { padding: 28px 28px 32px; }
.stay-card__body h3 { font-size: 1.55rem; margin-bottom: 8px; color: var(--card-heading); }
.stay-card__body p { color: var(--card-text); }

.stay-card__link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 800;
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(236, 211, 160, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.stay-card__link:hover { border-color: var(--gold-soft); }

/* Instalaciones */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.service img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.service figcaption { padding: 18px 18px 22px; }
.service h3 { font-size: 1.12rem; margin-bottom: 4px; color: var(--card-heading); }
.service p { color: var(--card-text); font-size: 0.94rem; }

.services__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.services__list li {
  background: var(--card-bg);
  border: 1px solid rgba(12, 43, 78, 0.12);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.9rem;
}
.services__list li::before { content: "✓ "; color: #2b6aa3; }

/* Day steps */
.day {
  padding: 96px 0 112px;
  background:
    radial-gradient(ellipse 50% 70% at 10% 30%, rgba(127, 211, 223, 0.1), transparent 70%),
    var(--bg);
}

.day__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.day__steps li {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.day__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.day h3 { font-size: 1.32rem; margin-bottom: 10px; }

/* Gallery */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 18, 42, 0.45));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

/* Visit */
.visit {
  padding: 104px 0 112px;
  background:
    linear-gradient(180deg, var(--deep) 0%, rgba(7, 29, 54, 0.9) 30%, rgba(7, 29, 54, 0.82) 100%),
    url("../images/photos/alberca-principal-1280.webp") center / cover;
}

.visit__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.visit h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.visit__copy > p { margin-bottom: 28px; max-width: 34rem; }

.visit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.visit__map {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(216, 180, 108, 0.25);
  aspect-ratio: 16 / 9;
  background: var(--card-bg);
}
.visit__map iframe { width: 100%; height: 100%; border: 0; display: block; }

.visit__cards { display: grid; gap: 16px; }

.visit-card {
  background: rgba(7, 29, 54, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.visit-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--gold-soft);
}
.visit-card p { color: rgba(238, 244, 251, 0.88); }
.visit-card p + p { margin-top: 4px; }
.visit-card a { text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.footer { background: var(--abyss); color: rgba(238, 244, 251, 0.7); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 48px;
}

.footer__brand p { margin-top: 16px; max-width: 28rem; }

.footer__col h3 {
  color: var(--gold-soft);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__col a,
.footer__col p {
  display: block;
  margin-bottom: 10px;
}
.footer__col a:hover { color: var(--gold-soft); }

.footer__bottom { border-top: 1px solid rgba(216, 180, 108, 0.15); }
.footer__bottom-inner { padding: 20px 0; font-size: 0.85rem; color: rgba(238, 244, 251, 0.45); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 18, 42, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-active { opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s; }
.lightbox img {
  max-width: min(92vw, 960px);
  max-height: 78vh;
  border-radius: 16px;
}
.lightbox__caption { color: rgba(238, 244, 251, 0.85); margin-top: 14px; font-family: var(--font-display); }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  border-radius: 50%;
  color: var(--light);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(216, 180, 108, 0.3);
}
.lightbox__close { top: 20px; right: 24px; width: 44px; height: 44px; font-size: 1.8rem; }
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
}
.lightbox__nav:hover,
.lightbox__close:hover { background: rgba(216, 180, 108, 0.25); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1500;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease;
}
.wa-float:hover { transform: scale(1.08); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Aparición al hacer scroll (solo con JS activo, para que el contenido nunca quede oculto) */
.js .fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .fade-in-up.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (max-width: 1080px) {
  .navbar__toggle { display: flex; }
  .navbar__nav {
    position: fixed;
    inset: var(--nav-h) 0 0 auto;
    width: min(300px, 86vw);
    height: calc(100vh - var(--nav-h));
    background: var(--abyss);
    border-left: 1px solid rgba(216, 180, 108, 0.2);
    flex-direction: column;
    align-items: stretch;
    padding: 28px 22px;
    transform: translateX(110%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
  }
  .navbar__nav.is-open { transform: none; visibility: visible; }
  .nav-link { width: 100%; }
  .nav-link--cta { margin-left: 0; margin-top: 12px; text-align: center; justify-content: center; }
}

@media (max-width: 980px) {
  .story__grid,
  .featured,
  .visit__grid,
  .day__steps,
  .pozas__grid,
  .safety__inner,
  .stay__grid { grid-template-columns: 1fr; }
  .cards-grid,
  .services__grid { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .story__photos { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  :root { --nav-h: 76px; --wave-h: 32px; }
  .cards-grid,
  .story__photos,
  .services__grid,
  .footer__grid { grid-template-columns: 1fr; }
  .hero { min-height: 86vh; padding-bottom: 80px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .section, .story, .day, .visit, .safety { padding: 72px 0 80px; }
  .featured__body { padding: 28px 22px; }
  .logo-img { height: 58px; }
  .safety__stats { gap: 8px; }
  .safety__stats li { padding: 14px 6px; }
  .safety__stats strong { font-size: 1.05rem; }
  .safety__stats span { font-size: 0.74rem; }
  .lightbox__nav { top: auto; bottom: 24px; transform: none; }
  .wa-float { right: 16px; bottom: 16px; }
}

/* Página 404 */
.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(127, 211, 223, 0.14), transparent 70%),
    var(--bg);
}
.not-found__inner { display: grid; justify-items: center; gap: 16px; max-width: 36rem; }
.not-found__inner .logo-img { height: 96px; margin-bottom: 8px; }
.not-found h1 { font-size: clamp(2rem, 5vw, 3rem); }
.not-found .eyebrow { margin-bottom: 0; }
.not-found .btn { margin-top: 12px; }
