/* ==========================================================
   Quinta Vista Hermosa — estilos
   Paleta tomada del logo (café) y del material previo (oro / oliva)
   ========================================================== */
:root {
  --cafe: #6b4e07;
  --cafe-700: #4f3a06;
  --olive: #2f2a0e;
  --olive-900: #1f1c09;
  --oro: #f2c46d;
  --oro-200: #f8e3b8;
  --crema: #f6f1e6;
  --crema-2: #ede5d3;
  --ink: #1f1a0e;
  --muted: #6d6656;
  --line: rgba(31, 26, 14, 0.12);

  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 22px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.8em 1.35em; border-radius: 999px;
  font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: rgba(255, 255, 255, 0.92); color: var(--ink); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12); }
.btn-gold { background: var(--oro); color: var(--olive); }
.btn-dark { background: var(--olive); color: var(--crema); }
.btn-dark:hover { background: var(--cafe); }
.btn-outline { border: 1px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }

.round-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font-size: 18px; cursor: pointer; transition: background 0.3s, color 0.3s;
}
.round-btn:hover { background: var(--olive); color: var(--crema); }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 14px; color: #fff;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--oro); box-shadow: 0 0 0 4px rgba(242, 196, 109, 0.3); }

.eyebrow {
  display: flex; gap: 14px; align-items: baseline;
  font-size: 14px; letter-spacing: 0.04em; color: var(--muted);
  margin-bottom: 28px;
}
.eyebrow span { font-family: var(--serif); font-style: italic; color: var(--cafe); }
.eyebrow--light { color: rgba(246, 241, 230, 0.6); }
.eyebrow--light span { color: var(--oro); }

.h2 { font-size: clamp(34px, 5.2vw, 68px); line-height: 1.05; max-width: 16ch; }
.h2 em { color: var(--cafe); }

.link-arrow { text-decoration: none; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--gutter);
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
.site-header.is-solid {
  background: rgba(31, 28, 9, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.brand img { height: 52px; width: auto; }
.nav {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav a {
  padding: 8px 14px; border-radius: 999px;
  color: rgba(255, 255, 255, 0.92); text-decoration: none; font-size: 14px;
  transition: background 0.25s;
}
.nav a:hover { background: rgba(255, 255, 255, 0.16); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px); cursor: pointer; position: relative;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 100px var(--gutter) 40px;
  background: var(--olive-900);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) {
  font-family: var(--serif); font-size: 38px; color: var(--crema); text-decoration: none;
  padding: 4px 0;
}
.mobile-menu .btn { align-self: flex-start; margin-top: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 210vh; background: var(--olive-900); }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  will-change: transform, opacity, filter;
}
/* Intro: llega desenfocada y se enfoca */
.hero-img--a {
  transform: scale(calc(1.18 + var(--p, 0) * 0.35));
  filter: blur(18px) saturate(1.1);
  transition: filter 1.8s var(--ease), transform 1.8s var(--ease);
}
.is-loaded .hero-img--a { filter: blur(0) saturate(1.1); transform: scale(calc(1.04 + var(--p, 0) * 0.35)); }
.is-settled .hero-img--a { transition: filter 1.8s var(--ease), transform 0.1s linear; }
.hero-img--b {
  opacity: var(--pb, 0);
  transform: scale(calc(1.25 - var(--pb, 0) * 0.2));
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.45) 75%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 30%, transparent 65%, rgba(31, 28, 9, 0.7));
}

.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 80px var(--gutter) 60px;
  transform: translateY(calc(var(--p, 0) * -140px));
  opacity: calc(1 - var(--p, 0) * 2.2);
}
.hero-pill { opacity: 0; transform: translateY(10px); transition: all 1s var(--ease) 0.4s; }
.is-loaded .hero-pill { opacity: 1; transform: none; }

.hero-title {
  margin-top: 28px;
  font-size: clamp(48px, 9vw, 124px); line-height: 0.98; font-weight: 500; letter-spacing: -0.035em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .w { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.hero-title .serif { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--oro-200); }
.is-loaded .hero-title .w { transform: none; }

.hero-sub {
  margin-top: 22px; max-width: 34ch; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, 0.88);
  opacity: 0; transition: opacity 1.2s var(--ease) 1.1s;
}
.hero-stats {
  list-style: none; margin: 34px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  font-size: 15px; color: rgba(255, 255, 255, 0.85);
  opacity: 0; transition: opacity 1.2s var(--ease) 1.35s;
}
.hero-stats b { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--oro); margin-right: 4px; }
.is-loaded .hero-sub, .is-loaded .hero-stats { opacity: 1; }

.hero-hint {
  position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2; text-align: center;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75);
  opacity: calc(1 - var(--p, 0) * 4);
  animation: hint 2.4s var(--ease) infinite;
}
@keyframes hint { 50% { transform: translateY(6px); } }

