:root {
  --ivory: #f7f2ea;
  --cream: #eee5d7;
  --ink: #171412;
  --stone: #77726a;
  --vitraux: #1f5f86;
  --walnut: #6f4b35;
  --brass: #a88a52;
  --paper: #fffaf2;
  --line: rgba(23, 20, 18, 0.12);
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 15%, rgba(168, 138, 82, 0.08), transparent 28%),
    radial-gradient(circle at 80% 5%, rgba(31, 95, 134, 0.05), transparent 26%),
    repeating-linear-gradient(90deg, rgba(23,20,18,.018) 0 1px, transparent 1px 7px);
  opacity: .7;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--vitraux); outline-offset: 3px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  color: var(--ivory);
  transition: color .45s ease, transform .45s ease;
}
.site-header.is-scrolled { color: var(--ink); }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 9px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(23,20,18,.78);
  font-size: 12px;
  color: rgba(247,242,234,.74);
  transition: background .45s ease, color .45s ease, border-color .45s ease;
}
.site-header.is-scrolled .topbar {
  background: rgba(247,242,234,.86);
  color: rgba(23,20,18,.68);
  border-color: rgba(23,20,18,.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 116px;
  padding: 10px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(23,20,18,.3);
  backdrop-filter: blur(14px);
  transition: background .45s ease, border-color .45s ease, min-height .45s ease;
}
.site-header.is-scrolled .nav {
  min-height: 88px;
  background: rgba(247,242,234,.82);
  border-color: rgba(23,20,18,.08);
}
.brand { display: flex; align-items: center; }
.brand-logo {
  width: 154px;
  height: 118px;
  object-fit: contain;
  background: var(--ivory);
  transition: width .45s ease, height .45s ease, transform .45s ease;
}
.site-header.is-scrolled .brand-logo { width: 96px; height: 74px; }
.brand:hover .brand-logo { transform: translateY(-2px); }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: currentColor;
}
.nav-links a, .text-link {
  position: relative;
  opacity: .78;
  transition: opacity .3s ease, letter-spacing .3s ease;
}
.nav-links a::after, .text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s ease;
}
.nav-links a:hover, .text-link:hover { opacity: 1; letter-spacing: .22em; }
.nav-links a:hover::after, .text-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid currentColor;
  font-weight: 700;
  cursor: pointer;
  transition: transform .35s ease, background .35s ease, color .35s ease, border-color .35s ease;
}
.nav-cta, .button.primary, .button.submit {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}
.site-header.is-scrolled .nav-cta, .button.submit {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.button.ghost, .button.secondary {
  background: transparent;
  color: inherit;
  border-color: rgba(247,242,234,.55);
}
.button.secondary {
  color: var(--ink);
  border-color: var(--line);
}
.button:hover, .nav-cta:hover { transform: translateY(-2px); }

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--ink);
}
.hero-image {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  animation: heroZoom 8s ease-out forwards;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23,20,18,.88), rgba(23,20,18,.45), rgba(23,20,18,.16)),
    linear-gradient(0deg, rgba(23,20,18,.42), transparent 44%);
}
.hero-content {
  position: relative;
  max-width: 1180px;
  margin: auto;
  padding: 188px 22px 148px;
  color: var(--ivory);
}
.hero-logo {
  width: min(210px, 42vw);
  height: auto;
  margin-bottom: 34px;
  background: var(--ivory);
  opacity: 0;
  transform: translateY(22px);
  animation: enterSlow 1.2s .15s ease forwards;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--vitraux);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.dark .eyebrow, .hero .eyebrow { color: var(--brass); }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0;
}
h1 {
  max-width: 910px;
  margin: 0;
  font-size: clamp(58px, 9.2vw, 128px);
  line-height: .9;
}
h2 {
  margin: 0;
  font-size: clamp(40px, 5.8vw, 76px);
  line-height: .98;
}
h3 { margin: 0; font-size: 31px; line-height: 1.05; }
.hero p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(247,242,234,.84);
  font-size: 21px;
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 1px;
  height: 74px;
  background: rgba(247,242,234,.26);
}
.scroll-indicator span {
  display: block;
  width: 1px;
  height: 28px;
  background: var(--ivory);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

.booking-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -72px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.28);
  box-shadow: 0 26px 72px rgba(23,20,18,.16);
}
.booking-strip article { background: var(--paper); padding: 24px; }
.booking-strip span {
  display: block;
  color: var(--vitraux);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.booking-strip strong { display: block; margin-top: 8px; font: 600 25px/1.1 var(--serif); }

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 124px 0;
}
.editorial, .local {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.editorial-copy p:not(.eyebrow), .section-heading p, .local p {
  color: var(--stone);
  font-size: 18px;
  line-height: 1.75;
}
.editorial-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.editorial-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.editorial-media .facade { height: 560px; grid-row: span 2; }
.note {
  background: rgba(255,250,242,.92);
  border: 1px solid var(--line);
  padding: 28px;
}
.note span { color: var(--brass); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.note strong { display: block; margin-top: 12px; font: 600 48px/1 var(--serif); }
.note p { color: var(--stone); line-height: 1.6; }

.dark {
  width: 100%;
  max-width: none;
  padding: 124px max(22px, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: var(--ivory);
}
.narrative-head { max-width: 820px; }
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: rgba(255,255,255,.14);
}
.chapter {
  min-height: 280px;
  padding: 32px;
  background: var(--ink);
  transition: background .45s ease, transform .45s ease;
}
.chapter:hover { background: #211d19; transform: translateY(-3px); }
.chapter span {
  color: var(--brass);
  font-weight: 800;
  letter-spacing: .18em;
}
.chapter p { color: rgba(247,242,234,.72); line-height: 1.7; }

.section-heading { max-width: 790px; margin-bottom: 44px; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.detail-grid article {
  background: rgba(255,250,242,.86);
  border: 1px solid var(--line);
  padding: 18px;
  transition: transform .45s ease, box-shadow .45s ease;
}
.detail-grid article:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(23,20,18,.08); }
.detail-grid p { color: var(--stone); line-height: 1.55; }
.motif { height: 140px; margin-bottom: 22px; }
.checker, .motif-tile.checker {
  background-image:
    linear-gradient(45deg, #171412 25%, transparent 25%),
    linear-gradient(-45deg, #171412 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #171412 75%),
    linear-gradient(-45deg, transparent 75%, #171412 75%);
  background-size: 28px 28px;
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
}
.vitral, .motif-tile.vitral {
  background:
    radial-gradient(circle at 25% 15%, rgba(255,255,255,.55), transparent 18%),
    linear-gradient(135deg, #1f5f86, #143752);
}
.arch { border: 1px solid rgba(23,20,18,.25); border-radius: 999px 999px 6px 6px; background: var(--ivory); }
.wood { background: linear-gradient(135deg, #6f4b35, #2d1a12); }

.featured-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 44%);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
}
.featured-rail::-webkit-scrollbar { height: 6px; }
.featured-rail::-webkit-scrollbar-thumb { background: rgba(23,20,18,.2); }
.rail-item, .gallery-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--ink);
  cursor: zoom-in;
  text-align: left;
}
.rail-item { height: 440px; scroll-snap-align: start; }
.rail-item img, .gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease, opacity 1.2s ease;
}
.rail-item::after, .gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23,20,18,.46), transparent 46%);
  opacity: .72;
  transition: opacity .6s ease;
}
.rail-item span, .gallery-tile span {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 1;
  color: var(--ivory);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.rail-item:hover img, .gallery-tile:hover img { transform: scale(1.03); }
.rail-item:hover::after, .gallery-tile:hover::after { opacity: .92; }

.masonry-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  grid-auto-rows: 210px;
  gap: 16px;
  margin-top: 26px;
}
.gallery-tile.large { grid-row: span 2; }
.gallery-tile.tall { grid-row: span 2; }
.motif-tile { min-height: 210px; cursor: pointer; }

.local img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}
.local ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
}
.local li { border-bottom: 1px solid var(--line); padding-bottom: 12px; }

