:root {
  --chocolate: #3a241b;
  --ink: #251b16;
  --earth: #6f4d3c;
  --clay: #a47a5d;
  --paper: #f6efe4;
  --paper-deep: #efe3d2;
  --white-warm: #fffaf2;
  --line: rgba(58, 36, 27, 0.18);
  --muted: #7a6c61;
  --logo-font: "Times New Roman", Times, serif;
  --title-font: "Cormorant Garamond", Georgia, serif;
  --body-font: "Inter", Arial, sans-serif;
  --side: clamp(18px, 4vw, 58px);
  --max: 1440px;
  --ease: 240ms ease;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(164, 122, 93, 0.10), transparent 36rem),
    linear-gradient(90deg, rgba(58, 36, 27, 0.028) 1px, transparent 1px),
    var(--paper);
  background-size: auto, calc((100vw - (var(--side) * 2)) / 12) 100%;
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; width: 100%; height: auto; object-fit: cover; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }

::selection { color: var(--white-warm); background: var(--chocolate); }

.skip-link {
  position: fixed;
  left: var(--side);
  top: 16px;
  z-index: 300;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--chocolate);
  color: var(--white-warm);
  border-radius: 999px;
  transition: transform var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 84px;
  padding: 18px var(--side);
  border-bottom: 1px solid transparent;
  transition: min-height var(--ease), border-color var(--ease);
}

