:root {
  --bg: #fafaf7;
  --bg-alt: #f2f0ea;
  --ink: #0f0f0f;
  --ink-soft: #2a2a2a;
  --muted: #6b6b6b;
  --line: #e6e3db;
  --accent: #3b4a3b;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

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

.serif {
  font-family: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  color: var(--ink);
  padding: 14px var(--gutter);
  border-bottom-color: var(--line);
}

.brand { display: flex; align-items: center; }
.brand img {
  height: 56px;
  width: auto;
  display: block;
  filter: invert(1);
  transition: filter 0.3s ease, height 0.3s ease;
}
.site-header.scrolled .brand img {
  filter: invert(0);
  height: 44px;
}

@media (max-width: 920px) {
  .brand img { height: 44px; }
  .site-header.scrolled .brand img { height: 36px; }
}

.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav a:hover { opacity: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
  background: transparent;
  color: inherit;
}
.btn:hover { background: currentColor; }
.btn:hover span { color: var(--bg); }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-solid {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-solid:hover span { color: var(--bg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  background: url('images/hero.jpg') center/cover no-repeat;
  z-index: 1;
}
.hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.65) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) clamp(40px, 8vh, 100px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
}
.hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.hero h1 em { font-style: italic; }
.hero-meta {
  text-align: right;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  line-height: 1.8;
}
.hero-meta strong { font-weight: 500; }

.hero-eyebrow {
  position: absolute;
  top: 50%;
  left: var(--gutter);
  transform: rotate(-90deg) translateY(-50%);
  transform-origin: left top;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  z-index: 2;
  opacity: 0.8;
}

/* ============ SECTIONS ============ */
section { padding: clamp(80px, 12vh, 160px) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.section-head h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.section-head .lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ============ INTRO ============ */
.intro {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}
.intro-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.intro h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  margin-bottom: 28px;
  letter-spacing: -0.015em;
}
.intro p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.intro .eyebrow { margin-bottom: 24px; display: block; }

/* ============ ROOMS ============ */
.rooms {
  background: var(--bg-alt);
}
.rooms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.room {
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.room-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.room-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.room:hover .room-img img { transform: scale(1.04); }
.room-body { padding: 32px; }
.room-tag {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.room-tag .price {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 28px;
}
.room-tag .price small { font-size: 13px; color: var(--muted); font-family: 'Inter', sans-serif; }
.room h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 12px;
}
.room p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.room ul {
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.room ul li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.room ul li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--ink);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.service {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
  transition: background 0.2s;
}
.service:hover { background: var(--bg-alt); }
.service:nth-child(4n) { border-right: none; }
.service .icon {
  width: 28px; height: 28px;
  color: var(--accent);
}
.service h4 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.service p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ============ GALLERY ============ */
.gallery {
  background: var(--ink);
  color: var(--bg);
}
.gallery .section-head h2,
.gallery .section-head .lead { color: var(--bg); }
.gallery .section-head .lead { opacity: 0.7; }
.gallery .eyebrow { color: rgba(255,255,255,0.55); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}
.gallery-grid .g {
  overflow: hidden;
}
.gallery-grid .g img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.gallery-grid .g:hover img { transform: scale(1.05); }

.g-1 { grid-column: span 4; grid-row: span 2; }
.g-2 { grid-column: span 2; grid-row: span 1; }
.g-3 { grid-column: span 2; grid-row: span 1; }
.g-4 { grid-column: span 3; grid-row: span 2; }
.g-5 { grid-column: span 3; grid-row: span 2; }

/* ============ LOCATION ============ */
.location-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.location h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  margin-bottom: 32px;
  letter-spacing: -0.015em;
}
.location .km {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(80px, 12vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.location .km small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 16px;
}
.location-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.info-block .label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.info-block p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.map-frame {
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  overflow: hidden;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.6) contrast(0.95); }

/* ============ CTA / RESERVAS ============ */
.cta {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: clamp(100px, 16vh, 200px) 0;
}
.cta h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.98;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.cta p {
  font-size: 17px;
  opacity: 0.7;
  margin-bottom: 48px;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta .btn-primary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
  padding: 16px 32px;
  font-size: 14px;
}
.cta .btn-primary:hover { background: transparent; color: var(--bg); }
.cta .btn-primary:hover span { color: var(--bg); }
.cta .btn-ghost {
  background: transparent;
  color: var(--bg);
  border-color: rgba(255,255,255,0.3);
  padding: 16px 32px;
  font-size: 14px;
}
.cta .btn-ghost:hover { border-color: var(--bg); background: rgba(255,255,255,0.05); }
.cta .btn-ghost:hover span { color: var(--bg); }

.contact-line {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 80px);
  flex-wrap: wrap;
  font-size: 14px;
}
.contact-line .item { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.contact-line .label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.5; }
.contact-line a { font-size: 16px; }
.contact-line a:hover { opacity: 0.7; }

/* ============ FOOTER ============ */
footer {
  padding: 40px var(--gutter);
  border-top: 1px solid rgba(255,255,255,0.08);
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
footer .socials { display: flex; gap: 20px; }
footer a:hover { color: var(--bg); }

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .nav { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .intro-grid, .rooms-grid, .location-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(4n) { border-right: 1px solid var(--line); }
  .service:nth-child(2n) { border-right: none; }
  .hero-content { grid-template-columns: 1fr; align-items: end; gap: 24px; }
  .hero-meta { text-align: left; }
  .hero-eyebrow { display: none; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .g-1, .g-2, .g-3, .g-4, .g-5 { grid-column: span 2; grid-row: span 1; }
  .g-1 { grid-row: span 2; }
  .location-info { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
  .service { border-right: none !important; }
  .room-body { padding: 24px; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
