:root {
  --azul: #102e57;
  --azul-claro: #1e4d86;
  --rojo: #c72535;
  --dorado: #b68b45;
  --gris: #657080;
  --fondo: #edf3f9;
  --texto: #172235;
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebe5d;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--fondo);
  color: var(--texto);
}

a {
  text-decoration: none;
}

section {
  scroll-margin-top: 90px;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

.header-contenido {
  max-width: 1180px;
  min-height: 76px;
  margin: auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--azul);
}

.marca-gdl {
  background: var(--azul);
  color: white;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 20px;
  font-weight: 800;
}

.marca-texto {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.marca-texto strong {
  font-size: 14px;
}

.marca-texto small {
  color: var(--gris);
  font-size: 10px;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  color: var(--texto);
  font-size: 12px;
  font-weight: 600;
  transition: 0.2s;
}

.nav a:hover {
  color: var(--rojo);
}

.boton-header {
  background: var(--azul);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 17px;
  border-radius: 7px;
  transition: 0.2s;
}

.boton-header:hover {
  background: var(--rojo);
}

.menu-boton {
  display: none;
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: var(--azul);
}

/* PORTADA */

.hero {
  min-height: 610px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(
      90deg,
      rgba(6, 24, 50, 0.94) 0%,
      rgba(8, 35, 70, 0.72) 48%,
      rgba(8, 35, 70, 0.18) 100%
    ),
    url("img/hero-chacabuco.png");
  background-size: cover;
  background-position: center;
}

.hero-contenido {
  max-width: 1180px;
  width: 100%;
  margin: auto;
  padding: 80px 22px;
  color: white;
}

.hero-etiqueta {
  color: #b9d8ff;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(38px, 6vw, 67px);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-texto {
  max-width: 560px;
  line-height: 1.7;
  font-size: 17px;
  color: #edf4ff;
}

.hero-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.boton-principal {
  padding: 14px 20px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s;
  background: var(--rojo);
  color: white;
  border: 2px solid var(--rojo);
  box-shadow: 0 10px 24px rgba(199, 37, 53, 0.42);
}

.boton-principal:hover {
  transform: translateY(-2px);
  background: #a91b2b;
  border-color: #a91b2b;
}

.boton-whatsapp-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s;
  background: var(--whatsapp);
  color: white;
  border: 2px solid var(--whatsapp);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.42);
}

.boton-whatsapp-hero:hover {
  background: var(--whatsapp-hover);
  border-color: var(--whatsapp-hover);
  transform: translateY(-2px);
}

.whatsapp-icono {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  color: white;
}

/* DATOS RAPIDOS */