/* El fondo translúcido va en un pseudo-elemento: si backdrop-filter estuviera en
   la cabecera, el menú móvil (position: fixed) quedaría limitado a su altura. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 239, 228, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: background var(--ease);
}

.site-header.is-scrolled {
  min-height: 68px;
  border-bottom-color: var(--line);
}
.site-header.is-scrolled::before { background: rgba(246, 239, 228, 0.94); }

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--chocolate);
  color: var(--chocolate);
  font-family: var(--logo-font);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.brand-name,
.footer-logo {
  color: var(--chocolate);
  font-family: var(--logo-font);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.nav-desktop {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 44px);
}

.nav-desktop a,
.reserve-link,
.menu-toggle,
.text-button,
.footer-book,
.form-submit {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav-desktop a {
  position: relative;
  padding: 8px 0;
  color: var(--earth);
}

.nav-desktop a::after,
.text-button::after,
.reserve-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}

.nav-desktop a:hover::after,
.nav-desktop a:focus-visible::after,
.nav-desktop a.is-active::after,
.text-button:hover::after,
.text-button:focus-visible::after,
.reserve-link:hover::after,
.reserve-link:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.reserve-link,
.text-button {
  position: relative;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 8px 0;
  color: var(--chocolate);
}

.reserve-link::before,
.text-button::before,
.footer-book::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: currentColor;
}

.text-button.muted { color: var(--earth); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--chocolate);
  padding: 8px 0;
}

.menu-toggle i {
  position: relative;
  width: 24px;
  height: 10px;
  display: inline-block;
}
.menu-toggle i::before,
.menu-toggle i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: transform var(--ease), top var(--ease);
}
.menu-toggle i::before { top: 0; }
.menu-toggle i::after { top: 9px; }
.menu-toggle[aria-expanded="true"] i::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i::after { top: 5px; transform: rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: none;
  padding: 112px var(--side) 34px;
  overflow-y: auto;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}

.nav-mobile.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile a {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--title-font);
  font-size: clamp(1.9rem, 9vw, 4.4rem);
  line-height: 0.95;
  color: var(--chocolate);
  letter-spacing: -0.055em;
}

.nav-mobile a::after {
  content: "→";
  align-self: center;
  font-family: var(--body-font);
  font-size: 1.1rem;
  letter-spacing: 0;
}

.nav-mobile .mobile-menu-reserve {
  margin-top: 28px;
  padding: 16px 20px;
  border: 1px solid var(--chocolate);
  font-family: var(--body-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.nav-mobile .mobile-menu-reserve::after { content: none; }

.section-anchor { scroll-margin-top: 110px; }

.kicker,
.section-label {
  color: var(--earth);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  color: var(--chocolate);
  font-family: var(--title-font);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

h1 { font-size: clamp(3.3rem, 9.4vw, 10.4rem); max-width: 1020px; }
h2 { font-size: clamp(2.45rem, 5.8vw, 6.8rem); max-width: 880px; }
h3 { font-size: clamp(1.75rem, 3.2vw, 3.8rem); }

p { color: var(--muted); }

.hero {
  min-height: 100svh;
  max-width: var(--max);
  margin-inline: auto;
  padding: 118px var(--side) 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 5vw, 68px);
  align-content: end;
}

.hero-copy {
  align-self: end;
  max-width: 1080px;
}
.hero-copy .kicker { margin-bottom: 18px; }

.hero-intro {
  max-width: 620px;
  margin-top: 22px;
  color: #4f3a30;
  font-family: var(--title-font);
  font-size: clamp(1.35rem, 2.1vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 30px;
}

.hero-figure {
  position: relative;
  align-self: end;
  margin-top: 0;
}

.hero-figure img {
  min-height: clamp(360px, 48vw, 660px);
  max-height: 74svh;
  aspect-ratio: 16 / 8.4;
  filter: saturate(0.9) contrast(0.96);
}

.hero-figure figcaption,
.large-image figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: var(--earth);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


.quiet-statement {
  padding: clamp(58px, 7vw, 110px) var(--side);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--chocolate);
}
.quiet-statement p {
  max-width: 820px;
  margin-inline: auto;
  color: rgba(246, 239, 228, 0.84);
  font-family: var(--body-font);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.78;
  letter-spacing: 0;
}

.house,
.rooms,
.events,
.services,
.experiences,
.contact {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(74px, 9vw, 138px) var(--side);
}

.section-label {
  margin-bottom: clamp(34px, 5vw, 74px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.house-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.58fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.large-image img {
  aspect-ratio: 1.08 / 1;
  min-height: 460px;
}

.house-copy {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 24px;
  padding-top: 14px;
}

.house-copy h2 { max-width: 560px; }
.house-copy p { max-width: 470px; }

.small-image {
  grid-column: 2;
  width: 74%;
  margin-top: -20px;
}
.small-image img { aspect-ratio: 0.86 / 1; min-height: 320px; }

.rooms { background: linear-gradient(180deg, transparent, rgba(239, 227, 210, 0.54)); }
.rooms-intro {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.58fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 92px);
}
.rooms-intro .kicker { grid-column: 1 / -1; margin-bottom: -16px; }
.rooms-intro p:last-child { max-width: 490px; }

.room-index { border-top: 1px solid var(--line); }
.room-item { border-bottom: 1px solid var(--line); }

.room-head {
  width: 100%;
  display: grid;
  grid-template-columns: 84px minmax(0, 0.74fr) minmax(260px, 0.72fr);
  gap: 24px;
  align-items: baseline;
  padding: clamp(26px, 4vw, 48px) 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.room-number,
.room-summary {
  color: var(--earth);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.room-name {
  color: var(--chocolate);
  font-family: var(--title-font);
  font-size: clamp(2.35rem, 5.3vw, 6.1rem);
  line-height: 0.82;
  letter-spacing: -0.07em;
}

.room-head:hover .room-name,
.room-head:focus-visible .room-name { font-style: italic; }

.room-body {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.48fr);
  gap: clamp(24px, 5vw, 74px);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 560ms ease, opacity 360ms ease, transform 360ms ease, padding 360ms ease;
}

.room-item.is-active .room-body {
  max-height: 980px;
  opacity: 1;
  transform: translateY(0);
  padding-bottom: clamp(34px, 5vw, 74px);
}

.room-images {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 12px;
}
.room-images img { min-height: 240px; aspect-ratio: 1.1 / 0.82; }
.room-images img:first-child {
  grid-row: span 2;
  min-height: 460px;
  aspect-ratio: 0.84 / 1;
}
.room-text {
  display: grid;
  align-content: end;
  gap: 22px;
  padding-bottom: 10px;
}
.room-text p { color: #5d4b41; font-size: 1.02rem; }
.room-text ul {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.room-text li {
  color: var(--earth);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.editable-note {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.event-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.54fr) minmax(0, 0.72fr) minmax(220px, 0.36fr);
  grid-template-rows: auto 1fr;
  gap: clamp(18px, 3vw, 44px);
  align-items: end;
}
.event-copy {
  grid-row: 1 / span 2;
  display: grid;
  gap: 24px;
  align-content: center;
}
.event-copy p { max-width: 440px; }
.event-image-main img { min-height: 540px; aspect-ratio: 0.86 / 1; }
.event-image-side { align-self: start; margin-top: 120px; }
.event-image-side img { min-height: 300px; aspect-ratio: 0.8 / 1; }

.services { background: var(--paper-deep); max-width: none; }
.services > * { max-width: var(--max); margin-inline: auto; }
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(340px, 0.78fr);
  gap: clamp(34px, 7vw, 110px);
  align-items: start;
}
.services-copy { position: sticky; top: 120px; display: grid; gap: 22px; }
.services-copy p { max-width: 420px; }
.service-list { border-top: 1px solid var(--line); }
.service-list details { border-bottom: 1px solid var(--line); }
.service-list summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
  color: var(--chocolate);
  font-family: var(--title-font);
  font-size: clamp(1.55rem, 2.8vw, 3.35rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  cursor: pointer;
}
.service-list summary::-webkit-details-marker { display: none; }
.service-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--earth);
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
}
.service-list details[open] summary::after { content: "−"; }
.service-detail {
  max-width: 760px;
  padding: 0 54px 30px 0;
}
.service-detail p {
  max-width: 700px;
  padding: 0;
}
.service-detail-photo {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(190px, 0.38fr);
  gap: 24px;
  align-items: start;
}
.service-detail-photo figure {
  margin: 0;
}
.service-detail-photo img {
  min-height: 220px;
  aspect-ratio: 4 / 5;
}


.experiences-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.58fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
}
.experiences-hero figure img { min-height: 420px; aspect-ratio: 1 / 1.05; }
.experience-index {
  margin-top: clamp(46px, 7vw, 86px);
  border-top: 1px solid var(--line);
}
.experience-index article {
  display: grid;
  grid-template-columns: 80px minmax(200px, 0.38fr) minmax(280px, 0.72fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.experience-index span {
  color: var(--earth);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.experience-index h3 { font-size: clamp(1.65rem, 2.45vw, 3rem); }
.experience-index p { max-width: 620px; }

.contact { background: var(--chocolate); max-width: none; color: var(--paper); }
.contact > * { max-width: var(--max); margin-inline: auto; }
.contact .section-label,
.contact .kicker,
.contact h2 { color: var(--paper); border-color: rgba(246, 239, 228, 0.18); }
.contact p { color: rgba(246, 239, 228, 0.72); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(340px, 0.55fr);
  gap: clamp(34px, 7vw, 110px);
  align-items: start;
}
.contact-copy { display: grid; gap: 24px; }
.contact-copy h2 { max-width: 720px; }
.contact-lines { display: grid; gap: 0; margin-top: 22px; border-top: 1px solid rgba(246, 239, 228, 0.18); }
.contact-lines a,
.contact-lines address {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(246, 239, 228, 0.18);
  color: var(--paper);
}
.contact-lines span {
  color: rgba(246, 239, 228, 0.62);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.form-submit {
  justify-self: start;
  border: 1px solid var(--paper);
  padding: 14px 20px;
  background: var(--paper);
  color: var(--chocolate);
}
.map-block {
  margin-top: clamp(42px, 6vw, 84px);
  border: 1px solid rgba(246, 239, 228, 0.18);
}
.map-block iframe { display: block; width: 100%; height: min(50vw, 420px); min-height: 300px; border: 0; filter: grayscale(0.55) sepia(0.12) brightness(0.88); }

.site-footer {
  padding: 60px var(--side) 28px;
  background: var(--paper);
  color: var(--chocolate);
}
.footer-main {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(220px, 0.5fr) minmax(220px, 0.45fr);
  gap: clamp(28px, 6vw, 90px);
}
.footer-logo { font-size: clamp(1.45rem, 2.3vw, 2.8rem); line-height: 0.95; margin-bottom: 18px; }
.footer-main p { max-width: 330px; }
.footer-main nav { display: grid; gap: 8px; align-content: start; }
.footer-main nav a,
.footer-bottom a { color: var(--earth); }
.footer-book {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 22px;
  padding: 13px 16px;
  border: 1px solid var(--chocolate);
  color: var(--chocolate);
}
.footer-bottom {
  max-width: var(--max);
  margin: 48px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.sticky-book {
  position: fixed;
  right: var(--side);
  bottom: 24px;
  z-index: 180;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 110px;
  border: 1px solid rgba(246, 239, 228, 0.5);
  border-radius: 50%;
  background: var(--chocolate);
  color: var(--paper);
  box-shadow: 0 22px 80px rgba(58, 36, 27, 0.22);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--ease), opacity var(--ease), background var(--ease);
}
.sticky-book.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.sticky-book:hover { background: var(--earth); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (max-width: 1120px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-actions { justify-self: end; }
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-mobile { display: block; }
  .hero,
  .house-grid,
  .rooms-intro,
  .event-grid,
  .services-grid,
  .experiences-hero,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-figure img { min-height: 320px; max-height: none; aspect-ratio: 16 / 9; }
  .house-copy,
  .services-copy { position: static; }
  .small-image { grid-column: 1; width: min(560px, 74%); margin: -40px 0 0 auto; }
  .event-copy { grid-row: auto; }
  .event-image-main img { min-height: 420px; }
  .event-image-side { margin-top: 0; width: min(520px, 80%); margin-left: auto; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  body { background-size: auto, 100% 100%; }
  .site-header { min-height: 70px; padding-block: 14px; }
  .brand-name { font-size: 1.08rem; }
  .brand-mark { width: 34px; height: 34px; }
  .reserve-link { display: none; }
  .hero { min-height: auto; padding-top: 104px; }
  h1 { font-size: clamp(3.2rem, 14vw, 6rem); }
  h2 { font-size: clamp(2.65rem, 11vw, 5rem); }
  .quiet-statement p { font-size: clamp(1rem, 4.2vw, 1.22rem); }
  .large-image img,
  .room-images img:first-child,
  .event-image-main img { min-height: 320px; }
  .room-head { grid-template-columns: 46px 1fr; gap: 10px 18px; }
  .room-summary { grid-column: 2; }
  .room-body,
  .room-images,
  .experience-index article { grid-template-columns: 1fr; }
  .room-images img:first-child { grid-row: auto; }
  .room-images img { min-height: 210px; aspect-ratio: 4 / 3; }
  .experience-index article { gap: 8px; }
  .service-list summary { padding: 24px 0; }
  .service-detail { padding-right: 0; }
  .service-detail-photo { grid-template-columns: 1fr; }
  .sticky-book {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    height: 52px;
    min-width: 0;
    border-radius: 999px;
  }
  .site-footer { padding-bottom: 88px; }
  .footer-main,
  .footer-bottom { grid-template-columns: 1fr; flex-direction: column; }
}

@media (max-width: 520px) {
  :root { --side: 16px; }
  .hero-links { display: grid; gap: 10px; }
  .house,
  .rooms,
  .events,
  .services,
  .experiences,
  .contact { padding-top: 74px; padding-bottom: 74px; }
  .small-image { width: 86%; }
  .contact-booking { padding: 18px; }
  .map-block iframe { min-height: 280px; }
}


/* Ajustes v4 - replica de referencias PRINCIPAL/EVENTOS y carrusel de habitaciones */
.hero { min-height: auto; padding-top: 96px; gap: clamp(24px, 4vw, 52px); align-content: start; }
.hero-copy-centered { max-width: 1120px; margin-inline: auto; text-align: center; }
.hero-copy-centered .kicker { margin-bottom: 20px; }
.hero-copy-centered h1 { max-width: 980px; margin-inline: auto; font-size: clamp(2.8rem, 6vw, 6.6rem); }
.hero-copy-centered .hero-links { justify-content: center; }
.hero-figure img { min-height: clamp(340px, 42vw, 560px); max-height: 62svh; aspect-ratio: 16 / 7.2; }
.house-grid-editorial { grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.54fr); row-gap: clamp(28px, 5vw, 72px); }
.house-grid-editorial .large-image img { aspect-ratio: 1 / 1.05; }
.house-detail img { min-height: 300px; aspect-ratio: 0.82 / 1; }
.house-detail-left { width: min(520px, 78%); }
.house-detail-right { justify-self: end; width: min(360px, 68%); margin-top: -22px; }
.rooms-intro { grid-template-columns: 1fr; margin-bottom: clamp(30px, 5vw, 72px); }
.room-body { grid-template-columns: minmax(0, 0.74fr) minmax(300px, 0.46fr); align-items: end; }
.room-item.is-active .room-body { max-height: 760px; }
.room-gallery { position: relative; overflow: hidden; }
.room-gallery img { min-height: clamp(300px, 36vw, 520px); aspect-ratio: 1.36 / 1; object-fit: cover; transition: opacity 180ms ease; }
.gallery-arrow { position: absolute; top: 50%; z-index: 4; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(246,239,228,.72); border-radius: 50%; background: rgba(58,36,27,.72); color: var(--paper); font-size: 1rem; line-height: 1; transform: translateY(-50%); backdrop-filter: blur(8px); }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.room-text ul { grid-template-columns: 1fr; }
.event-grid { grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.7fr) minmax(180px, 0.32fr); grid-template-rows: auto auto auto; align-items: start; }
.event-image-main img { min-height: 360px; aspect-ratio: 1.25 / 1; }
.event-image-wide { grid-column: 1 / 4; }
.event-image-wide img { min-height: 420px; aspect-ratio: 16 / 7.8; }
.event-image-side { grid-column: 1; margin-top: 0; }
.event-image-extra { grid-column: 2; width: min(620px, 74%); justify-self: center; }
.event-image-side img, .event-image-extra img { min-height: 280px; aspect-ratio: 0.78 / 1; }
@media (max-width: 1120px) { .house-grid-editorial, .event-grid, .room-body { grid-template-columns: 1fr; } .event-image-wide, .event-image-side, .event-image-extra { grid-column: auto; width: 100%; } .house-detail-right, .house-detail-left { width: min(560px, 82%); } }
@media (max-width: 780px) { .hero { padding-top: 92px; } .hero-copy-centered h1 { font-size: clamp(2.8rem, 12vw, 5.6rem); } .hero-figure img { aspect-ratio: 4 / 3; min-height: 300px; } .room-gallery img { min-height: 260px; aspect-ratio: 4 / 3; } .gallery-arrow { width: 34px; height: 34px; } }

