/* =========================================
   TERRENO COMERCIAL ECATEPEC — CSS
   Mobile-first, sin dependencias externas
   ========================================= */

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

:root {
  --verde: #1a7a3b;
  --verde-dark: #145c2c;
  --verde-whatsapp: #25d366;
  --gris-oscuro: #1a1a1a;
  --gris: #555;
  --gris-claro: #f5f5f5;
  --blanco: #fff;
  --borde: #e0e0e0;
  --accent: #e67e22;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.16);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--gris-oscuro);
  background: var(--blanco);
  line-height: 1.6;
}

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- BOTÓN WHATSAPP FLOTANTE ---- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: var(--verde-whatsapp);
  color: var(--blanco);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37,211,102,0.4);
}
.whatsapp-float svg { flex-shrink: 0; }

/* ---- BOTONES ---- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-green {
  background: var(--verde);
  color: var(--blanco);
}
.btn-green:hover { background: var(--verde-dark); }
.btn-outline {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255,255,255,0.8);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
}
.btn-dark {
  background: var(--gris-oscuro);
  color: var(--blanco);
}
.btn-dark:hover { background: #333; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-img-wrap {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.10) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--blanco);
  padding: 40px 20px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}
.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--blanco);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
}
.hero h1 .highlight {
  color: #6ee89f;
}
.hero-sub {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 16px;
}
.hero-price {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  color: #6ee89f;
  margin-bottom: 24px;
}
.hero-price span {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.8;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- HIGHLIGHTS ---- */
.highlights {
  background: var(--verde);
  padding: 32px 0;
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.highlight-card {
  background: rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  color: var(--blanco);
}
.h-icon { font-size: 1.8rem; margin-bottom: 6px; }
.h-value { font-size: 1.25rem; font-weight: 700; }
.h-label { font-size: 0.8rem; opacity: 0.85; margin-top: 2px; }

/* ---- SECCIONES COMUNES ---- */
section { padding: 60px 0; }
section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--gris-oscuro);
}

/* ---- GALERÍA ---- */
.gallery-section { background: var(--gris-claro); }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.gallery-main img,
.gallery-side img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.gallery-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery-extra {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-extra img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---- FICHA TÉCNICA ---- */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--blanco);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.specs-table th,
.specs-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--borde);
  font-size: 0.95rem;
}
.specs-table th {
  background: var(--gris-claro);
  font-weight: 600;
  color: var(--gris);
  width: 45%;
}
.specs-table tr:last-child th,
.specs-table tr:last-child td { border-bottom: none; }
.location-detail {
  background: var(--verde);
  color: var(--blanco);
  padding: 20px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.7;
}
.location-detail p + p { margin-top: 6px; opacity: 0.85; }

/* ---- USOS POTENCIALES ---- */
.uses-section { background: var(--gris-claro); }
.uses-intro {
  color: var(--gris);
  margin-bottom: 28px;
  font-size: 1.02rem;
}
.uses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.use-card {
  background: var(--blanco);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--verde);
}
.use-icon { font-size: 2rem; margin-bottom: 10px; }
.use-card h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--verde-dark); }
.use-card p { font-size: 0.9rem; color: var(--gris); }

/* ---- MAPA ---- */
.map-section {}
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.map-btn { color: var(--gris-oscuro); border-color: var(--borde); background: var(--blanco); }
.map-btn:hover { background: var(--gris-claro); }

/* ---- CONTACTO ---- */
.contact-section { background: var(--gris-claro); }
.contact-section > .container > p {
  color: var(--gris);
  margin-bottom: 32px;
  font-size: 1rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.contact-direct { display: flex; flex-direction: column; gap: 14px; }
.contact-direct h3,
.contact-form-wrap h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--gris-oscuro);
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--gris); }
.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--borde);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  background: var(--blanco);
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--verde);
}
.form-group textarea { resize: vertical; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--gris-oscuro);
  color: rgba(255,255,255,0.75);
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.8;
}
.site-footer strong { color: var(--blanco); }
.site-footer a { color: #6ee89f; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-note {
  margin-top: 12px;
  font-size: 0.8rem;
  opacity: 0.55;
}

/* =========================================
   TABLET: 640px+
   ========================================= */
@media (min-width: 640px) {
  .highlights-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-main img { height: 360px; }
  .gallery-side img { height: 170px; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .uses-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { padding: 60px 20px; }
}

/* =========================================
   DESKTOP: 900px+
   ========================================= */
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: 2fr 1fr; }
  .gallery-main img { height: 460px; }
  .gallery-side { grid-template-columns: 1fr; }
  .gallery-side img { height: 220px; }
  .uses-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 90vh; }
  .hero-content { max-width: 800px; }
}
