/* =====================================================
   FINCA VILLA JUANA — Design tokens
   Paleta inspirada en la guadua, el ladrillo y el oro
   del logo real de la finca, en una versión refinada.
   ===================================================== */
:root {
  --verde-guadua: #16311F;
  --verde-guadua-2: #1F4530;
  --ladrillo: #A6472E;
  --oro: #B9924A;
  --oro-claro: #D8B978;
  --crema: #F6F2E8;
  --crema-2: #EFE8D8;
  --azul-piscina: #2C6E7F;
  --tinta: #1C1A16;
  --tinta-suave: #4A463D;
  --blanco: #FFFFFF;

  --font-display: "Fraunces", serif;
  --font-body: "Work Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container-w: 1180px;
  --radius: 4px;
  --shadow-soft: 0 20px 40px -20px rgba(28, 26, 22, 0.35);
  --ease: cubic-bezier(.22,.68,0,1);
}

/* =================== RESET =================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--verde-guadua); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 9999;
  background: var(--oro); color: var(--tinta); padding: 12px 20px;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--oro);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }

/* =================== TYPE HELPERS =================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ladrillo);
  margin: 0 0 12px;
  display: block;
}
.eyebrow--light { color: var(--oro-claro); }

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: 20px;
}
.section-title--light { color: var(--crema); }

.section-lead {
  font-size: 1.05rem;
  color: var(--tinta-suave);
  max-width: 62ch;
  margin-bottom: 8px;
}
.section-lead--light { color: rgba(246,242,232,0.78); }

.section { padding: 96px 0; }

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--oro); color: var(--tinta); box-shadow: var(--shadow-soft); }
.btn--gold:hover { background: var(--oro-claro); }
.btn--ghost-light { border-color: rgba(246,242,232,0.55); color: var(--crema); }
.btn--ghost-light:hover { background: rgba(246,242,232,0.1); }
.btn--outline { border-color: var(--verde-guadua); color: var(--verde-guadua); }
.btn--outline:hover { background: var(--verde-guadua); color: var(--crema); }
.btn--block { width: 100%; }
.icon-wa { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* =================== NAV =================== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-nav.is-scrolled {
  background: rgba(22, 49, 31, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: var(--container-w); margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand-mark {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--oro); color: var(--verde-guadua);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.nav-brand-text {
  font-family: var(--font-display); font-size: 1.2rem; color: var(--crema); letter-spacing: 0.01em;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.nav-cta) {
  color: rgba(246,242,232,0.85); font-size: 0.92rem; font-weight: 500;
  position: relative; padding-bottom: 3px;
}
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--oro);
  transition: right 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { right: 0; }
.nav-cta {
  background: var(--oro); color: var(--tinta) !important; padding: 10px 20px;
  border-radius: var(--radius); font-weight: 600; font-size: 0.88rem;
  transition: background 0.25s var(--ease);
}
.nav-cta:hover { background: var(--oro-claro); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--crema); transition: all 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =================== HERO =================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--verde-guadua);
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,30,20,0.55) 0%, rgba(15,30,20,0.4) 45%, rgba(15,30,20,0.85) 100%);
}
.hero-bamboo {
  position: absolute; left: 0; right: 0; bottom: -2px; height: 140px; z-index: 2; pointer-events: none;
}
.hero-bamboo svg { width: 100%; height: 100%; }

.hero-content {
  position: relative; z-index: 3; text-align: center; color: var(--crema);
  padding: 0 24px; max-width: 780px;
}
.hero-title {
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  font-style: italic; font-weight: 500;
  color: var(--crema);
  line-height: 0.95;
  margin: 4px 0 20px;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(246,242,232,0.85);
  max-width: 56ch; margin: 0 auto 34px;
}
.hero-stats {
  display: flex; justify-content: center; gap: 36px; margin-bottom: 40px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em;
  color: rgba(246,242,232,0.75);
}
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-stat span { font-family: var(--font-display); font-size: 1.9rem; color: var(--oro-claro); font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 2px solid rgba(246,242,232,0.6); border-radius: 20px;
}
.hero-scroll span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: var(--oro-claro);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 22px; }
}

/* =================== DIVIDERS (signature) =================== */
.divider--brick {
  height: 26px;
  background-image: repeating-linear-gradient(90deg, var(--ladrillo) 0 46px, var(--crema) 46px 50px),
                     repeating-linear-gradient(90deg, var(--ladrillo) 23px 69px, var(--crema) 69px 73px);
  background-size: 100% 12px;
  background-position: 0 0, 0 12px;
  background-repeat: repeat-x;
  opacity: 0.85;
}
.divider--flip { transform: scaleY(-1); }