/* Ajustes v5 - portada a sangre y nueva composición editorial de "La casa" */

/* 1. La fotografía principal ocupa todo el ancho de la ventana. */
.hero {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 84px 0 clamp(44px, 6vw, 86px);
}

.hero-figure {
  width: 100%;
  margin: 0;
}

.hero-figure img {
  width: 100%;
  min-height: clamp(340px, 39vw, 610px);
  max-height: 68svh;
  aspect-ratio: 16 / 6.2;
}

.hero-figure figcaption {
  padding-inline: var(--side);
}

.hero-copy-centered {
  width: min(100%, var(--max));
  max-width: var(--max);
  padding-inline: var(--side);
}

/* 2. Titular principal más contenido y en una sola línea en escritorio. */
.hero-copy-centered h1 {
  max-width: none;
  font-size: clamp(2.5rem, 4.25vw, 4.9rem);
  letter-spacing: -0.055em;
  white-space: nowrap;
}

/* 3. Composición inspirada en el documento PRINCIPAL. */
.house {
  padding-bottom: clamp(64px, 8vw, 122px);
}

.house-grid-editorial {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3.2vw, 52px);
  row-gap: 0;
  align-items: start;
}

.house-grid-editorial .large-image {
  grid-column: 1 / 8;
}

.house-grid-editorial .large-image img {
  min-height: 0;
  aspect-ratio: 1 / 1.02;
}

