:root {
  --green: #0e6b45;
  --green-dark: #0a5234;
  --gold: #f4b942;
  --ink: #1f2933;
  --muted: #5b6b7a;
  --bg: #f7f9f8;
  --white: #ffffff;
  --line: #e2e8e6;
  --wa: #25d366;
  --shadow: 0 10px 30px rgba(14, 107, 69, 0.10);
  --radius: 16px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: #222;
  padding: 8px 12px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Topbar ---------- */
.topbar { background: var(--green-dark, #09442f); color: #fff; font-size: 0.85rem; }
.topbar-grid {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding-top: 8px; padding-bottom: 8px; align-items: center;
}
.topbar-item { opacity: 0.95; }
.topbar-item:hover { opacity: 1; text-decoration: underline; }

/* ---------- Header ---------- */
.header {
  background: var(--white); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.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: 12px; }
.logo { width: 48px; height: 48px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.15)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; letter-spacing: 0.02em; color: var(--green); }
.brand-tag { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.nav a:hover { color: var(--green); }
.btn-nav {
  background: var(--green); color: #fff !important; padding: 8px 16px;
  border-radius: 30px; font-weight: 700;
}
.btn-nav:hover { background: var(--green-dark, #0a5234); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 30px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; border: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(14,107,69,.3); }
.btn-primary:hover { background: var(--green-dark, #0a5234); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 16px rgba(37,211,102,.3); }
.btn-outline { border: 2px solid var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-block { width: 100%; }
.btn-whatsapp-big { background: var(--wa); color: #fff; font-size: 1.05rem; padding: 16px 28px; box-shadow: 0 8px 20px rgba(37,211,102,.35); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: 120px 20px 140px;
  background: linear-gradient(rgba(7,45,32,.65), rgba(7,45,32,.75)),
    radial-gradient(circle at 20% 30%, #0e6b45, #07231a);
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(244,185,66,.35), transparent 40%);
}
.hero-inner { position: relative; max-width: 780px; margin: 0 auto; }
.hero h1 { font-size: 2.9rem; font-weight: 800; line-height: 1.12; margin-bottom: 16px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.1rem; max-width: 620px; margin: 0 auto 24px; opacity: .95; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.9rem; color: var(--gold); }
.stat span { font-size: 0.85rem; opacity: .9; }

/* ---------- Sections ---------- */
.section { padding: 80px 20px; }
.section-alt { background: var(--white); }
.section-title { font-size: 2.1rem; font-weight: 800; text-align: center; color: var(--ink); margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 44px; font-size: 1.02rem; }

.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }

/* Serv */
.serv { padding: 28px 24px; text-align: center; }
.serv-icon { font-size: 2.4rem; margin-bottom: 10px; }
.serv h3 { margin-bottom: 8px; color: var(--green); }
.serv p { color: var(--muted); font-size: 0.95rem; }

/* Property cards */
.prop { display: flex; flex-direction: column; }
.prop-img { height: 200px; background: linear-gradient(135deg, #cfe8dd, #7fbda0); position: relative; }
.prop-img img { width: 100%; height: 100%; object-fit: cover; }
.prop-tag {
  position: absolute; top: 12px; left: 12px; background: var(--gold); color: #222;
  font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.prop-tag.sale { background: var(--green); color: #fff; }
.prop-tag.rent { background: var(--gold); color: #222; }
.prop-tag.lot { background: #b45309; color: #fff; }
.prop-price { margin-top: 14px; font-size: 1.05rem; font-weight: 800; color: var(--green); }
.prop-price small { font-weight: 500; color: var(--muted); }
.prop-body { padding: 16px 18px 20px; }
.prop-body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.prop-loc { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.prop-desc { color: var(--ink); font-size: 0.93rem; margin-bottom: 12px; flex: 1; }
.prop-meta { display: flex; gap: 14px; font-size: 0.85rem; color: var(--ink); margin-bottom: 14px; }
.prop-meta span { display: inline-flex; align-items: center; gap: 4px; }
.prop-meta img.emoji, .prop-meta .mico { width: 16px; height: 16px; }

.prop-link {
  display: block; text-align: center; padding: 10px; border-radius: 10px;
  background: var(--green); color: #fff; font-weight: 700; font-size: 0.9rem;
}
.prop-link:hover { background: var(--green-dark, #0a5234); }

.center-note { text-align: center; margin-top: 32px; color: var(--muted); }
.center-note a { color: var(--green); font-weight: 700; text-decoration: underline; }

/* Nosotros */
.nosotros { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.nosotros-text .section-title { text-align: left; }
.nosotros-text > p { margin-bottom: 20px; color: var(--muted); }
.company-list { list-style: none; margin-bottom: 24px; }
.company-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.company-list li strong { color: var(--ink); }
.nosotros-card {
  background: linear-gradient(150deg, var(--green), #093c29); color: #fff;
  border-radius: var(--radius); padding: 40px 30px; text-align: center;
  box-shadow: var(--shadow);
}
.big-logo { width: 84px; height: 84px; margin: 0 auto 16px; }
.nosotros-card h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--gold); }
.nosotros-card p { opacity: .92; }

/* Contacto */
.section-contact { background: linear-gradient(160deg, #0a3a28, #0e6b45); color: #fff; }
.section-contact .section-title { color: #fff; }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contacto-info p { color: #d9ece3; margin-bottom: 24px; }
.contact-row { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.contact-card {
  display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 16px;
}
.contact-card .ct-icon { font-size: 1.5rem; }
.contact-card div { display: flex; flex-direction: column; }
.contact-card strong { color: #fff; margin-bottom: 2px; }
.contact-card a, .contact-card span { color: #c4e6d4; font-size: 0.95rem; }
.contact-card a:hover { text-decoration: underline; }
.contact-card .wa-sub { color: var(--gold); font-weight: 700; }
.contact-card.full { align-items: center; }
.wa-big { margin-top: 22px; }

/* Form */
.contact-form { padding: 30px; background: #fff; color: var(--ink); }
.contact-form h3 { color: var(--green); margin-bottom: 18px; font-size: 1.3rem; }
.contact-form label { display: flex; flex-direction: column; font-size: 0.88rem; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 0.95rem; font-family: inherit; color: var(--ink); background: var(--bg);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--green); border-color: transparent;
}
.form-note { color: var(--green); font-weight: 700; margin-bottom: 12px; }

/* Footer */
.footer { background: #07231a; color: #c9dcd3; padding-top: 56px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 40px;
}
.footer h4 { color: var(--gold); margin-bottom: 14px; font-size: 1rem; }
.footer p { font-size: 0.9rem; margin-bottom: 6px; }
.footer-wa { color: var(--wa); font-weight: 700; }
.footer a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 20px; text-align: center;
  font-size: 0.82rem; color: #88a69a;
}

/* Floating WhatsApp */
.wa-float { position: fixed; bottom: 22px; right: 22px; z-index: 200; }
.wa-float a {
  display: flex; align-items: center; justify-content: center; width: 60px; height: 60px;
  background: var(--wa); border-radius: 50%; color: #fff; font-size: 1.7rem;
  box-shadow: 0 8px 22px rgba(37,211,102,0.5); transition: transform .2s ease;
}
.wa-float a:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nosotros, .contacto-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 18px;
  }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 2.1rem; }
  .hero { padding: 90px 20px 110px; }
}

@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .section-title { font-size: 1.7rem; }
  .hero-stats { gap: 24px; }
  .topbar-grid { justify-content: center; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}