.booking-flow {
  background: rgba(255,250,242,.72);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(23,20,18,.1);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
}
.steps li {
  position: relative;
  background: rgba(255,250,242,.94);
  padding: 18px 18px 18px 52px;
  color: var(--stone);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.steps li::before {
  content: attr(data-step-label);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
}
.steps li.active { color: var(--ink); background: var(--cream); }
.flow-card { padding: 28px; }
.flow-panel { display: none; }
.flow-panel.active {
  display: block;
  animation: enterSlow .65s ease both;
}
.calendar-card {
  background: rgba(255,250,242,.9);
  border: 1px solid var(--line);
  padding: 24px;
}
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.calendar-head strong { font: 600 30px/1 var(--serif); text-transform: capitalize; }
.calendar-head button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--ivory);
  font-size: 30px;
  cursor: pointer;
  transition: transform .3s ease, background .3s ease;
}
.calendar-head button:hover { transform: translateY(-2px); background: var(--cream); }
.weekdays, .calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}
.weekdays { color: var(--stone); font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.day {
  aspect-ratio: 1;
  border: 1px solid rgba(23,20,18,.08);
  background: rgba(247,242,234,.65);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.day:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(31,95,134,.45); }
.day.out { opacity: .35; }
.day.occupied { background: rgba(23,20,18,.12); color: var(--stone); text-decoration: line-through; cursor: not-allowed; }
.day.pending { background: rgba(168,138,82,.18); color: var(--walnut); cursor: not-allowed; }
.day.selected { background: var(--vitraux); color: white; border-color: var(--vitraux); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; color: var(--stone); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 13px; height: 13px; border: 1px solid rgba(23,20,18,.18); }
.legend .available { background: var(--ivory); }
.legend .occupied { background: rgba(23,20,18,.12); }
.legend .pending { background: rgba(168,138,82,.18); }
.selected-dates, .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 750; }
input, textarea {
  width: 100%;
  border: 1px solid rgba(23,20,18,.16);
  background: rgba(247,242,234,.55);
  padding: 13px;
  font: inherit;
  color: var(--ink);
}
.flow-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 22px; }
.next-step { margin-top: 22px; }
.summary {
  border: 1px solid var(--line);
  background: rgba(247,242,234,.72);
  padding: 24px;
  line-height: 1.8;
}
.summary strong { font-family: var(--serif); font-size: 28px; }
.success {
  margin: 0 0 22px;
  padding: 24px;
  background: rgba(31,95,134,.1);
  border: 1px solid rgba(31,95,134,.22);
  line-height: 1.6;
  font-size: 18px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  padding: 60px max(22px, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: var(--ivory);
}
.footer strong { font: 600 40px/1 var(--serif); }
.footer p { color: rgba(247,242,234,.72); margin: 8px 0 0; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 42px;
  background: rgba(18,15,13,.94);
  color: var(--ivory);
}
.lightbox.open { display: flex; animation: fadeIn .35s ease both; }
.lightbox figure { margin: 0; max-width: min(1120px, 86vw); max-height: 88vh; }
.lightbox img { max-height: 78vh; width: auto; margin: auto; object-fit: contain; }
.lightbox figcaption { margin-top: 18px; text-align: center; color: rgba(247,242,234,.75); letter-spacing: .16em; text-transform: uppercase; font-size: 12px; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  border: 1px solid rgba(247,242,234,.28);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
}
.lightbox-close { top: 22px; right: 22px; width: 46px; height: 46px; font-size: 26px; }
.lightbox-nav { top: 50%; width: 52px; height: 52px; font-size: 38px; transform: translateY(-50%); }
.lightbox-nav.prev { left: 22px; }
.lightbox-nav.next { right: 22px; }

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #25d366;
  color: white;
  box-shadow: 0 18px 45px rgba(23,20,18,.25);
  transition: transform .2s ease;
}
.floating-whatsapp:hover { transform: scale(1.06); }
.floating-whatsapp svg { width: 31px; height: 31px; }

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1.05s cubic-bezier(.22,.61,.36,1), transform 1.05s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes enterSlow {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes heroZoom {
  from { transform: scale(1.035); }
  to { transform: scale(1); }
}
@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateY(48px); opacity: 0; }
}

@media (max-width: 980px) {
  .topbar, .nav-links { display: none; }
  .nav { min-height: 86px; }
  .brand-logo, .site-header.is-scrolled .brand-logo { width: 108px; height: 84px; }
  .hero-content { padding-top: 144px; }
  .booking-strip, .editorial, .local { grid-template-columns: 1fr; }
  .editorial-media, .chapter-grid, .detail-grid, .masonry-grid, .selected-dates, .form-grid { grid-template-columns: 1fr; }
  .editorial-media .facade, .local img { height: 390px; }
  .featured-rail { grid-auto-columns: 82%; }
  .rail-item { height: 340px; }
  .masonry-grid { grid-auto-rows: 260px; }
  .gallery-tile.large, .gallery-tile.tall { grid-row: span 1; }
  .steps { grid-template-columns: 1fr; }
  .flow-actions { flex-direction: column; }
  .lightbox { padding: 22px; }
  .lightbox-nav { top: auto; bottom: 22px; transform: none; }
}
