/* ── San Luis de Molina — Sistema de tokens ── */
:root {
  --primary:      #1E4616;
  --primary-2:    #2C621D;
  --primary-dark: #14300E;
  --accent:       #84C224;
  --accent-dk:    #5E8E19;
  --gold:         #F6CE21;
  --warn:         #FFBC7D;
  --danger:       #C0453B;
  --text:         #363636;
  --text-2:       #595959;
  --text-3:       #6E6E6E;
  --bg:           #F7F7F7;
  --surface:      #FFFFFF;
  --border:       #DBDBDB;
  --max:          1280px;
  --radius:       10px;
  --radius-sm:    6px;
  --shadow:       0 4px 20px rgba(15, 30, 15, .08);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--primary-dark); }
h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(22px, 3.5vw, 32px); }
h3 { font-size: clamp(18px, 2.5vw, 22px); }
p { color: var(--text-2); }

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--surface); }
.section--dark { background: var(--primary-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.75); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(132,194,36,.12);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--gold); background: rgba(246,206,33,.12); }

.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 10px; font-size: 17px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--accent { background: var(--accent); color: var(--primary-dark); }
.btn--accent:hover { background: var(--accent-dk); box-shadow: 0 6px 18px rgba(132,194,36,.35); }
.btn--gold { background: var(--gold); color: var(--primary-dark); }
.btn--gold:hover { box-shadow: 0 6px 18px rgba(246,206,33,.35); }
.btn--outline { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.1); }
.btn--outline-dark { border-color: var(--primary); color: var(--primary); }
.btn--outline-dark:hover { background: var(--primary); color: #fff; }
.btn--whatsapp { background: #0C7A67; color: #fff; }
.btn--whatsapp:hover { background: #075E54; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--primary-dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.brand span { color: #fff; font-weight: 700; font-size: 15px; line-height: 1.15; letter-spacing: .01em; }

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: rgba(255,255,255,.8);
  font-size: 14.5px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 50px;
  transition: background .12s, color .12s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }

.header-cta { display: none; }

.menu-toggle {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: transform .2s, opacity .2s;
}
.menu-toggle::before { position: absolute; transform: translateY(-7px); }
.menu-toggle::after { position: absolute; transform: translateY(7px); }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--primary-dark);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 8px 20px 20px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,.85);
  padding: 13px 4px;
  font-size: 15.5px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mobile-nav .btn { margin-top: 14px; }

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ── HERO ── */
.hero {
  position: relative;
  background: var(--primary-dark);
  color: #fff;
  overflow: hidden;
  min-height: clamp(420px, 70vh, 720px);
  display: flex;
  align-items: center;
}
.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: heroKenBurns 24s ease-in-out infinite alternate; }
}
@keyframes heroKenBurns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.12) translate(-1.5%, -1.5%); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 48, 14, .55) 0%, rgb(20 48 14 / 19%) 35%, rgba(20, 48, 14, .55) 60%);
}
.hero .container {
  position: relative;
  z-index: 3;
  padding-top: 72px;
  padding-bottom: 72px;
  max-width: 760px;
}
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 26px; }
.hero .stats-inline,
.page-hero .stats-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.hero .stats-inline span, .hero .stats-inline li,
.page-hero .stats-inline span, .page-hero .stats-inline li {
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 14px;
  border-radius: 50px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.page-hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(15,30,10,.86) 0%, rgba(15,30,10,.78) 55%, rgba(15,30,10,.9) 100%),
    url('../img/1-1.jpg') center / cover no-repeat;
  background-color: var(--primary-dark);
  color: #fff;
  padding: 48px 0;
}
.page-hero .eyebrow, .hero .eyebrow { background: rgba(255,255,255,.1); color: var(--gold); }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.75); margin-top: 8px; max-width: 620px; }
.breadcrumbs { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.breadcrumbs a { color: rgba(255,255,255,.8); }
.breadcrumbs a:hover { text-decoration: underline; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.stat { display: flex; align-items: center; gap: 12px; }
.stat img { width: 34px; height: 34px; flex-shrink: 0; }
.stat strong { display: block; font-size: 15px; color: var(--primary-dark); }
.stat span { font-size: 13px; color: var(--text-2); }
@media (min-width: 768px) {
  .stats-bar .container { grid-template-columns: repeat(4, 1fr); }
}

/* ── CARDS / GRID ── */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card img { width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 20px 22px 22px; }
.card-body .distance {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(132,194,36,.12);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: 14.5px; }
.card-body .card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
}
a.card:hover .card-link { color: var(--accent-dk); text-decoration: underline; }

/* feature/value card with icon */
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.feature .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(132,194,36,.12);
  color: var(--accent-dk);
  font-weight: 700;
  margin-bottom: 14px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 14.5px; }