/* =================== INTRO / SPLIT =================== */
.section--intro { background: var(--crema); }
.split-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px;
}
.split-card {
  background: var(--blanco); border: 1px solid var(--crema-2);
  padding: 40px 34px; border-radius: var(--radius);
  transition: transform 0.3s var(--ease);
}
.split-card:hover { transform: translateY(-4px); }
.split-card h3 { font-size: 1.7rem; font-style: italic; margin: 10px 0 12px; }
.split-card p { color: var(--tinta-suave); }
.split-card-tag {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ladrillo); border: 1px solid var(--ladrillo); padding: 4px 10px; border-radius: 999px;
}
.split-card--dark { background: var(--verde-guadua); }
.split-card--dark h3, .split-card--dark p { color: var(--crema); }
.split-card--dark p { color: rgba(246,242,232,0.75); }
.split-card-tag--gold { color: var(--oro-claro); border-color: var(--oro-claro); }

/* =================== GALLERY =================== */
.section--gallery { background: var(--crema); padding-bottom: 60px; }
.gallery-grid {
  max-width: var(--container-w); margin: 44px auto 0; padding: 0 24px;
  columns: 3 220px; column-gap: 14px;
}
.gallery-item {
  display: block; width: 100%; margin: 0 0 14px; padding: 0; border: none; background: none;
  border-radius: var(--radius); overflow: hidden; break-inside: avoid;
  position: relative;
}
.gallery-item img {
  width: 100%; height: auto; display: block;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35));
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }

/* =================== AMENITIES =================== */
.section--amenities { background: var(--crema-2); }
.amenities-grid {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: rgba(28,26,22,0.08);
  border: 1px solid rgba(28,26,22,0.08);
}
.amenity {
  background: var(--crema-2); padding: 34px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; font-size: 0.88rem; font-weight: 500; color: var(--verde-guadua);
  transition: background 0.25s var(--ease);
}
.amenity:hover { background: var(--blanco); }
.amenity svg {
  width: 32px; height: 32px; fill: none; stroke: var(--ladrillo); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* =================== ROOMS =================== */
.section--rooms { background: var(--crema); }
.rooms-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.room-card { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-soft); }
.room-card img { width: 100%; height: 320px; object-fit: cover; }
.room-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px;
  background: linear-gradient(0deg, rgba(15,20,15,0.75), transparent);
  color: var(--crema); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em;
}

/* =================== LOCATION =================== */
.section--location { background: var(--crema-2); }
.location-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.location-map { height: 420px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.location-map iframe { width: 100%; height: 100%; }
.location-text .btn { margin-top: 12px; }

/* =================== BOOKING / CALENDAR =================== */
.section--booking { background: var(--verde-guadua); background-image: radial-gradient(circle at 85% 10%, var(--verde-guadua-2), var(--verde-guadua) 60%); }
.booking-panel {
  margin-top: 44px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px;
  background: rgba(246,242,232,0.04);
  border: 1px solid rgba(246,242,232,0.12);
  border-radius: 6px; padding: 40px;
}
.calendar-wrap { color: var(--crema); }
.calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.calendar-header h3 { color: var(--crema); font-size: 1.15rem; font-style: italic; text-transform: capitalize; }
.calendar-nav {
  background: none; border: 1px solid rgba(246,242,232,0.3); color: var(--crema);
  width: 34px; height: 34px; border-radius: 50%; font-size: 1.1rem; line-height: 1;
  transition: background 0.2s var(--ease);
}
.calendar-nav:hover { background: rgba(246,242,232,0.12); }
.calendar-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr); text-align: center;
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--oro-claro); margin-bottom: 6px; letter-spacing: 0.04em;
}
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 4px; font-family: var(--font-mono); font-size: 0.82rem;
  background: rgba(246,242,232,0.06); color: rgba(246,242,232,0.85);
  border: none; transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.cal-day:hover:not(.cal-day--busy):not(.cal-day--empty) { background: rgba(246,242,232,0.16); }