/* ---------- 01 Intro ---------- */
.intro { background: var(--crema); }
.intro-text {
  font-size: clamp(28px, 4.2vw, 56px); line-height: 1.18; letter-spacing: -0.025em; font-weight: 500;
  max-width: 22ch;
}
.intro-text .word { opacity: 0.14; transition: opacity 0.25s linear; }
.intro-text .word.on { opacity: 1; }
.inline-pics { display: inline-flex; vertical-align: middle; margin: 0 0.25em; }
.inline-pics img {
  width: 1.15em; height: 1.15em; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--crema); margin-left: -0.32em;
}
.inline-pics img:first-child { margin-left: 0; }

/* ---------- 02 Instalaciones ---------- */
.amenities { background: var(--crema); padding-top: 0; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.amenity-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.amenity {
  display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 24px;
  padding: 32px 0; border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease);
}
.amenity:hover { padding-left: 14px; }
.amenity-num { font-family: var(--serif); font-size: clamp(56px, 7vw, 92px); line-height: 1; color: var(--cafe); }
.amenity h3 { font-size: clamp(24px, 3vw, 36px); }
.amenity p { color: var(--muted); margin-top: 4px; }
.amenity-tag {
  font-size: 13px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
}
.amenity-preview {
  position: fixed; top: 0; left: 0; z-index: 30; width: 260px; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 16px; pointer-events: none; opacity: 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transition: opacity 0.3s, transform 0.12s linear;
}
.amenity-preview.show { opacity: 1; }

/* ---------- Galería ---------- */
.gallery { background: var(--crema-2); }
.gallery-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 18px;
}
.g { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.g:hover img { transform: scale(1.05); }
.g--wide { aspect-ratio: 16 / 10; }
.g--tall { grid-row: span 2; }
.g figcaption {
  position: absolute; left: 16px; bottom: 16px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px);
}

/* ---------- 03 Alrededores ---------- */
.around { background: var(--crema); }
.carousel-ctrl { display: flex; gap: 10px; }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(380px, 82vw); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))) 24px;
  scroll-padding: 0 max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
  scrollbar-width: none; outline: none;
}
.carousel::-webkit-scrollbar { display: none; }
.card {
  scroll-snap-align: start; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(47, 42, 14, 0.14); }
.card-img { aspect-ratio: 3 / 2; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-kicker { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cafe); }
.card h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.card a { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--cafe); }
.card a:hover { text-decoration: underline; }

/* ---------- 04 Normas ---------- */
.rules { background: var(--olive); color: var(--crema); }
.rules .h2 em { color: var(--oro); }
.rules-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.times { display: flex; gap: 14px; margin: 40px 0 28px; }
.times div {
  flex: 1; padding: 20px 22px; border-radius: 18px;
  background: rgba(246, 241, 230, 0.06); border: 1px solid rgba(246, 241, 230, 0.12);
}
.times span { display: block; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(246, 241, 230, 0.6); }
.times b { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4vw, 48px); color: var(--oro); }
.times small { font-family: var(--sans); font-size: 15px; color: var(--crema); }
.rules-note { color: rgba(246, 241, 230, 0.72); max-width: 46ch; }

.accordion details { border-bottom: 1px solid rgba(246, 241, 230, 0.14); }
.accordion details:first-child { border-top: 1px solid rgba(246, 241, 230, 0.14); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px;
  padding: 22px 36px 22px 0; position: relative; font-size: 19px; font-weight: 500;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary span { font-family: var(--serif); font-style: italic; color: var(--oro); font-size: 16px; }
.accordion summary::after {
  content: "+"; position: absolute; right: 4px; font-size: 24px; font-weight: 300; color: var(--oro);
  transition: transform 0.4s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details p { padding: 0 0 24px 40px; color: rgba(246, 241, 230, 0.75); }
.signature { margin-top: 28px; font-family: var(--serif); font-style: italic; color: rgba(246, 241, 230, 0.6); }

/* ---------- 05 Ubicación ---------- */
.location { background: var(--crema); }
.location-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.location-copy > p.reveal { margin-top: 22px; color: var(--muted); max-width: 42ch; }
.location-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--crema-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: sepia(0.25) saturate(0.9); }

/* ---------- Footer ---------- */
.site-footer { background: var(--olive-900); color: rgba(246, 241, 230, 0.75); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 40px; align-items: start; }
.footer-logo { width: 220px; height: auto; }
.footer-nav, .footer-social { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-social a { text-decoration: none; }
.footer-nav a:hover, .footer-social a:hover { color: var(--oro); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(246, 241, 230, 0.1); font-size: 13px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; z-index: 51; }
  .brand { position: relative; z-index: 51; }
  .brand img { height: 44px; }
  .rules-grid, .location-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { height: 180vh; }
  .amenity { grid-template-columns: 72px 1fr; gap: 16px; padding: 24px 0; }
  .amenity-tag { display: none; }
  .gallery-grid { grid-template-columns: 1fr; }
  .g--tall { grid-row: auto; aspect-ratio: 3 / 4; }
  .times { flex-direction: column; }
  .accordion details p { padding-left: 0; }
  .carousel-ctrl { display: none; }
}
@media (hover: none) { .amenity-preview { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .intro-text .word { opacity: 1; }
}
