/* ============================================================
   Inmobiliarias Zona Sur GBA — Estilos principales
   Autor: Service-Net Soluciones IT
   Versión: 1.0.0
   ============================================================ */

/* ── Variables de diseño ── */
:root {
  --color-primary:    #377eca;   /* Azul marino profundo */
  --color-secondary:  #ae9714;   /* Dorado cálido */
  --color-accent:     #e8f0fe;   /* Azul muy claro para fondos */
  --color-bg:         #f7f8fa;
  --color-surface:    #ffffff;
  --color-text:       #1e2a3a;
  --color-text-muted: #6b7a8d;
  --color-border:     #dce3ed;
  --color-success:    #25d366;   /* WhatsApp green */

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 4px rgba(26,58,92,.08);
  --shadow-md: 0 4px 16px rgba(26,58,92,.12);
  --shadow-lg: 0 8px 32px rgba(26,58,92,.16);

  --transition: .25s cubic-bezier(.4,0,.2,1);
  --max-width: 1200px;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: rgb(33, 33, 33);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-secondary); }

ul { list-style: none; }

/* ── Utilidades ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4rem 0; }
.section-alt { 
  background: rgb(33, 33, 33);
  color: white;
 }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--color-primary);
  margin-bottom: .5rem;
}
.section-header p { color: white; font-size: .95rem; }

.tag {
  display: inline-block;
  background: rgb(33, 33, 33);
  color: var(--color-primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 99px;
  margin-bottom: .75rem;
}

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: #0f2540;
  border-color: #0f2540;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}
.btn-whatsapp {
  background: var(--color-success);
  color: #fff;
  border-color: var(--color-success);
}
.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
}
.btn-gold {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-secondary);
  font-weight: 700;
}
.btn-gold:hover {
  background: #b89438;
  border-color: #b89438;
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(-105deg, var(--color-primary) 0%, #0f2540 60%, #1a3a5c 100%);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}
.navbar__brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-secondary);
  font-weight: 700;
}
.navbar__brand-sub {
  font-size: .65rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.navbar__nav a {
  color: rgba(255,255,255,.85);
  padding: .45rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}
.navbar__nav a:hover,
.navbar__nav a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* Hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.navbar__toggle:hover { background: rgba(255,255,255,.1); }
.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000000;
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.open span:nth-child(2) { opacity: 0; }
.navbar__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  position: relative; /* Indispensable para el ::before */
  display: flex;
  flex-direction: column;
  align-items: center;    
  justify-content: center; 
  text-align: center;
  height: 100vh; 
  min-height: 600px; /* Evita que se colapse en pantallas muy bajas */
  background: linear-gradient(135deg, var(--color-primary) 0%, #0f2540 60%, #1a3a5c 100%);
  color: #fff;
  overflow: hidden; /* Evita scrolls accidentales por el gradient radial */
}
.hero::before {
  content: '';
  position: relative;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(200,168,75,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(255,255,255,.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px; 
  margin-left: auto;  /* Asegura el centrado en PC */
  margin-right: auto; /* Asegura el centrado en PC */
  padding: 0 20px;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero__title em {
  color: var(--color-secondary);
  font-style: normal;
}
.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-inline: auto; /* <--- CENTRA EL BLOQUE EN PC */
}
.hero__actions { 
  display: flex; 
  gap: .75rem; 
  flex-wrap: wrap; 
  justify-content: center; /* <--- CENTRA LOS BOTONES */
}

/* ── Búsqueda (hero search bar) ── */
.search-bar {
  gap: .5rem;
  background: rgb(33, 33, 33);
  border-radius: var(--radius-md);
  padding: .5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-lg);
  flex-wrap: wrap;
}
.search-bar input,
.search-bar select {
  flex: 1;
  min-width: 140px;
  border: none;
  outline: none;
  padding: .6rem .85rem;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--color-text);
  background: transparent;
  border-radius: var(--radius-sm);
}
.search-bar input::placeholder { color: var(--color-text-muted); }
.search-bar .btn { flex-shrink: 0; }

/* ── Grid de ciudades ── */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.city-card {
  background: rgb(33, 33, 33);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}