/* ── GALLERY ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery a { border-radius: var(--radius-sm); overflow: hidden; display: block; }
.gallery img { width: 100%; height: 160px; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.06); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, 1fr); } .gallery img { height: 190px; } }

/* ── PRICING TABLE ── */
.price-tables { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .price-tables { grid-template-columns: 1fr 1fr; } }
.price-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}
table.price-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.price-table th, .price-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.price-table th {
  background: var(--primary-dark);
  color: #fff;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: rgba(132,194,36,.06); }
.price-table td.price-list { color: var(--text-3); text-decoration: line-through; }
.price-table td.price-cash { color: var(--primary); font-weight: 700; }

.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.badge--disponible { background: rgba(132,194,36,.15); color: var(--primary); }
.badge--reservado { background: rgba(255,188,125,.25); color: #A05A1E; }
.badge--vendido { background: rgba(192,69,59,.15); color: #8F2E24; }

.price-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; font-size: 13.5px; color: var(--text-2); }
.price-legend span { display: inline-flex; align-items: center; gap: 6px; }
.price-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.price-legend i.i-disponible { background: var(--accent); }
.price-legend i.i-reservado { background: var(--warn); }
.price-legend i.i-vendido { background: var(--danger); }

/* Leyenda del mapa 360 — colores del plano interactivo (rojo/azul/blanco) */
.map-legend { display: flex; flex-wrap: wrap; gap: 28px; }
.map-legend span { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; color: var(--text); }
.map-legend i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }
.map-legend i.dot-vendido { background: #E4392E; }
.map-legend i.dot-reservado { background: #4B4FE0; }
.map-legend i.dot-disponible { background: #fff; border: 2px solid #C7CCD1; }

/* ── FINANCING BLOCK ── */
.financing {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
.financing h3 { color: #fff; margin-bottom: 6px; }
.financing p { color: rgba(255,255,255,.8); }

/* ── QUOTE / TESTIMONIAL ── */
blockquote.quote {
  border-left: 4px solid var(--accent);
  background: var(--surface);
  padding: 22px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 17px;
  font-style: italic;
  color: var(--text);
}
blockquote.quote footer { margin-top: 10px; font-size: 13.5px; font-style: normal; color: var(--text-2); }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item h3 { font-size: 16.5px; margin-bottom: 8px; }
.faq-item p { font-size: 14.5px; }

/* ── CONTACT ── */
.contact-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info-item img { width: 30px; height: 30px; flex-shrink: 0; margin-top: 2px; }
.contact-info-item h3 { font-size: 15px; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { font-size: 14.5px; color: var(--text-2); }
.contact-info-item a:hover { color: var(--primary); text-decoration: underline; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 24px;
}
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ── FORM ── */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color .12s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12.5px; color: var(--text-3); margin-top: 10px; }
.form-status { font-size: 14px; margin-top: 12px; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-success { color: var(--accent-dk); }
.form-status.is-error { color: var(--danger); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 24px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ── FOOTER ── */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.7); padding: 56px 0 24px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 40px; }
.footer-brand span { color: #fff; font-weight: 700; font-size: 15px; }
.site-footer p { font-size: 14px; color: rgba(255,255,255,.6); max-width: 320px; }
.site-footer h3 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-links a { display: block; font-size: 14.5px; color: rgba(255,255,255,.65); padding: 5px 0; transition: color .12s; }
.footer-links a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  transition: background .12s;
}
.footer-social a:hover { background: var(--accent); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 22px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(13, 26, 13, .92);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox-img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: background .12s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (min-width: 641px) {
  .lightbox-close, .lightbox-prev, .lightbox-next { width: 44px; height: 44px; font-size: 22px; }
}

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 300;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #0C7A67;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: 12px;
  background: var(--accent); color: var(--primary-dark);
  padding: 10px 16px; border-radius: 6px; font-weight: 600; font-size: 14px;
  z-index: 999;
  transform: translateY(-80px);
  transition: transform .15s;
}
.skip-link:focus { transform: translateY(0); }
