/* ===========================
   VARIABLES & RESET
=========================== */
:root {
  --green:       #3d6e38;
  --green-dark:  #2d5229;
  --green-light: #f0f5ef;
  --red:         #c42020;
  --red-dark:    #a01a1a;
  --gray:        #6b7280;
  --dark:        #1a1a1a;
  --light:       #f2f5f2;
  --white:       #ffffff;
  --border:      #dde5dd;
  --shadow:      0 4px 24px rgba(0,0,0,0.10);
  --radius:      10px;
  --font:        'Inter', sans-serif;
  --heading:     'Oswald', sans-serif;
  --transition:  0.3s ease;
}

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

html { scroll-behavior: smooth; }

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===========================
   NAVBAR
=========================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--green);
  transition: box-shadow var(--transition);
}

#navbar.scrolled { box-shadow: 0 4px 20px rgba(61,110,56,0.18); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--heading);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dark);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--green);
  transition: width var(--transition);
}

.nav-links a:hover         { color: var(--green); }
.nav-links a:hover::after  { width: 100%; }
.nav-links a.active-link   { color: var(--green); }
.nav-links a.active-link::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px; height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: all var(--transition);
}

/* ===========================
   BUTTONS
=========================== */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--green);
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--white);
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--white); color: var(--green-dark); transform: translateY(-2px); }

.btn-sm {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 0.4rem 1.1rem;
  border-radius: 5px;
  font-family: var(--heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--transition);
}
.btn-sm:hover { background: var(--red-dark); }

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1600&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 72px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.88) 0%, rgba(45,82,41,0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 780px;
  padding: 2rem 1.5rem;
  animation: fadeUp 0.9s ease both;
}

.hero-logo {
  width: 150px;
  margin: 0 auto 1.8rem;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}

.hero-content h1 {
  font-family: var(--heading);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content h1 span { color: #7ec87a; }

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.88;
  margin-bottom: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===========================
   SECTIONS
=========================== */
.section { padding: 5rem 0; }
.section-gray { background: var(--light); }

.section-title {
  font-family: var(--heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-title span { color: var(--red); }

.section-sub {
  text-align: center;
  color: var(--gray);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* Decorative underline accent */
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--green);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

/* ===========================
   SERVICIOS
=========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: var(--green-light);
  transition: height var(--transition);
  z-index: 0;
}

.service-card:hover::before { height: 100%; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 10px 36px rgba(61,110,56,0.16); }
.service-card > * { position: relative; z-index: 1; }

.service-icon {
  width: 68px; height: 68px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.2rem;
  transition: background var(--transition);
}

.service-card:hover .service-icon { background: var(--green-dark); }

.service-card h3 {
  font-family: var(--heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.service-card p { color: var(--gray); font-size: 0.93rem; }

/* ===========================
   PROPIEDADES
=========================== */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab {
  padding: 0.5rem 1.8rem;
  border-radius: 30px;
  border: 2px solid var(--border);
  background: var(--white);
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--dark);
}
.tab.active, .tab:hover { background: var(--green); border-color: var(--green); color: var(--white); }

.props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.prop-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.prop-card:hover { transform: translateY(-5px); box-shadow: 0 10px 36px rgba(61,110,56,0.15); }
.prop-card.hidden { display: none; }

.prop-img {
  height: 210px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.prop-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 0.3rem 0.9rem;
  border-radius: 4px;
  font-family: var(--heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.prop-badge.venta    { background: var(--red);   color: var(--white); }
.prop-badge.alquiler { background: var(--green); color: var(--white); }

.prop-body { padding: 1.2rem 1.4rem 1.4rem; }
.prop-body h4 {
  font-family: var(--heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.prop-loc { color: var(--gray); font-size: 0.87rem; margin-bottom: 0.9rem; }
.prop-loc i { color: var(--green); margin-right: 4px; }

.prop-features {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.prop-features i { color: var(--green); margin-right: 3px; }

.prop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prop-price {
  font-family: var(--heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
}

.props-cta { text-align: center; margin-top: 2.5rem; }

/* ===========================
   NOSOTROS
=========================== */
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.nosotros-text .section-title       { text-align: left; }
.nosotros-text .section-title::after { margin: 0.6rem 0 0; }
.nosotros-text p { color: var(--gray); margin-top: 1rem; margin-bottom: 1.5rem; }

.nosotros-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nosotros-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
}
.nosotros-list i { color: var(--green); font-size: 1.1rem; flex-shrink: 0; }

.nosotros-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--green);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-4px); }

.stat-num {
  font-family: var(--heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.02em;
}
.stat-label { font-size: 0.85rem; color: var(--gray); font-weight: 500; }

/* ===========================
   CONTACTO
=========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1.6rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item > i {
  font-size: 1.4rem;
  color: var(--green);
  margin-top: 2px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.contact-item strong { display: block; font-weight: 700; margin-bottom: 2px; }
.contact-item p, .contact-item a { color: var(--gray); font-size: 0.93rem; }
.contact-item a:hover { color: var(--green); }

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.93rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--green); }

.contact-form textarea { resize: vertical; }
.contact-form button { align-self: flex-start; }

/* Mapa */
.map-wrap {
  margin-top: 3.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 360px;
  border: 2px solid var(--border);
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ===========================
   FOOTER
=========================== */
footer {
  background: #1a2b18;
  color: rgba(255,255,255,0.75);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 3rem;
  padding: 3.5rem 1.5rem 2.5rem;
}

.footer-brand img { height: 64px; margin-bottom: 1rem; }
.footer-brand p   { font-size: 0.88rem; line-height: 1.7; }

.footer-links,
.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-links h4,
.footer-contact h4 {
  font-family: var(--heading);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.footer-links a { font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover  { color: #7ec87a; }
.footer-contact p { font-size: 0.88rem; }
.footer-contact a:hover { color: #7ec87a; }

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--green); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 1.2rem 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ===========================
   WHATSAPP FAB
=========================== */
.whatsapp-fab {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 999;
  width: 58px; height: 58px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 18px rgba(37,211,102,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-fab:hover { transform: scale(1.12); box-shadow: 0 6px 24px rgba(37,211,102,0.6); }

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .nosotros-grid   { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid    { grid-template-columns: 1fr; }
  .footer-inner    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem 2rem 2rem;
    box-shadow: var(--shadow);
    gap: 1.2rem;
    z-index: 999;
    border-bottom: 3px solid var(--green);
  }
  .nav-links.open { display: flex; }
  .hamburger      { display: flex; }

  .props-grid     { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr; gap: 2rem; }
  .nosotros-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .hero-btns { flex-direction: column; align-items: center; }
}
