/* KODU — Reglas responsivas compartidas. Incluir en todas las paginas. */

/* WHATSAPP BUTTON */
.whatsapp-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
.whatsapp-btn svg { width: 30px; height: 30px; fill: white; }

/* HAMBURGER BUTTON */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: #E8D5A3;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE NAV DROPDOWN */
.mobile-nav {
  display: none; position: fixed; top: 60px; left: 0; right: 0; z-index: 99;
  background: rgba(26,26,26,0.98); padding: 1.5rem 1.2rem;
  border-top: 1px solid rgba(201,168,76,0.15);
  flex-direction: column; gap: 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  color: #E8D5A3; text-decoration: none; padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: white; }

/* REGLAS GENERALES MOBILE */
@media (max-width: 768px) {

  /* Page hero (desarrollos, inmuebles, nosotros, insights) */
  .page-hero { padding: 100px 1.2rem 50px !important; }
  .page-hero-title { font-size: clamp(28px, 7vw, 44px) !important; }

  /* Header */
  .header-inner { padding: 0 1rem !important; height: 60px !important; }
  nav { display: none !important; }
  .btn-contacto { display: none !important; }
  .hamburger { display: flex !important; }

  /* Footer comun */
  .footer-inner { grid-template-columns: 1fr !important; gap: 2rem !important; margin-bottom: 2rem !important; }
  footer { padding: 40px 1.2rem 20px !important; }
  .footer-bottom { flex-direction: column !important; gap: 0.5rem !important; font-size: 10px !important; }

  /* INDEX — grids */
  .why-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .why-image { display: none !important; }
  .why-stats { grid-template-columns: 1fr 1fr !important; }
  .why { padding: 60px 0 !important; }
  .proyectos { padding: 60px 0 !important; }
  .proyectos-header { flex-direction: column !important; align-items: flex-start !important; gap: 1rem !important; }
  .proyectos-grid { grid-template-columns: 1fr !important; }
  .zonas { padding: 60px 0 !important; }
  .zonas-grid { grid-template-columns: 1fr 1fr !important; }
  .zona-card { height: 200px !important; }

  /* DESARROLLOS / INMUEBLES — filtros y grids */
  .search-row { grid-template-columns: 1fr 1fr !important; }
  .search-row-2 { grid-template-columns: 1fr 1fr !important; }
  .search-row .btn-buscar { grid-column: 1 / -1; }
  .projects-grid { grid-template-columns: 1fr !important; }

  /* NOSOTROS */
  .historia-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .historia-image { display: none !important; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; }

  /* KU27 */
  .stats-bar-inner { grid-template-columns: 1fr 1fr !important; }
  .desc-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .amenidades-grid { grid-template-columns: 1fr 1fr !important; }
  .ubicacion-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .ubicacion-map { aspect-ratio: 4/3; }
  .content-section { padding: 50px 1.2rem !important; }
  .tipologias-section { padding: 50px 1.2rem !important; }
  .cta-final { padding: 60px 1.2rem !important; }
  .cta-btns { flex-direction: column !important; align-items: center !important; }
}
