/* ---------- Tokens ---------- */
:root {
  --cream: #f2e6c9;
  --peach: #f1d2ab;
  --khaki: #a9a26e;
  --ivory: #fdfaf1;
  --border-brown: #3d2b1c;
  --dark-brown: #24170f;
  --olive: #6f7a3e;
  --olive-light: #b9c491;
  --charcoal: #2a2119;

  --font-title: 'Roboto Slab', 'Georgia', serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: linear-gradient(160deg, var(--cream) 0%, var(--peach) 55%, var(--cream) 100%);
  overflow-x: hidden;
  position: relative;
}

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

/* ---------- Organic background blobs ---------- */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
  animation: drift 18s ease-in-out infinite;
}
.blob-1 {
  width: 260px; height: 220px;
  top: -60px; left: -80px;
  background: var(--khaki);
  animation-delay: 0s;
}
.blob-2 {
  width: 200px; height: 200px;
  bottom: 15%; right: -70px;
  background: var(--olive-light);
  animation-delay: 3s;
}
.blob-3 {
  width: 160px; height: 140px;
  top: 45%; left: -60px;
  background: var(--peach);
  opacity: 0.6;
  animation-delay: 6s;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -25px) scale(1.08); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 16s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,23,15,0.25) 0%, rgba(36,23,15,0.55) 65%, rgba(36,23,15,0.9) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 32px 20px 56px;
  width: 100%;
  text-align: center;
  color: #fdfaf1;
}
.hero-eyebrow {
  margin: 0 0 4px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.9;
}
.hero-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  transform: scaleX(0.96);
  margin: 0 0 18px;
  text-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.badge-zona {
  display: inline-block;
  background: var(--dark-brown);
  color: #fdfaf1;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  padding: 10px 22px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  animation: popIn 0.8s ease 0.3s backwards;
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(14px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(253,250,241,0.8);
  border-radius: 16px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 5px;
  height: 5px;
  background: #fdfaf1;
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 6px; opacity: 1; }
  70% { top: 22px; opacity: 0; }
  100% { top: 22px; opacity: 0; }
}

/* ---------- Cards ---------- */
main {
  position: relative;
  z-index: 1;
  padding: 26px 14px 10px;
  max-width: 720px;
  margin: 0 auto;
}
.card {
  margin-bottom: 26px;
}
.card-inner {
  background: var(--ivory);
  border: 2px solid var(--border-brown);
  border-radius: 14px;
  padding: 26px 20px;
  box-shadow: 0 10px 28px rgba(36,23,15,0.12);
}
.section-title {
  font-family: var(--font-title);
  color: var(--olive);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.5rem;
  margin: 0 0 18px;
  position: relative;
  padding-bottom: 10px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 3px;
  background: var(--olive-light);
  border-radius: 3px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Amenities ---------- */
.amenities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.amenities li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.amenities li:hover {
  background: rgba(169, 162, 110, 0.14);
  transform: translateX(4px);
}
.amenity-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--olive-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.amenity-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--dark-brown);
}
.amenities strong {
  display: block;
  font-weight: 700;
  color: var(--charcoal);
  font-size: 1.02rem;
  margin-bottom: 2px;
}
.amenities p {
  margin: 0;
  font-size: 0.9rem;
  color: #55493c;
  font-weight: 400;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--peach);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:active img,
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 8px 5px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #fdfaf1;
  background: linear-gradient(180deg, rgba(36,23,15,0) 0%, rgba(36,23,15,0.75) 100%);
  text-align: left;
}

/* ---------- Contacto ---------- */
.contacto-lead {
  margin: 0 0 18px;
  color: #55493c;
  font-size: 0.95rem;
}
.contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  background: #ffffff;
  border: 2px solid var(--olive);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(111, 122, 62, 0.25);
  background: #f7fbef;
}
.wa-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseIcon 2.4s ease-in-out infinite;
}
.wa-icon svg { width: 24px; height: 24px; fill: #fff; }
@keyframes pulseIcon {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.35); }
  50% { box-shadow: 0 0 0 8px rgba(37,211,102,0); }
}
.contact-text strong {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}
.contact-text small {
  color: var(--olive);
  font-weight: 500;
  font-size: 0.82rem;
}

.zona-block {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--dark-brown);
  color: #fdfaf1;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
}
.pin-icon { width: 20px; height: 20px; fill: var(--olive-light); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  text-align: center;
  padding: 70px 20px 26px;
  color: var(--charcoal);
  font-size: 0.85rem;
  overflow: hidden;
}
.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
}
.footer-wave path { fill: var(--olive-light); opacity: 0.55; }
.footer-flower {
  width: 46px;
  height: 46px;
  fill: var(--olive-light);
  margin-bottom: 10px;
  animation: spinSlow 22s linear infinite;
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- Floating WhatsApp button ---------- */
.fab-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
  z-index: 50;
  animation: fabPulse 2.6s ease-in-out infinite;
}
.fab-whatsapp svg { width: 30px; height: 30px; fill: #fff; }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(0,0,0,0.3), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 10px 24px rgba(0,0,0,0.3), 0 0 0 12px rgba(37,211,102,0); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 13, 8, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}
.lightbox.is-open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fdfaf1;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Responsive tweaks ---------- */
@media (min-width: 560px) {
  .hero-title { font-size: 3.4rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 820px) {
  main { padding-top: 40px; }
  .hero { min-height: 88vh; }
  .card-inner { padding: 40px 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