.city-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transition: transform var(--transition);
  -webkit-transition: transform var(--transition);
  -moz-transition: transform var(--transition);
  -ms-transition: transform var(--transition);
  -o-transition: transform var(--transition);
}
.city-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-secondary);
  color: var(--color-primary);
}
.city-card:hover::before { transform: scaleX(1); }
.city-card__icon { font-size: 2rem; margin-bottom: .6rem; }
.city-card__name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--color-primary);
}
.city-card__count { font-size: .78rem; color: var(--color-text-muted); margin-top: .2rem; }
.city-card.hidden {
  display: none !important;
}
/* ── Cards de inmobiliarias ── */
.agencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.agency-card {
  background: rgb(33, 33, 33);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.agency-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.agency-card__header {
  background: linear-gradient(135deg, var(--color-primary), #22548a);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.agency-card__logo {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}
.agency-card__title { color: black; }
.agency-card__title h3 { font-size: 1rem; font-weight: 700; }
.agency-card__title p { font-size: .78rem; color: rgba(255, 255, 255, 0.937); margin-top: .15rem; }
.agency-card__body { padding: 1.25rem; flex: 1; }
.agency-card__body p { font-size: .88rem; color: rgba(255, 255, 255, 0.937); margin-bottom: 1rem; }
.agency-card__meta {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: 1.1rem;
}
.agency-card__meta span {
  font-size: .82rem;
  color: rgba(255, 255, 255, 0.937);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.agency-card__actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  padding: 0 1.25rem 1.25rem;
}

/* ── Listado de propiedades ── */
.properties-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.property-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}
.property-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.property-card__img {
  max-height: 180px;
  width: auto;
  background: linear-gradient(135deg, #c8d8e8, #e8f0fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-primary);
  position: relative;
}
.property-card__badge {
  position: absolute;
  top: .75rem; left: .75rem;
  background: var(--color-primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 99px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.property-card__body { padding: 1rem; }
.property-card__price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: .3rem;
}
.property-card__title {
  font-size: .9rem;
  color: var(--color-text);
  margin-bottom: .6rem;
}
.property-card__features {
  display: flex;
  gap: .75rem;
  font-size: .78rem;
  color: var(--color-text-muted);
}


/* Contenedor del mapa */
.agency-map {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  gap: 2rem;
}

.agency-map__title {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.1rem;
}

.agency-map__address {
  font-size: .88rem;
  color: var(--color-text-muted);
}

.agency-map__frame {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* El iframe hereda el tamaño del contenedor */
.agency-map__frame iframe {
  width: 100%;
  height: 615px;
  display: grid;
}

.agency-map__link {
  display: flex;
  text-align: center;
  align-self: center;
}
/* ── Info de inmobiliaria ── */
.agency-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.agency-info__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.agency-info__card h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: .5rem;
}
.agency-info__card .subtitle {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 1rem;
}
.info-list { margin: 1rem 0; }
.info-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: .9rem;
}
.info-list li:last-child { border-bottom: none; }
.info-list li .icon { font-size: 1.1rem; }


/* ── Breadcrumb ── */
.breadcrumb {
  
  background: black;
  border-bottom: 1px solid var(--color-border);
  padding: .75rem 0;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  align-items: center;
  font-size: .82rem;
  color: white;
  list-style-type: none; /* Quita los números */
}
.breadcrumb ol li + li::before {
  content: '/'; 
  margin-right: .3rem;
  text-decoration: none;
}
.breadcrumb ol li a { color: white; }
.breadcrumb ol li a:hover { color: var(--color-secondary); }
.breadcrumb ol li:last-child { color: white; font-weight: 600; }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary), #0f2540);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: .5rem;
}
.page-hero p { color: rgba(255,255,255,.75); font-size: 1rem; }

/* ── Stats ── */
.stats-bar {
  background: var(--color-secondary);
  padding: 1.5rem 0;
}
.stats-bar__inner {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  text-align: center;
}
.stat-item__value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.stat-item__label {
  font-size: .78rem;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .2rem;
}

/* ── Footer ── */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer__brand h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-secondary);
  margin-bottom: .5rem;
}
.footer__brand p { font-size: .85rem; line-height: 1.6; }
.footer__col h4 {
  color: #fff;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .85rem;
}
.footer__col ul li + li { margin-top: .4rem; }
.footer__col ul li a {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
  text-decoration: none;
}
.footer__col ul li a:hover { color: var(--color-secondary); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer__bottom p { font-size: .8rem; }
.footer__credit {
  font-size: .8rem;
  color: var(--color-secondary);
  font-weight: 600;
}
.footer__credit a {
  color: var(--color-secondary);
  text-decoration: none;
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px; height: 44px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 900;
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { background: var(--color-secondary); transform: translateY(-2px); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer__grid { 
    grid-template-columns: 1fr 1fr;
  
  }
  .agency-info { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .navbar__nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--color-primary); padding: 1rem; gap: .25rem; }
  .navbar__nav.open { display: flex; }
  .navbar__toggle { display: flex; }
  .navbar__inner { position: relative; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero__actions { flex-direction: column; }
  .search-bar { flex-direction: column; }
  .search-bar input, .search-bar select { min-width: 100%; }

  .section { padding: 2.5rem 0; }
  
  .footer__grid { 
    grid-template-columns: 1fr;
     gap: .5rem;
    
    }
  .footer__bottom { 
    flex-direction: column; 
    text-align: center; 
  }

  .footer {
    padding-bottom: 9rem; /* ← agrega espacio al fondo */
  }
  .stats-bar__inner { gap: 1.5rem; }
  .agency-card__actions { flex-direction: column; }
  .agency-card__actions .btn { justify-content: center; }
 }

/* ── Tipografía de Google Fonts (cargada en HTML) ── */
  
@keyframes pulse-icon {
  0%, 100% { transform: scale(1);    opacity: 1;    }
  50%       { transform: scale(1.12); opacity: 0.7;  }
}


/*ESPACIOS DISPONIBLES PARA CLIENTES*/

.page-disponibles .agencies-grid{
   display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  gap: 1.75rem;
  width: 100%;
}

.page-disponibles .agency-card__available-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-primary);
  line-height: 1.6;
  max-width: 220px;
  margin: 0;
}

.page-disponibles .agency-card__available-text {
  font-size: .88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 220px;
  margin: 0;
}

.page-disponibles .cta-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  gap: 3.75rem;
  width: 100%;
}

.page-disponibles .cta-banner p {
  margin-top: 25px;
  color: white;
}

.page-disponibles .cta-banner__title {
  color: var(--color-primary);
}

.page-disponibles .city-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  gap: 1.75rem;
  width: 100%;
}


/* =============================================
         CONTACTO / CTA
============================================*/



#contacto{
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;      /* centra horizontalmente cada hijo */
  justify-content: center;  /* centra verticalmente el bloque  */
  text-align: center;       /* centra el texto dentro de p y h3 */
  padding: 2rem 1.5rem;
  gap: 3.75rem;
  width: 100%;
}


.city-info-title{
  gap:0.45rem;
}
.section-header, p{
  display: flex;
  flex-direction: column;
  align-items: center;      /* centra horizontalmente cada hijo */
  justify-content: center;  /* centra verticalmente el bloque  */
  text-align: center;       /* centra el texto dentro de p y h3 */
  padding: 2rem 1.5rem;
  gap: 0.75rem;
  width: 100%;
}