:root {
  --ink: #1f2b2c;
  --muted: #5b6667;
  --accent: #3a4134;
  --accent-dark: #3a4134;
  --accent-soft: #e4eff0;
  --surface: #ffffff;
  --background: linear-gradient(180deg, #f8fbfb 0%, #eef4f5 50%, #dbe7ea 100%);
  --border-subtle: #e2e8ea;
  --card-border: rgba(255, 255, 255, 0.7);
  --footer-bg: linear-gradient(120deg, #1c3e4b 0%, #2d5865 100%);
  --toggle-border: #d6e2e5;
  --nav-card-shadow: 0 16px 30px rgba(15, 22, 26, 0.18);
  --shadow: 0 14px 30px rgba(17, 31, 33, 0.14);
  --radius: 18px;
  --square-radius: 12px;
  --font-display: "Playfair Display", serif;
  --font-body: "Sora", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--background);
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 80px 5vw 16px;
  position: relative;
}

.nav-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.lang-corner {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  position: absolute;
  right: 6vw;
  top: 24px;
}

.lang-btn {
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  padding: 8px 12px;
  min-width: 44px;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.lang-btn:active {
  transform: scale(0.96);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  flex: 0 0 clamp(150px, 16vw, 190px);
  width: clamp(150px, 16vw, 190px);
  min-height: 88px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--muted);
  font-weight: 500;
  font-size: 20px;
  font-family: var(--font-display);
  text-align: center;
  box-shadow: var(--nav-card-shadow);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.nav-btn .btn-label {
  display: block;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
}

.nav-btn .btn-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.nav-btn svg {
  width: 20px;
  height: 20px;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(20, 30, 30, 0.18);
}

.nav-btn:active {
  transform: scale(0.98);
  box-shadow: 0 6px 14px rgba(20, 30, 30, 0.12);
}

.nav-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 18px 32px rgba(22, 58, 68, 0.35);
}

.nav-btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  background: rgba(58, 65, 52, 0.35);
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

.nav-btn.active .btn-icon {
  color: #fff;
}

.content {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 420px);
  gap: 60px;
  padding: 48px 8vw 80px;
  align-items: center;
}

.content.section-visitar {
  grid-template-columns: 1fr;
  align-items: start;
}

.content.section-agua {
  grid-template-columns: 1fr;
  align-items: start;
}

.content.section-agua .content-text {
  max-width: 100%;
}

.content.section-agua .hotel-group {
  margin-top: 0;
}

.content.section-visitar .content-text {
  max-width: 100%;
}

.content.section-visitar .visit-slider {
  margin-top: 0;
}

.content-wrapper {
  background: var(--background);
}

.content-text {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 20px;
}

.eyebrow {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin: 0;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3vw, 3.5rem);
  margin: 0;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  min-width: 100%;
  white-space: pre-line;
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--accent-dark);
  font-weight: 500;
}

.feature-list li::marker {
  color: var(--accent);
}

.hotel-group {
  display: grid;
  grid-column: 1 / -1;
  gap: 32px;
}

.hotel-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.hotel-tab {
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 16px;
  padding: 12px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hotel-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 18px rgba(15, 22, 26, 0.2);
}

.hotel-showcase {
  display: grid;
  gap: 20px;
}

.hotel-card {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hotel-info {
  display: block;
}

.hotel-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.hotel-card.is-hidden {
  display: none;
}

.hotel-slider {
  position: relative;
}

.hotel-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.hotel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: #ffffff;
  color: #5c6a5f;
  font-size: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 22, 26, 0.18);
}

.hotel-arrow.prev {
  left: 12px;
}

.hotel-arrow.next {
  right: 12px;
}

.hotel-info h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.hotel-location {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 600;
}

.hotel-highlights {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--accent-dark);
  font-weight: 500;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.primary-cta,
.secondary-cta {
  padding: 14px 22px;
  border-radius: var(--square-radius);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-cta {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 14px 28px rgba(19, 44, 53, 0.24);
}

.secondary-cta {
  background: #fff;
  color: var(--accent-dark);
  border: 1px solid var(--toggle-border);
}

.primary-cta:active,
.secondary-cta:active {
  transform: scale(0.97);
}

.content-media {
  display: grid;
  gap: 18px;
}

.media-card {
  width: 100%;
  border-radius: 0;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  border: none;
}

.media-card.large {
  height: 360px;
}

.media-card.small {
  height: 260px;
}

.visit-slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  background: #cfe0e2;
  padding: 32px 24px;
}

.legend-slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  background: #f1e5d4;
  padding: 36px 28px;
  box-shadow: var(--shadow);
}

.legend-layout {
  min-width: 500px;
  height: 1000px !important;
  display: grid;
  /* grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); */
  align-items: start;
}

.legend-intro-title,
.legend-carousel-title {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--accent-dark);
}

.legend-intro {
  display: grid;
  gap: 16px;
}

.legend-intro-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.1;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  min-width: 100%;
  white-space: pre-line;
}

.legend-intro-text:empty {
  display: none;
}

.legend-carousel {
  display: grid;
  gap: 16px;
}

.legend-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 380px;
  height: 380px;
}

.legend-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--accent-dark);
}

.legend-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #2f3b33;
  white-space: pre-line;
}

.legend-arrow {
  width: 56px;
  height: 56px;
  border: none;
  background: #ffffff;
  color: #5c6a5f;
  font-size: 30px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 22, 26, 0.18);
  transition: transform 0.2s ease;
}

.legend-arrow:active {
  transform: scale(0.95);
}

.visit-card {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: center;
}

.visit-media {
  width: 100%;
  height: clamp(260px, 40vh, 420px);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.visit-body {
  max-width: 420px;
}

.visit-caption {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #2f3b33;
}

.visit-arrow {
  width: 56px;
  height: 56px;
  border: none;
  background: #ffffff;
  color: #5c6a5f;
  font-size: 30px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 22, 26, 0.18);
  transition: transform 0.2s ease;
}

.visit-arrow:active {
  transform: scale(0.95);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 980px) {
  .content {
    grid-template-columns: 1fr;
  }

  .content-media {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .media-card.large,
  .media-card.small {
    height: 300px;
  }

  .visit-card {
    grid-template-columns: 1fr;
  }

  .legend-content {
    width: 50% !important;
  }

  .hotel-card {
    grid-template-columns: 1fr;
  }

  .hotel-info {
    grid-template-columns: 1fr;
  }

  .hotel-map {
    min-height: 220px;
  }

  .hotel-image {
    height: 240px;
  }

  .content.section-visitar .content-text {
    max-width: none;
  }

  .visit-slider {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .legend-slider {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .legend-layout {
    grid-template-columns: 1fr;
  }

  .legend-card {
    min-height: 240px;
  }

  .visit-body {
    max-width: none;
  }

  .visit-media {
    height: 320px;
  }
}

@media (max-width: 600px) {
  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .lang-corner {
    position: static;
  }

  .nav-btn {
    min-width: 140px;
    min-height: 84px;
    font-size: 18px;
  }

  .media-card.large,
  .media-card.small {
    height: 240px;
  }

  .visit-media {
    height: 240px;
  }

  .hotel-group {
    gap: 24px;
  }

  .hotel-arrow {
    width: 36px;
    height: 36px;
  }

  .visit-slider {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .visit-arrow {
    width: 48px;
    height: 48px;
  }
}
