:root {
  --cream: #f4efe6;
  --linen: #e8dfd0;
  --stone: #c4b8a5;
  --olive: #5e6b45;
  --olive-deep: #3d4a2e;
  --charcoal: #2c2a26;
  --ink: #1a1815;
  --gold: #a6854d;
  --gold-soft: #c4a36a;
  --paper: #fbf8f2;
  --muted: #6f6a61;
  --white: #fffdf8;
  --shadow: 0 24px 60px rgba(26, 24, 21, 0.18);
  --nav-h: 88px;
  --max: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, .serif { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; letter-spacing: 0.01em; }
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: linear-gradient(to bottom, rgba(26,24,21,.55), transparent);
  color: var(--white);
  transition: background .3s, color .3s, box-shadow .3s;
}
.nav.scrolled, .nav.solid {
  background: rgba(251,248,242,.94);
  color: var(--ink);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(44,42,38,.08);
}
.nav-inner {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  letter-spacing: 0.22em;
  font-weight: 600;
}
.logo span { display: block; font-family: Outfit, sans-serif; font-size: .58rem; letter-spacing: .32em; opacity: .7; margin-top: 2px; font-weight: 400; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: .86rem; letter-spacing: .08em; }
.nav-links a:hover { color: var(--gold); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .72rem;
  cursor: pointer;
  transition: .25s;
}
.btn:hover { background: var(--olive-deep); color: var(--cream); border-color: var(--olive-deep); }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--olive-deep); color: var(--cream); border-color: var(--olive-deep); }
.nav .btn { padding: 10px 18px; }
.burger { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; height: 1px; background: currentColor; margin: 7px 0; }

/* HERO */
.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}
.hero img.bg, .hero .bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.9) contrast(1.05);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,24,21,.72) 0%, rgba(26,24,21,.15) 45%, rgba(26,24,21,.35) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 0 12vh;
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}
.hero h1 {
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: .9;
  margin: 12px 0 18px;
  font-style: italic;
  font-weight: 500;
  max-width: 14ch;
}
.hero p.lede {
  max-width: 38ch;
  font-size: 1.05rem;
  opacity: .92;
  margin-bottom: 32px;
}

/* SECTIONS */
section { padding: 100px 0; }
.section-head { max-width: 42rem; margin-bottom: 56px; }
.section-head h1, .section-head h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.05; margin: 10px 0 16px; }
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.split img { width: 100%; height: 72vh; object-fit: cover; }
.muted { color: var(--muted); }

/* CARDS */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  overflow: hidden;
  transition: transform .35s;
}
.card:hover { transform: translateY(-4px); }
.card .thumb { aspect-ratio: 4/5; overflow: hidden; background: var(--linen); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.card:hover .thumb img { transform: scale(1.04); }
.card-body { padding: 22px 4px 8px; }
.card-body h3 { margin: 6px 0 8px; font-size: 1.7rem; }
.meta { font-size: .82rem; color: var(--muted); letter-spacing: .04em; }
.price { margin-top: 10px; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--olive-deep); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
  border: 1px solid var(--stone);
  background: transparent;
  padding: 8px 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .68rem;
  cursor: pointer;
  color: var(--charcoal);
}
.chip.active, .chip:hover { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }

/* PROPERTY */
.prop-hero { height: 78vh; position: relative; color: var(--white); }
.prop-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prop-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(26,24,21,.7), transparent 50%); }
.prop-hero .wrap { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 48px; }
.prop-hero h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); margin: 8px 0; font-style: italic; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 28px 0 48px; }
.stat { border-left: 1px solid var(--stone); padding-left: 16px; }
.stat b { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.8rem; font-weight: 500; }
.stat span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 24px 0 56px;
}
.gallery img { width: 100%; height: 180px; object-fit: cover; cursor: zoom-in; }
.gallery img:first-child { grid-column: span 2; grid-row: span 2; height: 368px; }
.amenities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 32px; list-style: none; padding: 0; }
.amenities li { padding: 8px 0; border-bottom: 1px solid var(--linen); font-size: .95rem; }
.prose { white-space: pre-wrap; max-width: 68ch; font-size: 1.05rem; }
.layout-prop { display: grid; grid-template-columns: 1.4fr .8fr; gap: 56px; }

