:root {
  --az-navy: #1a3a5c;
  --az-navy-dark: #122a43;
  --az-blue: #2f6fb0;
  --az-red: #e2231a;
  --az-red-dark: #b81a13;
  --az-bg: #f6f8fa;
  --az-text: #23303d;
  --az-muted: #6b7785;
}

body {
  color: var(--az-text);
  background: #fff;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

a {
  color: var(--az-navy);
}

/* ---------- Navbar ---------- */
.az-navbar {
  background: #fff;
  border-bottom: 1px solid #e7ebef;
  box-shadow: 0 1px 4px rgba(20, 30, 45, 0.04);
}
.az-navbar .navbar-brand img {
  height: 46px;
}
.az-navbar .nav-link {
  color: var(--az-text);
  font-weight: 600;
  font-size: 0.95rem;
}
.az-navbar .nav-link:hover,
.az-navbar .nav-link.active {
  color: var(--az-red);
}
.az-navbar .btn-whatsapp-nav {
  background: #25d366;
  color: #fff;
  border-radius: 20px;
  padding: 6px 16px;
  font-weight: 600;
  font-size: 0.9rem;
}
.az-navbar .btn-whatsapp-nav:hover {
  background: #1eb958;
  color: #fff;
}

/* ---------- Hero ---------- */
.az-hero {
  position: relative;
  background: linear-gradient(135deg, var(--az-navy) 0%, var(--az-navy-dark) 100%);
  color: #fff;
  padding: 64px 0 120px 0;
  overflow: hidden;
}
.az-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 55%);
}
.az-hero h1 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
}
.az-hero p.lead {
  color: #cfdcea;
  position: relative;
  max-width: 560px;
}

/* ---------- Search box (overlaps hero bottom edge) ---------- */
.az-search-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 30, 50, 0.18);
  padding: 20px;
  margin-top: -70px;
  position: relative;
  z-index: 3;
}
.az-search-box select,
.az-search-box input {
  border: 1px solid #dde3e9;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.92rem;
}
.az-search-box .btn-buscar {
  background: var(--az-red);
  border-color: var(--az-red);
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  padding: 10px 20px;
}
.az-search-box .btn-buscar:hover {
  background: var(--az-red-dark);
  border-color: var(--az-red-dark);
  color: #fff;
}

/* ---------- Section titles ---------- */
.az-section-title {
  font-weight: 800;
  color: var(--az-navy);
  margin-bottom: 4px;
}
.az-section-sub {
  color: var(--az-muted);
  margin-bottom: 28px;
}

/* ---------- Property cards ---------- */
.az-card {
  border: 1px solid #eceff2;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  height: 100%;
}
.az-card:hover {
  box-shadow: 0 10px 24px rgba(20, 30, 45, 0.12);
  transform: translateY(-2px);
}
.az-card .az-card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #eef1f4;
  overflow: hidden;
}
.az-card .az-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.az-card .az-badge-precio {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--az-navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 5px 10px;
  border-radius: 5px;
}
.az-card .az-badge-operacion {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--az-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 5px;
  letter-spacing: 0.4px;
}
.az-card .az-card-body {
  padding: 14px 16px 16px 16px;
}
.az-card .az-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--az-text);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.az-card .az-card-meta {
  color: var(--az-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

/* ---------- Stats strip ---------- */
.az-stats {
  background: var(--az-bg);
  padding: 40px 0;
  border-top: 1px solid #eceff2;
  border-bottom: 1px solid #eceff2;
}
.az-stats .az-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--az-red);
}
.az-stats .az-stat-label {
  color: var(--az-muted);
  font-size: 0.9rem;
}

/* ---------- Services ---------- */
.az-service {
  text-align: center;
  padding: 10px;
}
.az-service .az-service-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--az-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 14px auto;
}
.az-service h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--az-text);
}

/* ---------- CTA ---------- */
.az-cta {
  background: var(--az-navy);
  color: #fff;
  padding: 44px 0;
  text-align: center;
}
.az-cta .btn-whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 24px;
}
.az-cta .btn-whatsapp:hover {
  background: #1eb958;
  color: #fff;
}

/* ---------- Floating WhatsApp button ---------- */
.az-whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  z-index: 999;
  text-decoration: none;
}
.az-whatsapp-float:hover {
  color: #fff;
  transform: scale(1.06);
}

/* ---------- Filter bar (listado) ---------- */
.az-filterbar {
  background: var(--az-bg);
  border: 1px solid #eceff2;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 26px;
}

/* ---------- Footer ---------- */
.az-footer {
  background: var(--az-navy-dark);
  color: #cfdcea;
  padding: 44px 0 0 0;
  margin-top: 60px;
}
.az-footer h5 {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
}
.az-footer a {
  color: #cfdcea;
}
.az-footer a:hover {
  color: #fff;
}
.az-footer .az-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  margin-right: 8px;
}
.az-footer .az-social a:hover {
  background: var(--az-red);
}
.az-footer .az-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 30px;
  padding: 16px 0;
  font-size: 0.85rem;
  color: #97a9bc;
}
.az-footer iframe {
  border-radius: 8px;
  width: 100%;
  border: 0;
}

/* ---------- Detail page ---------- */
.az-detail-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--az-navy);
}
.az-gallery-main {
  aspect-ratio: 16/10;
  background: #eef1f4;
  border-radius: 10px;
  overflow: hidden;
}
.az-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.az-gallery-thumbs img {
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.8;
}
.az-gallery-thumbs img:hover {
  opacity: 1;
}
.az-char-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #eceff2;
  font-size: 0.92rem;
}
.az-char-table td.label {
  color: var(--az-muted);
  width: 50%;
}
.az-consulta-box {
  background: var(--az-bg);
  border: 1px solid #eceff2;
  border-radius: 10px;
  padding: 20px;
}

@media (max-width: 767.98px) {
  .az-hero { padding: 40px 0 130px 0; }
  .az-hero h1 { font-size: 1.6rem; }
  .az-search-box { margin-top: -90px; }
}
