/* =========================================================
   Casa Rural Aliberch — hoja de estilos principal
   ========================================================= */

:root {
  --forest-950: #101d16;
  --forest-900: #17291f;
  --forest-800: #1e3427;
  --forest-700: #284734;
  --forest-600: #355c42;
  --sage: #7f9c84;
  --sage-light: #dbe4d8;
  --cream: #f7f3ea;
  --cream-dark: #efe8da;
  --sand: #e5d9c4;
  --terra: #b86a43;
  --terra-dark: #98512f;
  --ink: #1d2721;
  --muted: #5e6b61;
  --white: #fffdf8;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 8px 24px rgba(23, 41, 31, 0.08);
  --shadow: 0 20px 50px rgba(23, 41, 31, 0.14);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1.1em;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--forest-900);
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.3rem);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--terra);
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--forest-900);
  color: var(--cream);
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.section--white {
  background: var(--white);
}

.section--sand {
  background: var(--cream-dark);
}

.section--forest {
  background: var(--forest-900);
  color: var(--cream);
}

.section--forest h2,
.section--forest h3 {
  color: var(--white);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.2rem, 4vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

.section--forest .eyebrow {
  color: var(--sand);
}

.lead {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: var(--muted);
}

.section--forest .lead {
  color: var(--sage-light);
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  background: var(--terra);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(184, 106, 67, 0.28);
}

.btn--primary:hover {
  background: var(--terra-dark);
}

.btn--ghost {
  border-color: rgba(247, 243, 234, 0.55);
  color: var(--cream);
  background: rgba(255, 255, 255, 0.04);
}

.btn--ghost:hover {
  background: rgba(247, 243, 234, 0.14);
  border-color: var(--cream);
}

.btn--dark {
  background: var(--forest-900);
  color: var(--cream);
}

.btn--dark:hover {
  background: var(--forest-700);
}

.btn--outline {
  border-color: var(--forest-900);
  color: var(--forest-900);
  background: transparent;
}

.btn--outline:hover {
  background: var(--forest-900);
  color: var(--cream);
}

.btn--whatsapp {
  background: #1faa59;
  color: #fff;
}

.btn--whatsapp:hover {
  background: #178c49;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--forest-700);
  border-bottom: 1px solid rgba(40, 71, 52, 0.35);
  padding-bottom: 2px;
  transition: gap 0.2s ease, border-color 0.2s ease;
}

.link-arrow:hover {
  gap: 0.8rem;
  border-color: var(--forest-700);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
}

/* ---------- Cabecera ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  padding: 1.1rem 0;
  color: var(--cream);
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
}

.brand__mark {
  width: 46px;
  height: 46px;
  flex: none;
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand__sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
}

.nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
  padding-block: 0.25rem;
}

.nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-header__inner {
  position: relative;
  z-index: 70;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav__extra {
  display: none;
}

.menu-toggle .icon-close {
  display: none;
}

body.menu-open .menu-toggle .icon-menu {
  display: none;
}

body.menu-open .menu-toggle .icon-close {
  display: block;
}

body.menu-open .site-header {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--cream);
}

body.menu-open .site-header .brand__sub {
  opacity: 0.75;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.lang-switch a {
  padding: 0.2rem 0.35rem;
  border-radius: 5px;
  opacity: 0.6;
}

.lang-switch a.is-active,
.lang-switch a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lang-switch span {
  opacity: 0.35;
}

.site-header.is-scrolled,
.page-inner .site-header {
  background: rgba(247, 243, 234, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(23, 41, 31, 0.08);
  padding: 0.55rem 0;
  color: var(--ink);
}

.site-header.is-scrolled .brand__sub,
.page-inner .brand__sub {
  opacity: 0.65;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  margin-inline: auto;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100svh;
  padding: clamp(8rem, 15vh, 11rem) 0 clamp(3rem, 7vh, 5rem);
  overflow: hidden;
  color: var(--cream);
  background: var(--forest-950);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s ease-out both;
}

@keyframes heroZoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 29, 22, 0.55) 0%, rgba(16, 29, 22, 0.08) 38%, rgba(16, 29, 22, 0.78) 100%),
    linear-gradient(90deg, rgba(16, 29, 22, 0.5) 0%, rgba(16, 29, 22, 0) 65%);
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
}

.hero__eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 14ch;
  margin-bottom: 1rem;
  color: var(--white);
  text-wrap: balance;
}

.hero__tagline {
  max-width: 38ch;
  margin-bottom: 1.8rem;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: rgba(247, 243, 234, 0.88);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-bottom: 2rem;
  padding: 0;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(247, 243, 234, 0.9);
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hero__facts li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 0.85rem;
  border-radius: 50%;
  background: var(--sage);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__scroll {
  position: absolute;
  right: max(4vw, 1.5rem);
  bottom: 2rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: rgba(247, 243, 234, 0.7);
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--cream), transparent);
}

/* ---------- Franja de datos ---------- */

.quickfacts {
  position: relative;
  z-index: 2;
  margin-top: -3.2rem;
}

.quickfacts__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.quickfact {
  padding: 1.5rem 1.2rem;
  text-align: center;
}

.quickfact + .quickfact {
  border-left: 1px solid var(--cream-dark);
}

.quickfact strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1;
  color: var(--forest-800);
}

