/* ===== Design tokens ===== */
:root {
  --sand: #F7F3EA;
  --sand-alt: #EFE6D3;
  --ink: #1B2320;
  --deep: #123024;
  --deep-2: #0B211A;
  --green: #2FAE4E;
  --green-dark: #1B7A34;
  --gold: #F6C21A;
  --sky: #1E93D8;
  --sky-dark: #135E8A;
  --earth: #C1673B;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 30px -12px rgba(18, 48, 36, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(18, 48, 36, 0.4);
  --max: 1180px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

.h-light { color: var(--white); }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 999;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--green-dark);
  margin: 0 0 0.6em;
}
.eyebrow-light { color: var(--gold); }

.lead {
  font-size: 1.08rem;
  color: #3f4a45;
  max-width: 50ch;
}
.lead-light { color: rgba(255,255,255,0.85); }

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.4em 0;
  display: grid;
  gap: 0.7em;
}
.check-list-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: none;
  gap: 0.9em 2em;
}
.check-list li {
  padding-left: 1.8em;
  position: relative;
  color: #33403b;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1.05em;
  height: 1.05em;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.18;
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 0.32em;
  top: 0.55em;
  width: 0.5em;
  height: 0.3em;
  border-left: 2px solid var(--green-dark);
  border-bottom: 2px solid var(--green-dark);
  transform: rotate(-45deg);
}

.fine-print {
  font-size: 0.82rem;
  color: #6b756f;
  margin-top: 1.2em;
}

.hero-presents {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  margin: 0 0 0.8em;
}

.badge-pill {
  display: inline-block;
  background: rgba(255,255,255,0.92);
  color: var(--deep);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  margin-bottom: 1em;
  box-shadow: var(--shadow);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  justify-content: center;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1em 1.9em; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-whatsapp-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-whatsapp-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline {
  background: transparent;
  border-color: var(--deep);
  color: var(--deep);
}
.btn-outline:hover { background: rgba(18,48,36,0.06); }

.btn-outline-light {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
  backdrop-filter: blur(3px);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.22); }

.ico-wa { flex-shrink: 0; }

/* ===== Announcement bar ===== */
.announce {
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  color: var(--white);
}
.announce-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  font-size: 0.86rem;
}
.announce p { margin: 0; flex: 1 1 auto; }
.announce-cta {
  background: rgba(255,255,255,0.18);
  padding: 0.4em 1em;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.announce-cta:hover { background: rgba(255,255,255,0.3); }
.announce-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 6px;
}
.announce.is-hidden { display: none; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(18, 48, 36, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--deep);
  font-weight: 500;
  white-space: nowrap;
}
.brand-text strong { font-weight: 700; color: var(--sky-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a:not(.btn) {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  opacity: 0.85;
}
.nav-links a:not(.btn):hover { opacity: 1; color: var(--green-dark); }
.nav-cta { padding: 0.6em 1.2em; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--deep);
  display: block;
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 110px;
  padding-bottom: 90px;
  color: var(--white);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,33,26,0.82) 0%, rgba(11,33,26,0.62) 45%, rgba(11,33,26,0.88) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-inner h1 {
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.hero-sub {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.88);
  max-width: 54ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 1.6em 0 2.4em;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 1.6em;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.stat {
  display: flex;
  flex-direction: column;
  min-width: 160px;
}
.stat-number, .stat-suffix {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold);
  display: inline;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
}
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%;
  height: 60px;
  z-index: 1;
}

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--sand-alt); }
.section-dark {
  background: linear-gradient(135deg, var(--deep), var(--deep-2));
  color: var(--white);
}
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head .lead { max-width: 60ch; margin-left: auto; margin-right: auto; }

.section-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ===== Photo grid (proyecto) ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 2em 0;
}
.photo-grid-3 { grid-template-columns: repeat(3, 1fr); }
.photo-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.photo-card img { width: 100%; height: 280px; object-fit: cover; }
.photo-card figcaption {
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--deep);
}

/* ===== Stat cards (bicentenario) ===== */
.stat-cards {
  display: grid;
  gap: 18px;
}
.stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-card-number {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold);
}
.stat-card-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}

/* ===== Tour / lead form ===== */
.tour-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.lead-form {
  display: grid;
  gap: 12px;
  background: var(--sand-alt);
  padding: 24px;
  border-radius: var(--radius);
}
.lead-form label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--deep);
}
.lead-form input, .lead-form select {
  padding: 0.75em 1em;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(18,48,36,0.18);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}
.lead-form input:focus, .lead-form select:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
.lead-form-alt {
  font-size: 0.8rem;
  color: #4a5651;
  text-align: center;
  margin: 4px 0 0;
}
.lead-form-alt a { color: var(--sky-dark); font-weight: 700; }

/* ===== Lot cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lot-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(18,48,36,0.06);
  position: relative;
  display: flex;
  flex-direction: column;
}
.lot-card-featured {
  border: 2px solid var(--gold);
  transform: translateY(-8px);
}
.lot-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(47, 174, 78, 0.12);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  margin-bottom: 14px;
}
.lot-tag-gold { background: rgba(246, 194, 26, 0.22); color: #8a6a1e; }
.lot-icon { display: inline-flex; margin-bottom: 10px; }
.lot-size {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sky-dark);
  margin-bottom: 16px;
}
.lot-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: #33403b;
}
.lot-features li { padding-left: 1.4em; position: relative; }
.lot-features li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ===== Benefits ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.benefit {
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.benefit-icon {
  display: inline-flex;
  padding: 10px;
  background: rgba(47, 174, 78, 0.1);
  border-radius: 12px;
  margin-bottom: 14px;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item img, .gallery-svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item-photo { aspect-ratio: 4/3; display: flex; flex-direction: column; }
.gallery-item-photo img { flex: 1 1 auto; min-height: 0; }
.gallery-item figcaption {
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep);
}
.map-label { font-size: 13px; fill: var(--ink); font-family: var(--font-body); font-weight: 600; }

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0;
  position: relative;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--sky));
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.testimonial p {
  font-style: italic;
  color: #33403b;
}
.testimonial footer {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--green-dark);
}

/* ===== CTA final ===== */
.cta-final {
  background: linear-gradient(135deg, var(--deep), var(--deep-2));
  color: var(--white);
  padding: 84px 0;
  text-align: center;
}
.cta-final h2 { color: var(--white); }
.cta-final p { color: rgba(255,255,255,0.8); max-width: 50ch; margin: 0 auto 2em; }
.cta-final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: rgba(247,243,234,0.85);
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand .brand-text { color: var(--sand); }
.footer-brand .brand-text strong { color: var(--gold); }
.footer-col h4 {
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(247,243,234,0.15);
  padding: 20px 24px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
}
.footer-bottom .fine-print { margin: 0; color: rgba(247,243,234,0.6); }

/* ===== Floating WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease;
  animation: wa-pulse 2.6s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08); background: var(--whatsapp-dark); }

@keyframes wa-pulse {
  0%, 100% { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: var(--shadow-lg), 0 0 0 10px rgba(37,211,102,0); }
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .whatsapp-float:hover { transform: none; }
  .whatsapp-float { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .cards-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .section-grid { grid-template-columns: 1fr; gap: 36px; }
  .photo-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .lot-card-featured { transform: none; }
  .tour-card { grid-template-columns: 1fr; padding: 32px; }
  .check-list-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sand);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 16px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-cta { width: 100%; }
}

@media (max-width: 720px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-final-actions .btn { width: 100%; }
  .announce-inner { flex-wrap: wrap; }
  .announce p { flex-basis: 100%; }
}
