:root {
  --green: #3f6b4a;
  --green-dark: #2c4d35;
  --terra: #c96b3f;
  --terra-dark: #a9552f;
  --cream: #faf6ee;
  --cream-2: #f2ead9;
  --ink: #2a2620;
  --muted: #6f665a;
  --wa: #25d366;
  --wa-dark: #1da851;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(44, 77, 53, 0.12);
  --font-title: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-title); font-weight: 600; line-height: 1.15; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terra);
  margin-bottom: 0.5rem;
}

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: rgba(250, 246, 238, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(63, 107, 74, 0.12);
}
.nav__brand { font-family: var(--font-title); font-weight: 600; font-size: 1.15rem; color: var(--green-dark); text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: 1.4rem; }
.nav__links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav__links a:hover { color: var(--terra); }
.nav__cta {
  background: var(--green); color: #fff !important;
  padding: 0.5rem 1.1rem; border-radius: 999px;
}
.nav__cta:hover { background: var(--green-dark); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  padding: 2rem 1.5rem;
  background:
    linear-gradient(120deg, rgba(44,77,53,0.78), rgba(44,77,53,0.45)),
    url("images/hero.jpg") center/cover no-repeat;
  color: #fff;
}
.hero__content { max-width: 720px; margin: 0 auto; width: 100%; position: relative; z-index: 2; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 700; opacity: 0.92; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 1.2rem; }
.hero__sub { font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 560px; margin-bottom: 2rem; opacity: 0.96; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__verified {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.5rem; padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.45);
  border-radius: 999px; color: #fff; text-decoration: none;
  font-size: 0.9rem; font-weight: 700; backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}
.hero__verified:hover { background: rgba(255,255,255,0.28); }

/* ===== BOTONES ===== */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s ease;
  cursor: pointer; border: none; font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--terra); color: #fff; }
.btn--primary:hover { background: var(--terra-dark); }
.btn--whatsapp { background: var(--wa); color: #fff; }
.btn--whatsapp:hover { background: var(--wa-dark); }
.btn--ghost { background: transparent; color: var(--green-dark); border: 2px solid var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; }

/* ===== QUICK STATS ===== */
.quick {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem;
  max-width: 1000px; margin: -3rem auto 0; padding: 1.8rem 1.5rem;
  position: relative; z-index: 5;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  width: calc(100% - 3rem);
}
.quick__item { display: flex; flex-direction: column; align-items: center; min-width: 90px; }
.quick__item span { font-size: 1.6rem; }
.quick__item strong { font-family: var(--font-title); font-size: 1.5rem; color: var(--green-dark); }
.quick__item small { color: var(--muted); font-size: 0.85rem; }

/* ===== SECCIONES ===== */
.section { max-width: 1080px; margin: 0 auto; padding: 4.5rem 1.5rem; }
.section--alt { background: var(--cream-2); max-width: none; }
.section--alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.section__head { text-align: center; margin-bottom: 2.8rem; }
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--green-dark); }
.section__lead, .section__head p:not(.eyebrow) { color: var(--muted); max-width: 560px; margin: 0.6rem auto 0; }

/* ===== CARDS ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.card {
  background: #fff; border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow); transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-4px); }
.card__icon { font-size: 2rem; margin-bottom: 0.6rem; }
.card h3 { color: var(--green-dark); margin-bottom: 0.4rem; font-size: 1.25rem; }
.card p { color: var(--muted); }

/* ===== PREDIO ===== */
.predio { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.predio__list { list-style: none; display: grid; gap: 0.9rem; }
.predio__list li { font-size: 1.1rem; background: #fff; padding: 0.9rem 1.2rem; border-radius: 12px; box-shadow: 0 4px 12px rgba(44,77,53,0.06); }
.predio__photo {
  min-height: 320px; border-radius: var(--radius);
  background: url("images/parque.jpg") center/cover no-repeat;
  box-shadow: var(--shadow);
}

/* ===== PRECIOS ===== */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.price {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center;
  box-shadow: var(--shadow); border: 2px solid transparent;
}
.price--featured { border-color: var(--terra); transform: scale(1.03); }
.price__tag { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--terra); font-size: 0.85rem; }
.price__amount { font-family: var(--font-title); font-size: 2.2rem; color: var(--green-dark); margin: 0.4rem 0; }
.price__note { color: var(--muted); font-size: 0.95rem; }
.prices__foot { text-align: center; color: var(--muted); margin-top: 1.8rem; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ===== CALENDARIO ===== */
.calendar {
  background: #fff; border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); max-width: 820px; margin: 0 auto;
}
.calendar__loading { text-align: center; color: var(--muted); padding: 2rem; }
.cal { }
.cal__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal__nav button {
  background: var(--cream-2); border: none; border-radius: 10px; cursor: pointer;
  width: 40px; height: 40px; font-size: 1.2rem; color: var(--green-dark); font-weight: 700;
}
.cal__nav button:hover { background: var(--green); color: #fff; }
.cal__title { font-family: var(--font-title); font-size: 1.3rem; color: var(--green-dark); text-transform: capitalize; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__dow { text-align: center; font-weight: 700; color: var(--muted); font-size: 0.8rem; padding: 0.4rem 0; text-transform: uppercase; }
.cal__day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-weight: 600; background: #f4f9f5; color: var(--ink);
}
.cal__day--empty { background: transparent; }
.cal__day--busy { background: var(--terra); color: #fff; text-decoration: line-through; }
.cal__day--past { opacity: 0.35; }
.cal__day--today { outline: 2px solid var(--green); }
.calendar__legend { display: flex; justify-content: center; gap: 1.6rem; margin-top: 1.2rem; color: var(--muted); font-size: 0.9rem; }
.calendar__legend span { display: flex; align-items: center; gap: 0.4rem; }
.dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.dot--free { background: #f4f9f5; border: 1px solid #cfe3d4; }
.dot--busy { background: var(--terra); }

/* ===== GALERÍA ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 0.8rem;
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 14px; box-shadow: var(--shadow);
  display: block;
}
.gallery__item--wide { grid-column: span 2; }
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery__item--wide { grid-column: span 2; }
}

/* ===== VIDEOS ===== */
.videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.videos video {
  width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px; box-shadow: var(--shadow);
  background: #000; display: block; object-fit: cover;
}
@media (max-width: 720px) {
  .videos { grid-template-columns: 1fr; }
}

/* ===== MAPA ===== */
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }
.map__link { text-align: center; margin-top: 1rem; }
.map__link a { color: var(--green-dark); font-weight: 700; text-decoration: none; }
.map__link a:hover { text-decoration: underline; }

/* ===== CONTACTO ===== */
.contact {
  text-align: center; padding: 5rem 1.5rem;
  background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff;
}
.contact h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.6rem; }
.contact p { opacity: 0.94; margin-bottom: 2rem; }
.contact__links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.contact .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.6); }
.contact .btn--ghost:hover { background: #fff; color: var(--green-dark); }

/* ===== FOOTER ===== */
.footer { text-align: center; padding: 2.5rem 1.5rem; background: var(--ink); color: #d8cfc0; }
.footer__small { font-size: 0.85rem; opacity: 0.7; margin-top: 0.3rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
  .nav__links { gap: 0.8rem; }
  .nav__links a:not(.nav__cta) { display: none; }
  .predio { grid-template-columns: 1fr; }
  .quick { gap: 1rem; }
}
