:root {
  --sand: #f7f3ea;
  --white: #ffffff;
  --ink: #201f1c;
  --stone: #6b6660;
  --stone-light: #b3ab9f;
  --water: #33636b;
  --water-dark: #274e54;
  --line: #e9e3d5;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Jost', sans-serif;
  --radius: 2px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

h2 { font-size: 2.6rem; margin-bottom: 1.2rem; font-weight: 500; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; font-weight: 500; }

p { color: var(--stone); }

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--water);
  font-weight: 400;
  margin-bottom: 1.2rem;
  display: block;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

.section-lead {
  max-width: 520px;
  margin: 0 auto 3.5rem;
  color: var(--stone);
  font-size: 1.05rem;
}

.section { padding: 150px 0; }
.section-alt { background: var(--sand); }

/* Placeholder images (only used if a photo hasn't been added yet) */
.placeholder-img {
  position: relative;
  background: linear-gradient(135deg, #efe9dc 0%, #e2d9c6 100%);
  overflow: hidden;
}
.placeholder-img::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--stone);
  border: 1px dashed var(--stone-light);
  margin: 10px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.0);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 30px 0;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 14px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: inline-flex;
  align-items: center;
}
.logo-img {
  height: 60px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}
.site-header.scrolled .logo-img { height: 48px; }
.site-header:not(.scrolled) .nav a { color: var(--white); }

.nav { display: flex; align-items: center; gap: 40px; }
.nav a {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  transition: opacity 0.2s ease;
}
.nav a:hover { opacity: 0.6; }
.nav a.nav-diabolo { color: #b3261e !important; }
.nav-cta {
  border: 1px solid currentColor;
  padding: 9px 22px;
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 1.5px;
  background: var(--ink);
}
.site-header:not(.scrolled) .nav-toggle span { background: var(--white); }

/* Selector de idioma */
.lang-switch { position: relative; }
.lang-current {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: none;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  padding: 6px 12px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.lang-current:hover { opacity: 0.6; }
.site-header:not(.scrolled) .lang-current { color: var(--white); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 130px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 20;
  overflow: hidden;
}
.lang-menu[hidden] { display: none; }
.lang-menu li { list-style: none; }
.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink);
  background: none;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
}
.lang-menu button:hover { background: var(--sand); }

@media (max-width: 900px) {
  .lang-switch { margin-left: 0; order: 2; }
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,15,12,0.05) 0%, rgba(15,15,12,0.1) 55%, rgba(15,15,12,0.5) 100%);
}
.hero-content { position: relative; padding-bottom: 110px; }
.hero h1 {
  font-size: clamp(3.4rem, 9vw, 6.5rem);
  color: var(--white);
  margin-bottom: 0.7rem;
  font-weight: 500;
}
.hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.92);
  max-width: 460px;
  margin-bottom: 2.4rem;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 15px 32px;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--water);
  color: var(--white);
  border-color: var(--water);
}
.btn-primary:hover { background: var(--water-dark); border-color: var(--water-dark); }
.btn-ghost {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; text-align: center; border: none; }

.scroll-cue {
  position: absolute;
  bottom: 36px; right: 44px;
  color: var(--white);
  font-size: 1.3rem;
  opacity: 0.75;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.about-text p { margin-bottom: 1.3rem; font-size: 1.05rem; }
.about-media { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; }
.about-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  list-style: none;
}
.about-facts li { display: flex; flex-direction: column; }
.about-facts strong { font-family: var(--serif); font-size: 1.7rem; color: var(--water); font-weight: 500; }
.about-facts span { font-size: 0.75rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.08em; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
  gap: 24px;
}
.gallery-item { border-radius: var(--radius); overflow: hidden; }
.gallery-item.big { grid-column: span 2; grid-row: span 2; }
.kitchen-subheading {
  margin-top: 5.5rem;
  margin-bottom: 0;
  font-size: 1.6rem;
}
.kitchen-grid { margin-top: 2.2rem; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-item img:hover { transform: scale(1.02); }

/* Amenities */
.amenities-list {
  list-style: none;
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}
.amenities-list li { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.amenities-list p { font-size: 0.92rem; }

/* Location */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.distance-list { list-style: none; margin-top: 2rem; }
.distance-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.distance-list strong { color: var(--ink); font-weight: 400; }
.map-wrap { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.25) contrast(1.02); }

/* Activities */
.activities-list {
  list-style: none;
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
}
.activities-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.activities-list span { font-family: var(--serif); font-size: 1.15rem; }
.activities-list p { font-size: 0.85rem; text-align: right; max-width: 240px; }

/* Reserva */
.reserva-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}
.contact-list { list-style: none; margin-top: 2rem; }
.contact-list li { padding: 9px 0; font-size: 0.92rem; color: var(--ink); }