.datos-rapidos {
  max-width: 1180px;
  margin: -42px auto 0;
  position: relative;
  z-index: 2;
  padding: 0 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.datos-rapidos div {
  background: white;
  border-radius: 9px;
  padding: 21px;
  box-shadow: 0 8px 25px rgba(20, 40, 70, 0.11);
  display: flex;
  align-items: center;
  gap: 13px;
}

.datos-rapidos span {
  font-size: 28px;
}

.datos-rapidos p {
  line-height: 1.6;
  font-size: 12px;
  color: var(--gris);
}

.datos-rapidos strong {
  color: var(--azul);
  font-size: 13px;
}

/* TITULOS GENERALES */

.titulo-seccion {
  text-align: center;
  margin-bottom: 35px;
}

.titulo-seccion p {
  color: var(--rojo);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  margin-bottom: 9px;
}

.titulo-seccion h2 {
  font-size: clamp(29px, 4vw, 40px);
  color: var(--azul);
  margin-bottom: 11px;
}

.titulo-seccion span {
  color: var(--gris);
  font-size: 14px;
  line-height: 1.6;
}

/* AREAS */

.areas {
  margin-top: 45px;
  padding: 85px 22px 70px;
  background: linear-gradient(135deg, #e7f1fb, #f6f9fd);
  border-top: 1px solid #dbe8f5;
  border-bottom: 1px solid #dbe8f5;
}

.areas-contenido {
  max-width: 1180px;
  margin: auto;
}

.grilla-areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.area-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #d9e5f1;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 8px 22px rgba(16, 46, 87, 0.08);
  transition: 0.25s;
}

.area-card:hover {
  transform: translateY(-5px);
  background: white;
  border-color: #c6a469;
  box-shadow: 0 14px 28px rgba(16, 46, 87, 0.16);
}

.area-icono {
  width: 52px;
  height: 52px;
  background: #fffaf0;
  border: 1px solid #d6b778;
  border-radius: 10px;
  color: var(--dorado);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.area-icono svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.area-card h3 {
  color: var(--azul);
  font-size: 17px;
  margin-bottom: 9px;
}

.area-card p {
  color: var(--gris);
  font-size: 12px;
  line-height: 1.7;
}

/* PROPIEDADES */

.seccion-propiedades {
  max-width: 1180px;
  margin: 50px auto 45px;
  padding: 95px 22px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(16, 46, 87, 0.08);
}

.filtros {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 35px;
}

.filtro {
  border: 1px solid #d9e0e9;
  background: white;
  color: var(--azul);
  cursor: pointer;
  padding: 10px 17px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s;
}

.filtro:hover,
.filtro.activo {
  background: var(--azul);
  color: white;
  border-color: var(--azul);
}

.grilla-propiedades {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 23px;
}

.tarjeta-propiedad {
  background: white;
  overflow: hidden;
  border: 1px solid #e1e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20, 40, 70, 0.1);
  transition: 0.25s;
}

.tarjeta-propiedad:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(20, 40, 70, 0.17);
}

.tarjeta-propiedad img {
  width: 100%;
  height: 235px;
  display: block;
  object-fit: cover;
}

.tarjeta-contenido {
  padding: 20px;
}

.etiqueta {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 4px;
  color: white;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 12px;
}

.venta {
  background: var(--rojo);
}

.alquiler {
  background: var(--azul-claro);
}

.tarjeta-contenido h3 {
  color: var(--azul);
  font-size: 19px;
  margin-bottom: 7px;
}

.ubicacion {
  font-size: 12px;
  color: var(--gris);
  margin-bottom: 15px;
}

.descripcion {
  color: #586476;
  font-size: 13px;
  line-height: 1.65;
  min-height: 87px;
}

.tarjeta-final {
  border-top: 1px solid #e8edf3;
  margin-top: 18px;
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tarjeta-final strong {
  color: var(--azul);
  font-size: 13px;
}

.tarjeta-final a {
  background: var(--azul);
  color: white;
  padding: 9px 12px;
  font-size: 12px;
  border-radius: 5px;
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(16, 46, 87, 0.18);
}

.tarjeta-final a:hover {
  background: var(--rojo);
}

.tarjeta-propiedad.oculta {
  display: none;
}

.sin-resultados {
  display: none;
  text-align: center;
  color: var(--gris);
  margin-top: 25px;
}

/* QUIENES SOMOS */

.nosotros {
  max-width: 1180px;
  margin: 45px auto 55px;
  padding: 65px 55px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 70px;
  align-items: center;
  background: linear-gradient(135deg, #0b274d, #1d4f88);
  border-radius: 24px;
  box-shadow: 0 14px 32px rgba(16, 46, 87, 0.2);
}

.nosotros-texto p {
  color: #b9d8ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 13px;
}

.nosotros-texto h2 {
  color: white;
  font-size: clamp(29px, 4vw, 42px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.nosotros-texto span {
  color: #e5f0ff;
  font-size: 14px;
  line-height: 1.8;
}

.nosotros-datos {
  display: grid;
  gap: 13px;
}

.nosotros-datos div {
  background: rgba(255, 255, 255, 0.1);
  padding: 18px;
  border-left: 4px solid #d4ad68;
  border-radius: 7px;
}

.nosotros-datos strong {
  color: white;
}

.nosotros-datos p {
  color: #dbeaff;
  font-size: 12px;
  margin-top: 5px;
}

/* SERVICIOS */

.servicios {
  padding: 100px 22px;
  background: linear-gradient(135deg, #091f3d, #174d86);
}

.blanco h2 {
  color: white;
}

.blanco p {
  color: #a8d0ff;
}

.grilla-servicios {
  max-width: 1080px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
}

.grilla-servicios article {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 28px;
  border-radius: 10px;
  color: white;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.grilla-servicios span {
  font-size: 31px;
}

.grilla-servicios h3 {
  margin: 15px 0 8px;
}

.grilla-servicios p {
  color: #d6e6fb;
  font-size: 13px;
  line-height: 1.7;
}

/* CONTACTO */

.contacto {
  max-width: 1180px;
  margin: 65px auto 90px;
  padding: 60px 55px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
  background: linear-gradient(135deg, #102e57, #1d4f88);
  border-radius: 14px;
  box-shadow: 0 9px 30px rgba(20, 40, 70, 0.18);
}

.contacto-info > p {
  color: #b9d8ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.contacto-info h2 {
  color: white;
  font-size: clamp(27px, 3vw, 37px);
  line-height: 1.2;
  margin-bottom: 23px;
}

.contacto-datos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacto-datos a {
  color: #e6f1ff;
  font-size: 13px;
  font-weight: 600;
}

.contacto-datos a:hover {
  color: white;
}

.instagram-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.instagram-icono {
  width: 18px;
  height: 18px;
  color: #ff7ab5;
  flex-shrink: 0;
}

.formulario {
  background: white;
  padding: 23px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.formulario input,
.formulario textarea {
  width: 100%;
  border: 1px solid #d6dde7;
  border-radius: 6px;
  padding: 13px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.formulario textarea {
  resize: vertical;
  min-height: 115px;
}

.formulario input:focus,
.formulario textarea:focus {
  border-color: var(--azul-claro);
}

.formulario button {
  width: 100%;
  display: block;
  border: none;
  background: var(--whatsapp);
  color: white;
  padding: 15px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(37, 211, 102, 0.3);
}

.formulario button:hover {
  background: var(--whatsapp-hover);
}

/* WHATSAPP FLOTANTE */

.whatsapp-flotante {
  position: fixed;
  right: 23px;
  bottom: 23px;
  z-index: 20;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 9px 22px rgba(37, 211, 102, 0.45);
}

.whatsapp-flotante:hover {
  background: var(--whatsapp-hover);
}

.whatsapp-flotante svg {
  width: 30px;
  height: 30px;
}

/* FOOTER */

footer {
  background: #091d39;
  color: #d3e0f2;
  text-align: center;
  padding: 23px;
  font-size: 12px;
}

/* TABLET */

@media (max-width: 900px) {
  .grilla-areas,
  .grilla-propiedades {
    grid-template-columns: repeat(2, 1fr);
  }

  .nosotros,
  .contacto {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

/* CELULAR */

@media (max-width: 700px) {
  .header-contenido {
    min-height: 68px;
  }

  .menu-boton {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 9px 17px rgba(0, 0, 0, 0.08);
  }

  .nav.abierto {
    display: flex;
  }

  .nav a {
    padding: 17px 22px;
    border-top: 1px solid #edf0f4;
  }

  .boton-header {
    display: none;
  }

  .marca-texto small {
    display: none;
  }

  .datos-rapidos {
    grid-template-columns: 1fr;
    margin-top: -25px;
  }

  .grilla-areas,
  .grilla-propiedades,
  .grilla-servicios {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 570px;
    background-position: center;
  }

  .hero-contenido {
    padding-top: 100px;
  }

  .tarjeta-propiedad img {
    height: 250px;
  }

  .areas {
    margin-top: 25px;
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .seccion-propiedades {
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .nosotros,
  .contacto {
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 75px 24px;
  }

  .contacto {
    margin-top: 0;
    margin-bottom: 0;
  }

  .boton-whatsapp-hero {
    width: 100%;
    justify-content: center;
  }
}.cargando-propiedades{grid-column:1/-1;padding:45px 20px;border:1px dashed #c8d4e1;border-radius:12px;color:var(--gris);text-align:center}.imagen-propiedad{position:relative;display:block;width:100%;border:0;background:#edf3f9;cursor:pointer}.contador-fotos{position:absolute;right:12px;bottom:12px;padding:7px 10px;border-radius:20px;background:rgba(255,255,255,.94);color:var(--azul);font-size:10px;font-weight:800}.estado-linea{display:flex;align-items:center;justify-content:space-between;gap:10px}.estado-propiedad{padding:5px 8px;border-radius:20px;background:#edf1f5;color:#5d6978;font-size:9px;font-weight:800}.etiqueta.turismo{background:var(--dorado)}.boton-fotos{margin-top:13px;border:0;background:transparent;color:var(--azul-claro);cursor:pointer;font-size:11px;font-weight:800}.boton-fotos:hover{text-decoration:underline}.public-gallery-modal.hidden{display:none}.public-gallery-modal{position:fixed;z-index:300;inset:0;display:grid;place-items:center;padding:20px}.public-gallery-backdrop{position:absolute;inset:0;background:rgba(2,15,31,.82)}.public-gallery-box{position:relative;z-index:1;width:min(980px,100%);padding:20px;border-radius:15px;background:#fff;box-shadow:0 25px 60px rgba(0,0,0,.4)}.public-gallery-close{position:absolute;top:9px;right:14px;border:0;background:transparent;color:var(--azul);cursor:pointer;font-size:32px}.public-gallery-head{display:flex;justify-content:space-between;gap:15px;padding-right:34px;color:var(--azul);font-size:13px}.public-gallery-head span{color:var(--gris);font-size:11px}.public-gallery-box img{width:100%;max-height:70vh;margin:16px 0;display:block;object-fit:contain;border-radius:9px;background:#edf3f9}.public-gallery-controls{display:flex;justify-content:space-between;gap:12px}.public-gallery-controls button{padding:10px 14px;border:1px solid #d9e0e9;border-radius:6px;background:#fff;color:var(--azul);cursor:pointer;font-size:11px;font-weight:800}.modal-abierto{overflow:hidden}@media(max-width:600px){.public-gallery-box{padding:15px}.public-gallery-controls button{flex:1}.estado-linea{align-items:flex-start}}

/* EQUIPO DE ASESORES */
.asesores-bloque {
  grid-column: 1 / -1;
  margin-top: 12px;
}

.asesores-encabezado {
  margin-bottom: 20px;
}

.asesores-encabezado > p {
  margin: 0 0 6px;
  color: #8fb7df;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.asesores-encabezado h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
}

.asesores-encabezado span {
  display: block;
  margin-top: 8px;
  color: #d8e4f0;
  font-size: 13px;
  line-height: 1.6;
}

.asesores-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.asesor-card {
  min-width: 0;
  padding: 22px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 17px;
  box-shadow: 0 14px 30px rgba(3, 22, 48, 0.20);
}

.asesor-foto-wrap {
  width: 150px;
  height: 185px;
  overflow: hidden;
  border-radius: 14px;
  background: #e8edf3;
}

.asesor-foto {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
}

.asesor-avatar {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #123d6e, #24669f);
  color: #ffffff;
}

.asesor-avatar span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.asesor-info {
  min-width: 0;
}

.asesor-etiqueta {
  margin: 0 0 6px;
  color: #1d4f88;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.asesor-info h4 {
  margin: 0;
  color: #0b274d;
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.15;
}

.asesor-cargo {
  display: block;
  margin-top: 5px;
  color: #46617e;
  font-size: 12px;
  font-weight: 700;
}

.asesor-contacto-linea {
  margin-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.asesor-descripcion {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #4e6278;
  font-size: 12px;
  line-height: 1.65;
}

.asesor-whatsapp {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #ffffff;
  background: #18a957;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.asesor-whatsapp-icono {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.asesor-whatsapp:hover {
  background: #138947;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(24, 169, 87, 0.25);
}

@media (max-width: 1080px) {
  .asesores-grid {
    grid-template-columns: 1fr;
  }

  .asesor-card {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .asesor-foto-wrap {
    width: 170px;
    height: 205px;
  }
}

@media (max-width: 700px) {
  .asesores-encabezado {
    text-align: center;
  }

  .asesor-card {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    padding: 22px 18px;
    text-align: center;
  }

  .asesor-foto-wrap {
    width: 160px;
    height: 195px;
  }

  .asesor-contacto-linea {
    flex-direction: column;
    align-items: stretch;
  }

  .asesor-whatsapp {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .asesor-card {
    padding: 20px 15px;
  }

  .asesor-foto-wrap {
    width: 150px;
    height: 182px;
  }
}