.house-copy {
  grid-column: 8 / 13;
  position: static;
  top: auto;
  align-self: start;
  gap: clamp(16px, 1.8vw, 26px);
  padding-top: clamp(48px, 7vw, 108px);
}

.house-copy h2 {
  max-width: 520px;
  font-size: clamp(3rem, 5.2vw, 6.1rem);
}

.house-copy p {
  max-width: 500px;
}

.house-collage-wide {
  grid-column: 1 / 8;
  margin-top: clamp(38px, 5vw, 78px);
}

.house-collage-wide img {
  aspect-ratio: 1.42 / 1;
}

.house-collage-tall {
  grid-column: 8 / 12;
  width: 88%;
  justify-self: end;
  margin-top: clamp(120px, 15vw, 230px);
}

.house-collage-tall img {
  aspect-ratio: 0.68 / 1;
}

.house-triptych {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 30px);
  margin-top: clamp(92px, 12vw, 190px);
}

.house-triptych img {
  aspect-ratio: 2 / 3;
}

.house-panorama {
  grid-column: 1 / 13;
  margin-top: clamp(80px, 10vw, 158px);
}

.house-panorama img {
  aspect-ratio: 1.48 / 1;
}

/* La declaración cierra la sección de la casa, como en la referencia. */
.quiet-statement {
  margin-top: 0;
}