.quickfact span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Split ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.split--reverse .split__text {
  order: 2;
}

.split__text > p {
  color: var(--muted);
}

.split__text h2 {
  margin-bottom: 1rem;
}

.split__media {
  position: relative;
  padding-bottom: 3rem;
}

.split__media img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.split__media img:first-child {
  aspect-ratio: 4 / 3;
}

.split__media-small {
  position: absolute;
  right: -0.5rem;
  bottom: 0;
  width: 44% !important;
  aspect-ratio: 1 / 1;
  border: 6px solid var(--cream);
  border-radius: var(--radius);
}

.section--white .split__media-small {
  border-color: var(--white);
}

.badge-card {
  position: absolute;
  left: 1rem;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 270px;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--forest-900);
  color: var(--cream);
  font-size: 0.78rem;
  line-height: 1.45;
  box-shadow: var(--shadow-sm);
}

.badge-card svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--sand);
}

.badge-card strong {
  display: block;
  font-size: 0.8rem;
}

.checklist {
  display: grid;
  gap: 0.65rem;
  margin: 1.5rem 0 1.8rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.checklist svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 0.2rem;
  color: var(--terra);
}

/* ---------- Tarjetas de espacios ---------- */

.spaces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.space-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.space-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.space-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.space-card:hover .space-card__media img {
  transform: scale(1.04);
}

.space-card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(247, 243, 234, 0.92);
  color: var(--forest-900);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.space-card__body {
  padding: 1.6rem;
}

.space-card__body h3 {
  margin-bottom: 0.35rem;
}

.space-card__body > p {
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.space-card .checklist {
  margin: 0;
}

.space-card .checklist li {
  font-size: 0.9rem;
}

/* ---------- Rejilla de features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.feature-card {
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(40, 71, 52, 0.1);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 106, 67, 0.35);
  box-shadow: var(--shadow-sm);
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--forest-800);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}

.section--forest .feature-card {
  background: rgba(247, 243, 234, 0.06);
  border-color: rgba(247, 243, 234, 0.14);
}

.section--forest .feature-card:hover {
  background: rgba(247, 243, 234, 0.1);
  border-color: rgba(229, 217, 196, 0.45);
}

.section--forest .feature-card__icon {
  background: rgba(229, 217, 196, 0.16);
  color: var(--sand);
}

.section--forest .feature-card p {
  color: rgba(219, 228, 216, 0.82);
}

/* ---------- Servicios ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.service {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.05rem 1.1rem;
  border: 1px solid rgba(40, 71, 52, 0.09);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--forest-800);
}

.service svg {
  width: 21px;
  height: 21px;
  flex: none;
  color: var(--terra);
}

/* ---------- Galería ---------- */

.gallery-preview {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-auto-rows: 240px;
  gap: 0.8rem;
}

.gallery-preview a {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--forest-800);
}

.gallery-preview a:first-child {
  grid-row: span 2;
}

.gallery-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.gallery-preview a:hover img {
  transform: scale(1.05);
  opacity: 0.88;
}

.gallery-preview__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

/* Página de galería */

.page-hero {
  padding: clamp(8rem, 14vh, 10rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: var(--forest-900);
  color: var(--cream);
}

.page-hero h1 {
  margin-bottom: 0.6rem;
  color: var(--white);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
}

.page-hero p {
  max-width: 60ch;
  margin: 0;
  color: var(--sage-light);
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(40, 71, 52, 0.22);
  border-radius: 999px;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-800);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--forest-700);
}

.filter-btn.is-active {
  background: var(--forest-900);
  border-color: var(--forest-900);
  color: var(--cream);
}

.gallery-count {
  font-size: 0.8rem;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  background: var(--sage-light);
  cursor: zoom-in;
  animation: fadeUp 0.45s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.2rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(16, 29, 22, 0.78));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-item:hover .gallery-item__caption,
.gallery-item:focus-visible .gallery-item__caption {
  opacity: 1;
  transform: none;
}