.cal-day--empty { background: none; cursor: default; }
.cal-day--busy { background: rgba(166,71,46,0.55); color: rgba(246,242,232,0.5); cursor: not-allowed; text-decoration: line-through; }
.cal-day--selected { background: var(--oro); color: var(--tinta); font-weight: 600; }
.cal-day--today { box-shadow: inset 0 0 0 1px var(--oro-claro); }
.calendar-legend { display: flex; gap: 18px; margin-top: 16px; font-size: 0.78rem; color: rgba(246,242,232,0.7); flex-wrap: wrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot--free { background: rgba(246,242,232,0.3); }
.dot--busy { background: var(--ladrillo); }
.dot--selected { background: var(--oro); }
.calendar-status { margin-top: 14px; font-size: 0.8rem; color: rgba(246,242,232,0.55); font-family: var(--font-mono); }

.booking-form { display: flex; flex-direction: column; gap: 6px; }
.booking-form label {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--oro-claro); margin-top: 14px;
}
.booking-form input, .booking-form select {
  background: rgba(246,242,232,0.08); border: 1px solid rgba(246,242,232,0.25);
  color: var(--crema); padding: 12px 14px; border-radius: 4px; font-family: var(--font-body); font-size: 0.95rem;
}
.booking-form input::placeholder { color: rgba(246,242,232,0.4); }
.booking-form input:focus, .booking-form select:focus { border-color: var(--oro); }
.booking-form select option { color: var(--tinta); }
.booking-selected-dates { margin-top: 18px; font-size: 0.85rem; color: rgba(246,242,232,0.75); }
.booking-selected-dates strong { color: var(--oro-claro); }
.booking-form .btn { margin-top: 20px; }

/* =================== RULES ACCORDION =================== */
.section--rules { background: var(--crema); }
.rules-accordion { margin-top: 40px; max-width: 780px; }
.rules-accordion details {
  border-bottom: 1px solid var(--crema-2); padding: 18px 0;
}
.rules-accordion summary {
  cursor: pointer; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  color: var(--verde-guadua); list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.rules-accordion summary::-webkit-details-marker { display: none; }
.rules-accordion summary::after {
  content: "+"; font-family: var(--font-mono); color: var(--ladrillo); font-size: 1.3rem;
  transition: transform 0.25s var(--ease);
}
.rules-accordion details[open] summary::after { transform: rotate(45deg); }
.rules-accordion p { margin-top: 12px; color: var(--tinta-suave); max-width: 68ch; }

/* =================== FOOTER =================== */
.site-footer { background: var(--tinta); color: rgba(246,242,232,0.8); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand p { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--crema); margin-top: 12px; }
.footer-address { font-family: var(--font-body); font-style: normal !important; font-size: 0.85rem !important; color: rgba(246,242,232,0.55) !important; margin-top: 6px !important; }
.nav-brand-mark--footer { background: var(--oro); color: var(--tinta); }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-links h4, .footer-contact h4 {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--oro-claro); margin-bottom: 4px;
}
.footer-links a, .footer-contact a { font-size: 0.92rem; color: rgba(246,242,232,0.78); }
.footer-links a:hover, .footer-contact a:hover { color: var(--oro-claro); }
.footer-bottom {
  border-top: 1px solid rgba(246,242,232,0.12);
  padding: 20px 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 0.8rem; color: rgba(246,242,232,0.5); max-width: var(--container-w); margin: 0 auto;
}
.footer-bottom a { color: var(--oro-claro); font-weight: 600; }

/* =================== WHATSAPP FLOAT =================== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 400;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,0.5);
  animation: waPulse 2.6s infinite;
}
.wa-float svg { width: 30px; height: 30px; fill: var(--blanco); }
@keyframes waPulse {
  0% { box-shadow: 0 10px 26px -8px rgba(0,0,0,0.5), 0 0 0 0 rgba(37,211,102,0.55); }
  70% { box-shadow: 0 10px 26px -8px rgba(0,0,0,0.5), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 26px -8px rgba(0,0,0,0.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* =================== LIGHTBOX =================== */
.lightbox {
  position: fixed; inset: 0; z-index: 900; background: rgba(15,15,12,0.94);
  display: none; align-items: center; justify-content: center; flex-direction: column;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 78vh; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.lightbox-caption { color: rgba(246,242,232,0.75); margin-top: 16px; font-family: var(--font-mono); font-size: 0.85rem; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; background: none; border: none;
  color: var(--crema); font-size: 2.2rem; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(246,242,232,0.1); border: none; color: var(--crema);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem;
}
.lightbox-nav:hover { background: rgba(246,242,232,0.2); }
.lightbox-nav--prev { left: 20px; }
.lightbox-nav--next { right: 20px; }

/* =================== SCROLL REVEAL =================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 980px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; width: min(320px, 84vw); height: 100vh;
    background: var(--verde-guadua); flex-direction: column; align-items: flex-start;
    padding: 100px 32px 40px; gap: 26px; transition: right 0.35s var(--ease);
    box-shadow: -20px 0 40px rgba(0,0,0,0.3);
  }
  .nav-links.is-open { right: 0; }
  .nav-toggle { display: flex; }
  .nav-cta { margin-top: 10px; }

  .split-cards { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: repeat(3, 1fr); }
  .rooms-grid { grid-template-columns: 1fr 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .location-map { height: 340px; }
  .booking-panel { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2 220px; }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero-stats { gap: 22px; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .rooms-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .booking-panel { padding: 26px 20px; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}