/* Calendario de disponibilidad (leido del calendario de Booking) */
.availability-calendar {
  margin-top: 2rem;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.availability-loading { color: var(--stone); font-size: 0.85rem; margin: 0; }
.availability-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}
.availability-nav span {
  font-size: 0.85rem;
  color: var(--ink);
  min-width: 120px;
  text-align: center;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}
.availability-nav button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}
.availability-nav button:hover:not(:disabled) { background: var(--sand); border-color: var(--water); }
.availability-nav button:disabled { opacity: 0.3; cursor: default; }
.availability-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  max-width: 280px;
  margin: 0 auto;
}
.avail-weekday {
  font-size: 0.68rem;
  color: var(--stone-light);
  text-align: center;
  text-transform: uppercase;
  padding-bottom: 4px;
}
.avail-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  border-radius: var(--radius);
  color: var(--ink);
}
.avail-day-empty { visibility: hidden; }
.avail-day-pasado { color: var(--stone-light); }
.avail-day-ocupado {
  background: rgba(179, 38, 30, 0.1);
  color: #b3261e;
  text-decoration: line-through;
}
.avail-day-hoy { box-shadow: inset 0 0 0 1px var(--water); }
.availability-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--stone);
}
.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.legend-libre { background: var(--sand); border: 1px solid var(--line); }
.legend-ocupado { background: rgba(179, 38, 30, 0.25); }
.avail-suggestion-btn {
  margin-left: 6px;
  font-family: var(--sans);
  font-size: 0.78rem;
  padding: 4px 12px;
  border: 1px solid var(--water);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--water);
  cursor: pointer;
}
.avail-suggestion-btn:hover { background: var(--water); color: var(--white); }
@media (max-width: 480px) {
  .availability-calendar { padding: 18px 16px; }
}

.booking-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.booking-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--stone);
}
.booking-form input, .booking-form textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
}
.booking-form input:focus, .booking-form textarea:focus {
  outline: none;
  border-color: var(--water);
}
.form-status { font-size: 0.85rem; color: var(--water-dark); min-height: 1.2em; }

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 60px 0;
  text-align: center;
}
.footer .logo { justify-content: center; }
.footer .logo-img { height: 64px; }
.footer p { color: rgba(255,255,255,0.6); margin-top: 8px; font-size: 0.85rem; }
.footer-reviews-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
}
.footer-reviews-link:hover { color: var(--white); border-color: rgba(255,255,255,0.7); }
.footer-copy { margin-top: 26px; font-size: 0.72rem; color: rgba(255,255,255,0.4); }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px 40px;
    gap: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }
  .site-header.nav-open .nav a { color: var(--ink) !important; }
  .about-grid, .location-grid, .reserva-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; aspect-ratio: 16/9; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery-item.big { grid-column: span 2; grid-row: span 1; }
  .amenities-list { grid-template-columns: 1fr 1fr; }
  .activities-list { grid-template-columns: 1fr; }
  .activities-list p { text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  h2 { font-size: 2rem; }
  .section { padding: 100px 0; }
}

@media (max-width: 520px) {
  .amenities-list { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 0; }
  .container { padding: 0 24px; }
}