/* CALENDAR */
.cal-box {
  background: var(--cream);
  padding: 28px;
  position: sticky; top: 108px;
}
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-nav button { background: none; border: 0; cursor: pointer; font-size: 1.2rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: .82rem; }
.cal-grid .dow { color: var(--muted); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 0; }
.cal-grid .day {
  aspect-ratio: 1; display: grid; place-items: center; cursor: pointer; border-radius: 2px;
}
.cal-grid .day:hover { background: var(--linen); }
.cal-grid .day.past, .cal-grid .empty { opacity: .3; pointer-events: none; }
.cal-grid .day.busy {
  color: #f4efe6;
  background:
    repeating-linear-gradient(-45deg, #1a1815 0 4px, #5a4a32 4px 8px);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #f4efe6;
  cursor: not-allowed;
  opacity: 1;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px #1a1815;
}
.cal-grid .day.busy:hover {
  color: #f4efe6;
  background:
    repeating-linear-gradient(-45deg, #1a1815 0 4px, #5a4a32 4px 8px);
}
.cal-grid .day.in { background: var(--olive); color: var(--cream); text-decoration: none; cursor: pointer; opacity: 1; }
.cal-grid .day.out { background: var(--olive-deep); color: var(--cream); text-decoration: none; cursor: pointer; opacity: 1; }
.cal-grid .day.range { background: var(--stone); }
.cal-dates { margin: 16px 0; font-size: .9rem; }
.cal-dates div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--stone); }
.cal-legend {
  display: flex; flex-wrap: wrap; gap: 14px 18px;
  margin: 12px 0 4px; font-size: .75rem; color: var(--muted);
  letter-spacing: .04em;
}
.cal-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cal-legend span::before {
  content: ""; width: 14px; height: 14px; border-radius: 2px; display: inline-block;
}
.cal-legend .leg-ok::before {
  background: var(--white); border: 1px solid var(--stone);
}
.cal-legend .leg-busy::before {
  border: 2px solid #1a1815;
  background:
    repeating-linear-gradient(-45deg, #1a1815 0 4px, #5a4a32 4px 8px);
}
.cal-status { font-size: .75rem; color: var(--muted); margin: 0 0 10px; min-height: 1.2em; }
.cal-hint { font-size: .8rem; color: #8a3b2b; min-height: 1.2em; margin: 8px 0 0; }


.disp-layout, .reserva-with-cal {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 400px);
  gap: 48px;
  align-items: start;
}
.disp-layout .cal-box, .reserva-with-cal .cal-box { position: static; }
.cal-pick { max-width: 32rem; margin: 0 0 20px; }
.reserva-with-cal form.reserva { max-width: none; }
input.ocupado, select.ocupado {
  border-color: #8a3b2b;
  background: #f3e6e0;
}

/* LIGHTBOX */
.lb { position: fixed; inset: 0; background: rgba(16,14,12,.92); z-index: 80; display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }
.lb .close { top: 18px; right: 24px; }
.lb .prev { left: 18px; }
.lb .next { right: 18px; }

/* FORMS */
form.reserva, form.peticion { display: grid; gap: 16px; max-width: 640px; }
label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 14px 12px; border: 1px solid var(--stone); background: var(--white); color: var(--ink); font-size: 1rem;
}
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 16px 18px; background: #e7efe0; border-left: 3px solid var(--olive); margin-bottom: 24px; }
.alert.err { background: #f3e6e0; border-color: #8a3b2b; }

/* FOOTER */
footer {
  background: var(--ink); color: var(--linen);
  padding: 64px 0 32px; margin-top: 40px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
footer a { opacity: .85; }
footer a:hover { color: var(--gold-soft); }
.legal { margin-top: 40px; font-size: .78rem; opacity: .6; display: flex; gap: 18px; flex-wrap: wrap; }
.legal .visitas,
footer .visitas {
  opacity: .55;
  color: #c4b8a5;
  font-size: .78rem;
  letter-spacing: .04em;
}


.banner-cookies {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--charcoal); color: var(--cream);
  padding: 16px 24px; display: none; align-items: center; justify-content: space-between; gap: 16px;
}
.banner-cookies.show { display: flex; }

.dest-empty {
  aspect-ratio: 4/5; background: linear-gradient(160deg, var(--linen), var(--stone));
  display: grid; place-items: center; letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; color: var(--olive-deep);
}

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--paper); color: var(--ink); flex-direction: column; padding: 24px; gap: 16px; }
  .nav-links.open { display: flex; }
  .burger { display: block; }
  .split, .layout-prop, .grid-cards, .foot-grid, .form-row, .disp-layout, .reserva-with-cal { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img, .gallery img:first-child { height: 160px; grid-column: auto; grid-row: auto; }
  .hero h1 { font-size: 3.2rem; }
  .cal-box { position: static; }
  .banner-cookies { flex-direction: column; align-items: flex-start; }
}

/* SEO copy — visible, elegant, not spammy */
.seo-copy {
  max-width: 52rem;
  margin-inline: auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}
.seo-copy h2 {
  color: var(--ink);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  margin: 0 0 1rem;
}
.seo-copy p { margin: 0 0 1rem; }
.seo-copy p:last-child { margin-bottom: 0; }
.seo-copy a { color: var(--olive-deep); text-decoration: underline; text-underline-offset: 3px; }
.seo-copy a:hover { color: var(--gold); }
.seo-intro {
  max-width: 48rem;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}


/* Contacto — logo y redes */
.contacto-layout {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 48px;
  align-items: start;
}
.contacto-logo {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
}
.conecta { margin-top: 2.2rem; }
.conecta-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0.35rem 0 1rem;
  color: var(--ink);
}
.social-fb {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #1877f2;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.social-fb:hover { color: #0d5dbf; }
.social-fb svg { flex-shrink: 0; }
@media (max-width: 900px) {
  .contacto-layout { grid-template-columns: 1fr; }
  .contacto-logo { max-width: 260px; margin-inline: auto; }
}


/* Language switcher */
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  align-items: center;
  justify-content: flex-end;
}
.lang-switch button {
  font-family: Outfit, sans-serif;
  font-size: .68rem;
  letter-spacing: .04em;
  padding: 5px 8px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 999px;
  white-space: nowrap;
  opacity: .82;
  transition: .2s ease;
}
.lang-switch button:hover { opacity: 1; color: var(--gold); }
.lang-switch button.active {
  opacity: 1;
  border-color: rgba(196,165,116,.7);
  background: rgba(196,165,116,.15);
}
.nav.scrolled .lang-switch button.active,
.nav.solid .lang-switch button.active {
  border-color: var(--gold);
  color: var(--olive-deep);
}
@media (max-width: 1100px) {
  .lang-switch button span.lang-name { display: none; }
  .lang-switch button { font-size: .78rem; padding: 6px 7px; }
}
@media (max-width: 900px) {
  .nav-inner { flex-wrap: wrap; row-gap: 8px; }
  .lang-switch {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
  .burger { order: 2; margin-left: auto; }
  .logo { order: 1; }
  .nav-links { order: 4; }
}
