/*=======================================================================
  La Provincia Aldeas Campestres — main.css
  Hoja de estilos construida desde cero (reemplaza style.css/responsive.css/bootstrap).
=========================================================================*/

:root {
  --brand: #2f6b3a;
  --brand-dark: #163821;
  --brand-light: #69ba69;
  --brand-soft: #e7f3e8;
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #1d2420;
  --muted: #5c6a62;
  --danger: #c0392b;
  --border: #e4e2da;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-md: 0 10px 30px rgba(15, 35, 20, .12);
  --shadow-sm: 0 4px 14px rgba(15, 35, 20, .08);

  --container-w: 1180px;
  --gap: 24px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 600; line-height: 1.25; color: var(--brand-dark); }
p { margin: 0 0 1em; color: var(--muted); }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 20px; }

/* Offset anchor scroll targets so the sticky header doesn't cover section titles */
#inicio, #conocenos, #lotes, #contacto { scroll-margin-top: var(--header-h); }


/* ---------- Section title ---------- */
.section-title { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-title .eyebrow {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title h2 { font-size: clamp(24px, 3.5vw, 34px); }
.section-title p { margin: 10px 0 0; }
.section-title.light h2, .section-title.light p, .section-title.light .eyebrow { color: #fff; }

.section { padding: 64px 0; }
.section.alt { background: var(--surface); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid transparent;
  transition: all .25s ease;
}
.btn-primary { background: var(--brand-light); color: #fff; }
.btn-primary:hover { background: #fff; color: var(--brand-light); border-color: var(--brand-light); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: #fff; color: var(--brand-dark); }
.btn-block { width: 100%; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand-light);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: transform .25s ease, background .25s ease;
}
.wa-float:hover { transform: scale(1.08); background: var(--brand-dark); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo img { height: 48px; width: auto; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--brand-dark); border-radius: 2px; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  border-radius: 40px;
  transition: background .2s ease, color .2s ease;
}
.nav-link:hover, .nav-link.active { background: var(--brand-light); color: #fff; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    box-shadow: var(--shadow-sm);
    display: none;
  }
  .site-nav.open { display: flex; }
  .nav-link { text-align: center; margin: 4px 0; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: clamp(360px, 60vh, 620px);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 35, 20, .55), rgba(15, 35, 20, .75));
}
.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.hero-content h1 { color: #fff; font-size: clamp(28px, 5vw, 52px); }
.hero-content p { color: rgba(255,255,255,.9); font-size: clamp(15px, 2vw, 18px); }
.hero-content .btn { margin-top: 12px; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  position: relative;
  min-height: clamp(220px, 28vw, 320px);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 35, 20, .6), rgba(15, 35, 20, .78));
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: #fff; font-size: clamp(26px, 4vw, 40px); margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,.9); max-width: 640px; margin: 0; }

/* ---------- Standardized media / gallery ---------- */
.media-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
.media-box img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-3-4 { aspect-ratio: 3 / 4; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.gallery-grid figcaption {
  padding: 10px 4px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-dark);
  text-align: center;
}
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ---------- Carousel (vanilla, standardized slide size) ---------- */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
}
.carousel-track { display: flex; transition: transform .5s ease; }
.carousel-slide { min-width: 100%; aspect-ratio: 16 / 9; }
.carousel-slide img, .carousel-slide video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .carousel-slide { aspect-ratio: 4 / 3; }
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 35, 20, .45);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.carousel-btn:hover { background: var(--brand-light); }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .55);
  padding: 0;
}
.carousel-dots button.active { width: 24px; border-radius: 5px; background: #fff; }

/* ---------- Two column layout (text + media) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.split.reverse { grid-template-columns: .9fr 1.1fr; }
.split.reverse .split-media { order: -1; }
@media (max-width: 880px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; fill: #fff; }
.feature-card h3 { font-size: 17px; margin-bottom: 6px; }
.feature-card p { font-size: 14px; margin: 0; }

/* ---------- Lot availability ---------- */
.lot-section { background: var(--brand-soft); }
.lot-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
@media (max-width: 880px) { .lot-layout { grid-template-columns: 1fr; } }

.lot-map-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}
.lot-map-card .media-box { aspect-ratio: 4 / 3; background: #fff; }
.lot-map-card .media-box img { object-fit: contain; }

.lot-legend { display: flex; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.lot-legend span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.lot-legend span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; }
.legend-available::before { background: var(--brand-light); }
.legend-sold::before { background: var(--danger); }

.lot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}
.lot-chip {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.lot-chip.available { background: var(--brand-light); }
.lot-chip.sold { background: var(--danger); }

.lot-summary { background: var(--surface); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 14px; }
.lot-summary strong { color: var(--brand-dark); }

/* ---------- CEO / gerencia ---------- */
.ceo-section { background: var(--brand-dark); }
.ceo-card {
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.ceo-avatar {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ceo-avatar svg { width: 56px; height: 56px; fill: #fff; }
.ceo-body h3 { color: #fff; margin-bottom: 4px; }
.ceo-role { display: block; color: var(--brand-light); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.ceo-body p { color: rgba(255,255,255,.85); margin: 0; }
@media (max-width: 700px) { .ceo-card { flex-direction: column; text-align: center; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
}
.cta-band h3 { color: #fff; margin-bottom: 16px; }

/* ---------- Info list (checklist style) ---------- */
.info-list { display: grid; gap: 10px; }
.info-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  color: var(--ink);
}
.info-list li::before { content: "✓"; color: var(--brand-light); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,.85); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h2 { color: #fff; }

.contact-form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}
.field::placeholder { color: rgba(255,255,255,.55); }
.field:focus { outline: none; border-color: var(--brand-light); background: rgba(255,255,255,.14); }
textarea.field { min-height: 120px; resize: vertical; }

.form-msg {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}
.form-msg.show { display: block; }
.form-msg.success { background: rgba(105, 186, 105, .18); color: #bdf2bd; }
.form-msg.error { background: rgba(192, 57, 43, .18); color: #ffc4bc; }

.social-row { display: flex; gap: 10px; }
.social-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  transition: background .2s ease;
}
.social-badge:hover { background: var(--brand-light); }

.contact-info { display: grid; gap: 14px; align-content: start; }
.contact-info li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.contact-info .dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info svg { width: 16px; height: 16px; fill: var(--brand-light); }

.copyright {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