@media (max-width: 1120px) {
  .hero {
    padding-top: 70px;
  }

  .house-grid-editorial {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .house-grid-editorial .large-image {
    grid-column: 1 / 8;
  }

  .house-copy {
    grid-column: 8 / 13;
  }
}

@media (max-width: 900px) {
  .hero-copy-centered h1 {
    white-space: normal;
  }

  .house-grid-editorial {
    grid-template-columns: 1fr;
    row-gap: clamp(28px, 6vw, 52px);
  }

  .house-grid-editorial .large-image,
  .house-copy,
  .house-collage-wide,
  .house-collage-tall,
  .house-triptych,
  .house-panorama {
    grid-column: 1;
  }

  .house-copy {
    padding-top: 0;
  }

  .house-collage-wide,
  .house-collage-tall,
  .house-triptych,
  .house-panorama {
    margin-top: clamp(28px, 6vw, 54px);
  }

  .house-collage-tall {
    width: min(72%, 480px);
    justify-self: end;
  }
}

@media (max-width: 780px) {
  .hero {
    padding-top: 70px;
  }

  .hero-figure img {
    min-height: 280px;
    max-height: none;
    aspect-ratio: 4 / 3;
  }

  .hero-copy-centered h1 {
    font-size: clamp(2.45rem, 11vw, 4.8rem);
  }

  .house-triptych {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .house-triptych figure:nth-child(2) {
    width: 84%;
    justify-self: end;
  }

  .house-triptych figure:nth-child(3) {
    width: 92%;
  }

  .house-triptych img {
    aspect-ratio: 4 / 5;
  }

  .house-panorama img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 520px) {
  .hero-copy-centered {
    text-align: left;
  }

  .hero-copy-centered .hero-links {
    justify-content: flex-start;
  }
}

/* Afinado final de la portada según la maqueta visual. */
.hero-figure img {
  min-height: clamp(320px, 33.75vw, 560px);
  aspect-ratio: 16 / 5.4;
}

.hero-figure figcaption,
.hero-copy-centered > .kicker {
  display: none;
}

@media (max-width: 1120px) {
  .hero { padding-top: 84px; }
}

@media (max-width: 780px) {
  .hero { padding-top: 70px; }
  .hero-figure img {
    min-height: 280px;
    aspect-ratio: 4 / 3;
  }
}

/* Ajustes v6 - jerarquía tipográfica común y composición editorial de Eventos */

/* Todos los títulos principales de sección comparten exactamente la misma escala. */
:root {
  --section-title-size: clamp(2.75rem, 4.35vw, 5.2rem);
}

h2,
.house-copy h2 {
  font-size: var(--section-title-size);
}

/* El título de Habitaciones queda en una sola línea en escritorio. */
.rooms-intro h2 {
  max-width: none;
  white-space: nowrap;
}

/* Eventos: composición en cinco imágenes siguiendo la maqueta enviada. */
.event-grid-editorial {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3.2vw, 52px);
  row-gap: 0;
  align-items: start;
}

.event-grid-editorial .event-copy {
  grid-column: 1 / 5;
  grid-row: 1;
  align-self: center;
  gap: clamp(16px, 1.8vw, 26px);
  padding-right: clamp(0px, 1vw, 16px);
}

.event-grid-editorial .event-copy h2 {
  max-width: 510px;
}

.event-grid-editorial .event-copy p {
  max-width: 430px;
}

.event-grid-editorial .event-image-main {
  grid-column: 5 / 13;
  grid-row: 1;
}

.event-grid-editorial .event-image-main img {
  min-height: 0;
  aspect-ratio: 1.52 / 1;
}

.event-grid-editorial .event-image-wide {
  grid-column: 1 / 13;
  margin-top: clamp(56px, 7vw, 108px);
}

.event-grid-editorial .event-image-wide img {
  min-height: 0;
  aspect-ratio: 1.68 / 1;
}

.event-portraits {
  grid-column: 1 / 9;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.8vw, 42px);
  margin-top: clamp(26px, 3vw, 48px);
}