.gallery-item--wide {
  grid-column: span 2;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 1.5rem;
  background: rgba(9, 15, 11, 0.95);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.lightbox.is-open {
  display: grid;
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  max-width: min(1100px, 92vw);
  margin: 0;
}

.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox__caption {
  color: var(--sand);
  font-size: 0.85rem;
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(247, 243, 234, 0.3);
  border-radius: 50%;
  background: rgba(16, 29, 22, 0.65);
  color: var(--cream);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(247, 243, 234, 0.18);
}

.lightbox__close {
  top: 1.25rem;
  right: 1.25rem;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: 1.25rem;
}

.lightbox__nav--next {
  right: 1.25rem;
}

.lightbox svg {
  width: 22px;
  height: 22px;
}

/* ---------- Entorno ---------- */

.place-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.2rem;
  margin: 1.5rem 0;
}

.place-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.place-list svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 0.25rem;
  color: var(--sage);
}

.distance-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--cream-dark);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--forest-700);
}

.map-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 30%, rgba(127, 156, 132, 0.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(229, 217, 196, 0.7), transparent 40%),
    repeating-linear-gradient(35deg, rgba(40, 71, 52, 0.06) 0 2px, transparent 2px 26px),
    var(--sage-light);
  box-shadow: var(--shadow-sm);
}

.map-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 2rem;
  text-align: center;
}

.map-placeholder svg {
  width: 42px;
  height: 42px;
  color: var(--forest-700);
}

.map-placeholder p {
  max-width: 30ch;
  margin: 0;
  font-size: 0.85rem;
  color: var(--forest-800);
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.map-actions .btn {
  min-height: 44px;
  padding: 0.7rem 1.1rem;
  font-size: 0.82rem;
}

/* ---------- Página legal ---------- */

.legal {
  max-width: 820px;
}

.legal article {
  padding-bottom: 2.2rem;
  margin-bottom: 2.2rem;
  border-bottom: 1px solid rgba(40, 71, 52, 0.14);
}

.legal article:last-of-type {
  border-bottom: 0;
}

.legal h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.legal h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.legal p,
.legal li {
  font-size: 0.94rem;
  color: var(--muted);
}

.legal ul {
  display: grid;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
  padding-left: 1.1rem;
  list-style: disc;
}

.legal li {
  list-style: disc;
}

.legal a {
  color: var(--forest-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal strong {
  color: var(--forest-900);
}

/* ---------- Vídeos ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.video-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--forest-950);
  box-shadow: var(--shadow-sm);
}

.video-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 0.25s ease, transform 0.5s ease;
}

.video-poster:hover img {
  opacity: 0.58;
  transform: scale(1.03);
}

.video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(247, 243, 234, 0.94);
  color: var(--forest-900);
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 30px rgba(16, 29, 22, 0.35);
}

.video-play svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}

/* ---------- Opiniones ---------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.review {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.review__mark {
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--terra);
}

.review blockquote {
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-800);
}

.review__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sage-light);
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--forest-800);
}

.review__source {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
}

/* ---------- Reservas ---------- */

.booking {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.condition-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0 2rem;
}

.condition {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.condition svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 0.15rem;
  color: var(--terra);
}

.condition strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.92rem;
  color: var(--forest-800);
}

.condition p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
}

.contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.contact-lines .btn {
  min-height: 44px;
  padding: 0.7rem 1.1rem;
  font-size: 0.85rem;
}

.form-card {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-card h3 {
  margin-bottom: 0.35rem;
}

.form-card > p {
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--forest-800);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(40, 71, 52, 0.2);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: 0.92rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--forest-600);
  background: var(--white);
  outline: none;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

.field--check input {
  width: 16px;
  height: 16px;
  margin-top: 0.2rem;
  flex: none;
  accent-color: var(--forest-700);
}

.field--check a {
  text-decoration: underline;
}

.form-note {
  margin: 0.9rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

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

.form-success {
  display: none;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  background: var(--sage-light);
  font-size: 0.88rem;
  color: var(--forest-800);
}

.form-success.is-visible {
  display: block;
}

.form-submit {
  width: 100%;
  margin-top: 1.25rem;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  margin-inline: auto;
}

.faq details {
  border-bottom: 1px solid rgba(40, 71, 52, 0.15);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--forest-900);
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--terra);
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 68ch;
  padding-bottom: 1.2rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Pie ---------- */

.site-footer {
  padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
  background: var(--forest-950);
  color: rgba(247, 243, 234, 0.72);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.site-footer h4 {
  margin-bottom: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
}

.site-footer a {
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-brand .brand {
  margin-bottom: 1rem;
  color: var(--cream);
}

.footer-brand p {
  max-width: 34ch;
  font-size: 0.85rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-contact {
  display: grid;
  gap: 0.55rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 0.28rem;
  color: var(--sage);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(247, 243, 234, 0.14);
  font-size: 0.75rem;
  color: rgba(247, 243, 234, 0.55);
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (min-width: 621px) {
  .footer-bottom {
    padding-right: 5rem;
  }
}

.reg-number {
  font-variant-numeric: tabular-nums;
}

/* ---------- WhatsApp flotante y barra móvil ---------- */

.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1faa59;
  color: #fff;
  box-shadow: 0 12px 30px rgba(31, 170, 89, 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.03);
  background: #178c49;
}

.wa-float svg {
  width: 26px;
  height: 26px;
}

.mobile-bar {
  display: none;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 720px;
  margin-inline: auto;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  color: var(--muted);
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  text-decoration: underline;
}

.cookie-banner .btn {
  min-height: 38px;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  flex: none;
}

/* ---------- Animaciones ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav {
    gap: 1.1rem;
  }

  .nav a {
    font-size: 0.84rem;
  }

  .header-actions .btn {
    display: none;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .header-actions .lang-switch {
    display: none;
  }

  .site-header .brand,
  .header-actions {
    position: relative;
    z-index: 66;
  }

  body.menu-open .cookie-banner {
    display: none;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 65;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    justify-content: safe center;
    overflow-y: auto;
    padding: 5.5rem clamp(1.5rem, 8vw, 4rem) 3rem;
    background: var(--forest-950);
    color: var(--cream);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .site-nav .nav a {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 400;
    padding-block: 0.35rem;
  }

  .site-nav .lang-switch {
    margin-top: 2rem;
    font-size: 0.9rem;
  }

  .site-nav .lang-switch a {
    color: var(--cream);
  }

  .site-nav .btn {
    display: inline-flex;
    margin-top: 1.5rem;
  }

  .site-nav__extra {
    display: block;
  }

  .site-nav__extra .lang-switch {
    margin-top: 1.5rem;
  }

  .site-nav__extra .btn {
    margin-top: 0.75rem;
    width: 100%;
    justify-content: center;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__text {
    order: 0;
  }

  .split__media {
    max-width: 620px;
  }

  .spaces,
  .booking,
  .reviews {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .gallery-preview {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-preview a:first-child {
    grid-row: span 1;
    grid-column: span 2;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item--wide {
    grid-column: span 1;
  }

  .quickfacts__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .quickfact:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--cream-dark);
  }

  .quickfact:nth-child(4) {
    border-top: 1px solid var(--cream-dark);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .hero__scroll {
    display: none;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 1rem;
    padding-bottom: 64px;
  }

  .brand__name {
    font-size: 1.02rem;
    white-space: nowrap;
  }

  .brand__sub {
    font-size: 0.52rem;
    letter-spacing: 0.16em;
    white-space: nowrap;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: 92svh;
  }

  .hero__bg {
    object-position: 30% center;
  }

  .hero__actions .btn--ghost {
    display: none;
  }

  .hero__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1rem;
    margin-bottom: 1.4rem;
    font-size: 0.8rem;
  }

  .hero__tagline {
    margin-bottom: 1.3rem;
  }

  .hero__facts li + li::before {
    display: none;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .quickfacts {
    margin-top: -2rem;
  }

  .quickfact {
    padding: 1.1rem 0.8rem;
  }

  .split__media-small {
    width: 48% !important;
  }

  .badge-card {
    left: 0.5rem;
    max-width: 220px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-preview {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-preview a:first-child {
    grid-column: span 1;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .place-list {
    grid-template-columns: 1fr;
  }

  .gallery-toolbar {
    align-items: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    grid-column: auto;
  }

  .wa-float {
    display: none;
  }

  .mobile-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 58;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(16, 29, 22, 0.2);
    box-shadow: 0 -8px 30px rgba(23, 41, 31, 0.18);
  }

  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 64px;
    background: var(--white);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--forest-900);
  }

  .mobile-bar a:last-child {
    background: #1faa59;
    color: #fff;
  }

  .mobile-bar svg {
    width: 20px;
    height: 20px;
  }

  .cookie-banner {
    bottom: 76px;
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox {
    padding: 0.8rem;
  }

  .lightbox__nav {
    top: auto;
    bottom: 1.25rem;
    transform: none;
  }

  .lightbox__nav--prev {
    left: calc(50% - 60px);
  }

  .lightbox__nav--next {
    right: calc(50% - 60px);
  }

  .lightbox__img {
    max-height: 70vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