.event-image-portrait img {
  min-height: 0;
  aspect-ratio: 0.66 / 1;
}

.event-grid-editorial .event-image-final {
  grid-column: 4 / 13;
  margin-top: clamp(30px, 4vw, 64px);
}

.event-grid-editorial .event-image-final img {
  min-height: 0;
  aspect-ratio: 1.5 / 1;
}

@media (max-width: 980px) {
  .rooms-intro h2 {
    white-space: normal;
  }

  .event-grid-editorial {
    grid-template-columns: 1fr;
    row-gap: clamp(32px, 6vw, 58px);
  }

  .event-grid-editorial .event-copy,
  .event-grid-editorial .event-image-main,
  .event-grid-editorial .event-image-wide,
  .event-portraits,
  .event-grid-editorial .event-image-final {
    grid-column: 1;
    grid-row: auto;
  }

  .event-grid-editorial .event-copy {
    padding-right: 0;
  }

  .event-grid-editorial .event-image-wide,
  .event-portraits,
  .event-grid-editorial .event-image-final {
    margin-top: 0;
  }

  .event-portraits {
    width: min(720px, 82%);
  }

  .event-grid-editorial .event-image-final {
    width: min(820px, 88%);
    justify-self: end;
  }
}

@media (max-width: 780px) {
  .event-grid-editorial .event-image-main img,
  .event-grid-editorial .event-image-wide img,
  .event-grid-editorial .event-image-final img {
    aspect-ratio: 4 / 3;
  }

  .event-portraits {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .event-portraits {
    grid-template-columns: 1fr;
  }

  .event-portraits figure:nth-child(2) {
    width: 86%;
    justify-self: end;
  }

  .event-image-portrait img {
    aspect-ratio: 4 / 5;
  }

  .event-grid-editorial .event-image-final {
    width: 100%;
  }
}

/* ==========================================================
   Integración ASP.NET: logo, motor de reservas en modal,
   aviso de cookies y páginas legales
   ========================================================== */

/* Logo oficial (imagen) */
.brand-logo,
.footer-logo-img { width: auto; object-fit: contain; }
.brand-logo { height: 40px; transition: height var(--ease); }
.site-header.is-scrolled .brand-logo { height: 34px; }
.footer-logo-img { height: 52px; }
@media (max-width: 780px) {
  .brand-logo { height: 32px; }
  .site-header.is-scrolled .brand-logo { height: 30px; }
  .footer-logo-img { height: 44px; }
}

/* Bloque de reserva en Contacto (sustituye al formulario del prototipo) */
.contact-booking {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(246, 239, 228, 0.18);
  background: rgba(246, 239, 228, 0.06);
}
.contact-booking h3 {
  color: var(--paper);
  font-family: var(--title-font);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 500;
  line-height: 1.05;
}
a.form-submit { display: inline-flex; align-items: center; width: fit-content; }

/* Modal del motor de reservas */
body.booking-open { overflow: hidden; }

.booking-modal {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(37, 27, 22, 0.35);
  overflow: auto;
}
.booking-modal:not([open]) { display: none; }
.booking-modal[open] {
  position: fixed;
  inset: 0;
  display: block;
  height: fit-content;
  z-index: 400;
  animation: booking-in 260ms ease;
}
.booking-modal::backdrop {
  background: rgba(37, 27, 22, 0.62);
  backdrop-filter: blur(4px);
}
@keyframes booking-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.booking-form {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(26px, 5vw, 44px);
}
.booking-logo { width: auto; height: 40px; margin-bottom: 6px; object-fit: contain; }
.booking-form h2 {
  color: var(--chocolate);
  font-family: var(--title-font);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
}
.booking-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.booking-form label {
  display: grid;
  gap: 8px;
  color: var(--earth);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.booking-form input {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid rgba(58, 36, 27, 0.34);
  border-radius: 0;
  padding: 10px 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
}
.booking-form input:focus { border-bottom-color: var(--chocolate); }
.booking-form .form-submit {
  justify-self: stretch;
  justify-content: center;
  margin-top: 6px;
  border-color: var(--chocolate);
  background: var(--chocolate);
  color: var(--paper);
  transition: background var(--ease);
}
.booking-form .form-submit:hover,
.booking-form .form-submit:focus-visible { background: var(--earth); }
.booking-note { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.booking-note a { color: var(--chocolate); text-decoration: underline; text-underline-offset: 3px; }
.booking-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--chocolate);
  font-size: 1.4rem;
  line-height: 1;
}
.booking-close:hover { background: var(--paper-deep); }

@media (max-width: 520px) {
  .booking-dates { grid-template-columns: 1fr; }
}

/* Calendario (flatpickr) integrado en la modal, debajo de las fechas */
.booking-form .flatpickr-input[readonly] { cursor: pointer; }
.booking-dates label { cursor: pointer; }
.booking-calendar:empty { display: none; }
/* El calendario flota sobre el resto del formulario (no lo desplaza) */
.booking-modal[open] { overflow: visible; }
.booking-calendar { position: relative; z-index: 5; height: 0; margin-top: -18px; }
.booking-calendar .flatpickr-calendar { display: none; }
.booking-calendar .flatpickr-calendar.open {
  position: absolute !important;
  top: 8px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  display: block;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white-warm);
  box-shadow: 0 24px 70px rgba(37, 27, 22, 0.28);
  animation: none;
  font-family: var(--body-font);
}
.booking-calendar .flatpickr-calendar::before,
.booking-calendar .flatpickr-calendar::after { display: none; }
.booking-calendar .flatpickr-months { padding: 6px 0 4px; }
.booking-calendar .flatpickr-months .flatpickr-month { height: 40px; }
.booking-calendar .flatpickr-current-month {
  height: 40px;
  padding-top: 6px;
  color: var(--chocolate);
  font-family: var(--title-font);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
}
.booking-calendar .flatpickr-current-month input.cur-year { font-weight: 600; }
.booking-calendar .flatpickr-months .flatpickr-prev-month,
.booking-calendar .flatpickr-months .flatpickr-next-month { top: 6px; color: var(--chocolate); fill: var(--chocolate); }
.booking-calendar .flatpickr-months .flatpickr-prev-month:hover svg,
.booking-calendar .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--clay); }
.booking-calendar span.flatpickr-weekday {
  color: var(--earth);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.booking-calendar .flatpickr-day { color: var(--ink); border-radius: 0; }
.booking-calendar .flatpickr-day:hover,
.booking-calendar .flatpickr-day:focus { background: var(--paper-deep); border-color: var(--paper-deep); }
.booking-calendar .flatpickr-day.today { border-color: var(--clay); }
.booking-calendar .flatpickr-day.selected,
.booking-calendar .flatpickr-day.selected:hover {
  background: var(--chocolate);
  border-color: var(--chocolate);
  color: var(--paper);
}
.booking-calendar .flatpickr-day.flatpickr-disabled,
.booking-calendar .flatpickr-day.prevMonthDay,
.booking-calendar .flatpickr-day.nextMonthDay { color: rgba(37, 27, 22, 0.28); }
/* En pantallas bajas la modal conserva su propio scroll */
@media (max-height: 700px) {
  .booking-modal[open] { overflow: auto; }
}

/* Aviso de cookies */
.cookie-notice {
  position: fixed;
  left: var(--side);
  bottom: 24px;
  z-index: 350;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: min(620px, calc(100% - (var(--side) * 2)));
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--white-warm);
  color: var(--ink);
  box-shadow: 0 22px 80px rgba(37, 27, 22, 0.3);
  font-size: 0.84rem;
  line-height: 1.5;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice a { text-decoration: underline; text-underline-offset: 3px; }
.cookie-notice .form-submit { flex: none; padding: 10px 16px; border-color: var(--chocolate); background: var(--chocolate); color: var(--paper); }
@media (max-width: 560px) {
  .cookie-notice { flex-direction: column; align-items: flex-start; right: var(--side); bottom: 16px; }
}

/* Páginas legales */
.legal {
  max-width: 920px;
  margin-inline: auto;
  padding: 150px var(--side) 90px;
}
.legal h1 {
  margin-bottom: 36px;
  color: var(--chocolate);
  font-family: var(--title-font);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 500;
  line-height: 1;
}
.legal h2 {
  margin: 34px 0 12px;
  color: var(--chocolate);
  font-family: var(--title-font);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
}
.legal p, .legal li { margin-bottom: 14px; color: var(--ink); }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal a { color: var(--earth); text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; margin: 18px 0 28px; border-collapse: collapse; font-size: 0.88rem; }
.legal th, .legal td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { background: var(--paper-deep); color: var(--chocolate); }
.legal-table { overflow-x: auto; }
