/* ============================================================
   SECTIONS.CSS — Estilos de Secciones y Módulos Interactivos
   Grupo Vastil — Inmobiliaria Premium
   ============================================================ */

/* ── HERO SLIDER CON EFECTO KEN BURNS ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  background: var(--dark);
  color: var(--white);
  display: flex;
  align-items: center;
  padding: 0 8%;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;        /* estado base — JS lo sube a 0.55 al activar */
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* opacity, z-index y animation los controla JS via style inline */
}

/* Gradiente en pseudo-elemento separado, no escala con el zoom */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(7,9,14,0.88) 10%, rgba(7,9,14,0.25) 65%);
  z-index: 2;
  pointer-events: none;
}

/* Ken Burns — solo el zoom, opacity la maneja JS por separado */
@keyframes kenBurns {
  0%   { transform: scale(1.00); }
  100% { transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none !important; }
}

/* Slides: solo background-image, sin gradiente (va en ::after) */
.slide-calama1    { background-image: url('../img/hero/hero-calama.webp'); }
.slide-providencia{ background-image: url('../img/hero/hero-providencia.webp'); }
.slide-chiloe     { background-image: url('../img/hero/hero-chiloe.webp'); }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 8%;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  cursor: pointer;
  transition: var(--transition);
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 48px;
  background: var(--gold);
  margin-top: 10px;
  animation: bounceLine 2s infinite ease-in-out;
}

@keyframes bounceLine {
  0%, 100% { height: 35px; transform: translateY(0); }
  50% { height: 50px; transform: translateY(5px); }
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 64px;
  margin-top: 120px; /* Compensación nav absoluto (38px topbar + 80px nav) */
}

.hero-text {
  max-width: 680px;
}
.hero-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(42px, 5.5vw, 68px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--mid);
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 540px;
}
.hero-btns {
  display: flex;
  gap: 20px;
}

/* Tarjetas flotantes de métricas en el Hero */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-stat-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-num span {
  font-size: 28px;
  vertical-align: super;
}
.hero-stat-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--mid);
  text-transform: uppercase;
  max-width: 160px;
}

/* Dots de control */
.hero-nav {
  position: absolute;
  right: 8%;
  bottom: 40px;
  display: flex;
  gap: 16px;
  z-index: 10;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.hero-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ── QUIÉNES SOMOS ── */
.about-strip {
  padding: 120px 8%;
  background: var(--light);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 96px;
  align-items: center;
}
.features-list {
  list-style: none;
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.features-list li {
  font-size: 14px;
  color: var(--mid-dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}
.features-list li::before {
  content: '✓';
  color: var(--gold-dark);
  font-weight: bold;
}

.about-visual {
  position: relative;
  width: 100%;
  height: 520px;
  isolation: isolate; /* Contiene el z-index del accent badge */
  overflow: visible;
}
.about-img-main {
  width: 90%;
  height: 100%;
  background: #1e2535;
  background-image: url('../img/about/nosotros.webp');
  background-size: cover;
  background-position: center top;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.about-img-accent {
  position: absolute;
  right: 0;
  bottom: 24px; /* Dentro del contenedor — ya no sangra a la sección siguiente */
  width: 180px;
  background: var(--dark);
  color: var(--white);
  padding: 28px 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(197, 168, 109, 0.15);
  text-align: center;
  z-index: 5;
}
.about-years {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.about-years-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ── SECCIÓN POR QUÉ ELEGIRNOS ── */
.perks {
  padding: 100px 8%;
  background: var(--light-gray);
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 56px;
}
.perk-card {
  background: var(--white);
  padding: 40px 32px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.perk-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 168, 109, 0.3);
}
.perk-icon {
  font-size: 32px;
  color: var(--gold-dark);
  margin-bottom: 24px;
}
.perk-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 16px;
}
.perk-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mid-dark);
  font-weight: 300;
}

/* ── PORTAFOLIO DE PROPIEDADES ── */
.properties {
  padding: 120px 8%;
  background: var(--white);
  isolation: isolate;
}
.view-all {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.view-all:hover {
  color: var(--dark);
  gap: 14px;
}

.prop-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-btn {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 24px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--mid-dark);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--gold-dark);
  color: var(--white);
  background: var(--gold-dark);
}

.prop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  align-items: stretch;
}
/* 2 cards visibles: 2 columnas iguales */
.prop-grid[data-visible="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* 1 sola card: 1 columna al inicio, máx ancho de 1/3 del grid */
.prop-grid[data-visible="1"] {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}


/* Tarjeta básica de propiedad */
.prop-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%; /* ocupa toda la altura de la fila del grid */
}
.prop-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 168, 109, 0.2);
}

/* Eliminar featured — layout de 3 columnas uniformes */
.prop-card.featured {
  grid-column: span 1;
}

.prop-img {
  position: relative;
  height: 280px; /* altura fija igual para todas */
  overflow: hidden;
  flex-shrink: 0;
}
.prop-card.featured .prop-img {
  height: 280px; /* igual que las demás */
}
.prop-img-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.prop-card:hover .prop-img-inner {
  transform: scale(1.08);
}
.prop-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 9, 14, 0.6) 0%, rgba(7, 9, 14, 0) 50%);
  pointer-events: none;
}
.prop-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--dark-glass);
  backdrop-filter: blur(10px);
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--border-glass);
}
.prop-location-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.prop-location-tag::before {
  content: '📍';
  font-size: 10px;
}

/* Fichas técnicas de la tarjeta */
.prop-info {
  padding: 28px 30px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* empuja el botón siempre al fondo */
  min-height: 220px;
}
.prop-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
  line-height: 1.2;
}
.prop-meta {
  font-size: 13px;
  color: var(--mid-dark);
  margin-bottom: 0;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  line-height: 1.3;
}
.prop-specs {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 20px;
  margin-top: auto;
}
.prop-spec {
  text-align: center;
  flex: 1;
  min-width: 0;
}
.prop-spec-val {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.2;
}
.prop-spec-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mid-dark);
  display: block;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Precios en UF y CLP destacados en el card */
.prop-price-tag {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 15px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.prop-price-sub {
  font-size: 12px;
  color: var(--mid-dark);
  font-weight: 400;
}

/* Botón ver detalles de la tarjeta */
.prop-btn-details {
  width: 100%;
  margin-top: 20px;
  padding: 12px 0;
  background: transparent;
  border: 1px solid var(--dark);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  color: var(--dark);
  text-align: center;
  flex-shrink: 0;
}
.prop-btn-details:hover {
  background: var(--dark);
  color: var(--gold);
}

/* ── UBICACIONES (MAPA NACIONAL) ── */
.locations {
  padding: 100px 8%;
  background: var(--light);
  color: var(--dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.05);
  position: relative;
  isolation: isolate;
}
.location-list {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
}
.location-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
}
.location-item:hover {
  border-color: var(--gold-dark);
  padding-left: 8px;
}
.loc-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.loc-num {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: var(--gold-dark);
  min-width: 28px;
}
.loc-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--dark);
  transition: var(--transition);
  line-height: 1.4;
}
.location-item:hover .loc-name {
  color: var(--gold-dark);
}
.loc-count {
  font-size: 11px;
  color: var(--gold-dark);
  font-weight: 500;
  white-space: nowrap;
  margin-left: 12px;
  letter-spacing: 0.05em;
  background: rgba(197,168,109,0.08);
  padding: 3px 10px;
  border-radius: 2px;
}
.loc-arrow {
  color: var(--gold-dark);
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition);
  margin-left: 8px;
}
.location-item:hover .loc-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Panel de Regiones (reemplaza mapa SVG) ── */
.locations-regions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.region-card {
  display: flex;
  align-items: stretch;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.07);
  overflow: hidden;
  transition: var(--transition);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-radius: 4px;
}
.region-card:hover {
  transform: translateX(6px);
  border-color: rgba(197,168,109,0.4);
  box-shadow: var(--shadow-lg);
}
.region-img {
  width: 140px;
  min-height: 100px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.region-info {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  flex: 1;
}
.region-zone {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.region-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.2;
}
.region-desc {
  font-size: 13px;
  color: var(--mid-dark);
  line-height: 1.5;
}
.region-cta {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.05em;
  margin-top: 4px;
  transition: var(--transition);
}
.region-card:hover .region-cta {
  color: var(--dark);
}

/* ── TESTIMONIOS PREMIUM ── */
.testimonials {
  padding: 120px 8%;
  background: var(--light-gray);

}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.testi-card {
  background: var(--white);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.testi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.testi-stars {
  color: var(--gold-dark);
  font-size: 16px;
  margin-bottom: 24px;
  letter-spacing: 2px;
}
.testi-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--mid-dark);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 32px;
  flex: 1;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.testi-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-pale);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.testi-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}
.testi-city {
  font-size: 12px;
  color: var(--mid-dark);
  font-weight: 300;
}

/* ── SECCIÓN CTA CONTACTO (FORMULARIO ASIMÉTRICO) ── */
.cta-banner {
  padding: 120px 8%;
  background: var(--dark-light);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.cta-text h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}
.cta-text h2 em {
  font-style: italic;
  color: var(--gold);
}
.cta-sub {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 36px;
}
.cta-contact-direct {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.direct-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 18px;
  transition: var(--transition);
}
.direct-item:hover {
  background: rgba(197,168,109,0.06);
  border-color: rgba(197,168,109,0.2);
}
.direct-item a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}
.direct-item a:hover {
  color: var(--gold);
}
.direct-icon {
  width: 44px;
  height: 44px;
  background: rgba(197,168,109,0.1);
  border: 1px solid rgba(197,168,109,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 16px;
  flex-shrink: 0;
}
.direct-label {
  display: block;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-form-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(15px);
}
.contact-form-container h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
}

/* ── PORTAL DETALLE DE PROPIEDAD — DOS COLUMNAS ── */
.prop-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.prop-modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* Panel principal: 85% del viewport, dos columnas */
.prop-modal-content {
  width: 85%;
  max-width: 1300px;
  height: 100%;
  background: var(--white);
  box-shadow: -10px 0 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;         /* solo oculta desborde del panel */
  transform: translateX(100%);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  grid-template-columns: 45% 55%;
  position: relative;
}
.prop-modal.active .prop-modal-content {
  transform: translateX(0);
}

/* Columna derecha: scroll independiente */
.prop-modal-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) var(--light-gray);
}
.prop-modal-scroll::-webkit-scrollbar { width: 4px; }
.prop-modal-scroll::-webkit-scrollbar-track { background: var(--light-gray); }
.prop-modal-scroll::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }

/* Botón cerrar: esquina superior derecha del panel */
.prop-modal-close {
  position: sticky;
  top: 20px;
  margin: 20px 20px 0 auto;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-self: flex-end;
  background: var(--light-gray);
  color: var(--dark);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 20;
  transition: var(--transition);
}
.prop-modal-close:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

/* Columna izquierda: galería full-height */
.modal-gallery {
  position: relative;
  height: 100%;
  background: var(--dark);
  overflow: hidden;
}
.modal-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.modal-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease;
}
.modal-slide.active {
  opacity: 1;
}



/* Cuerpo de detalles del Modal */
.modal-body {
  padding: 28px 48px 0;
}
.modal-header-section {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-bottom: 30px;
  margin-bottom: 30px;
}
.modal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.modal-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.modal-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-dark);
  text-align: right;
}
.modal-price-clp {
  font-size: 14px;
  color: var(--mid-dark);
  font-weight: 400;
  margin-top: 4px;
}
.modal-location {
  font-size: 14px;
  color: var(--mid-dark);
  margin-top: 10px;
}

/* Ficha técnica modal */
.modal-grid-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--light-gray);
  margin-bottom: 36px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
}
.modal-spec-item {
  padding: 22px 12px;
  border-right: 1px solid rgba(0,0,0,0.06);
}
.modal-spec-item:last-child { border-right: none; }
.modal-spec-item strong {
  display: block;
  font-size: 22px;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.modal-spec-item span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 6px;
  display: block;
}

.modal-desc-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 16px;
}
.modal-features-title {
  margin-bottom: 24px;
}
.modal-desc-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--mid-dark);
  margin-bottom: 36px;
  font-weight: 400;
}

.modal-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}
.modal-feature-item {
  font-size: 13.5px;
  color: var(--mid-dark);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}
.modal-feature-item::before {
  content: '✦';
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 10px;
}

/* ── SECCIÓN CONTACTO DEL MODAL — Identidad Grupo Vastil ── */
.modal-contact-section {
  background: var(--dark);
  padding: 40px 48px 48px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

/* Ornamento de fondo: línea dorada diagonal decorativa */
.modal-contact-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(197, 168, 109, 0.1);
  border-radius: 50%;
  pointer-events: none;
}
.modal-contact-section::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(197, 168, 109, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

/* Label superior estilo marca */
.modal-contact-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.modal-contact-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.modal-contact-section h4 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.modal-contact-section > p {
  font-size: 13px;
  color: rgba(168, 188, 212, 0.75);
  margin-bottom: 32px;
  font-weight: 300;
  line-height: 1.7;
}

/* Botones de acción — estilo Vastil sobre fondo oscuro */
.modal-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.modal-contact-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  transition: border-color 0.3s ease, background 0.3s ease;
  background: rgba(255,255,255,0.03);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Línea dorada animada en hover */
.modal-contact-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-contact-btn:hover::after { width: 100%; }
.modal-contact-btn:hover {
  border-color: rgba(197,168,109,0.35);
  background: rgba(197,168,109,0.06);
}

/* WhatsApp: el único acento de color — dorado en lugar de verde genérico */
.modal-contact-btn--whatsapp {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}
.modal-contact-btn--whatsapp::after { background: var(--dark); }
.modal-contact-btn--whatsapp:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
}
.modal-contact-btn--whatsapp svg { color: var(--dark); }

.modal-contact-btn--email  { color: var(--white); }
.modal-contact-btn--info   { color: var(--white); }

.modal-contact-btn-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.modal-contact-btn-text strong {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  line-height: 1.3;
}
.modal-contact-btn-text span {
  font-size: 11px;
  opacity: 0.55;
  font-weight: 300;
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.modal-contact-btn--whatsapp .modal-contact-btn-text span { opacity: 0.7; }

/* Nota de pie */
.modal-contact-footer-note {
  font-size: 11px;
  text-align: center;
  color: rgba(168, 188, 212, 0.4);
  margin-bottom: 0;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── SECCIÓN CONTACTO: botones directos ── */
.contact-direct-intro {
  font-size: 15px;
  color: var(--mid-dark);
  font-weight: 300;
  margin-bottom: 24px;
  line-height: 1.7;
}
.contact-direct-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-action-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  text-decoration: none;
  transition: border-color 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(255,255,255,0.15);
}
.contact-action-btn:hover { border-color: rgba(197,168,109,0.5); background: rgba(197,168,109,0.08); }
.contact-action-btn--whatsapp {
  background: var(--gold);
  color: var(--dark);
}
.contact-action-btn--email {
  background: rgba(255,255,255,0.04);
  color: var(--white);
}
.contact-action-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.contact-action-text strong {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--sans);
  line-height: 1.3;
}
.contact-action-text span {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 2px;
  font-weight: 300;
}
.contact-footer-note {
  font-size: 13px;
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ── WIDGET DE WHATSAPP FLOTANTE PREMIUM ── */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.whatsapp-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  transition: var(--transition);
  font-size: 24px;
  border: none;
  position: relative;
}
.whatsapp-btn:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Ventana de chat flotante */
.whatsapp-window {
  width: 320px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: var(--transition);
}
.whatsapp-widget.active .whatsapp-window {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.whatsapp-header {
  background: #075E54;
  padding: 20px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
}
.whatsapp-agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-agent-info h5 {
  font-size: 14px;
  margin-bottom: 2px;
}
.whatsapp-agent-info p {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}
.whatsapp-body {
  padding: 20px;
  background: #E5DDD5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.whatsapp-msg {
  background: var(--white);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--dark);
  max-width: 85%;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  position: relative;
}
.whatsapp-msg::before {
  content: '';
  position: absolute;
  top: 10px;
  left: -8px;
  border: 4px solid transparent;
  border-right-color: var(--white);
}
.whatsapp-input-container {
  padding: 12px;
  background: var(--light-gray);
  display: flex;
  gap: 8px;
}
.whatsapp-input-container select {
  flex: 1;
  padding: 10px;
  font-family: var(--sans);
  font-size: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: var(--white);
}
.whatsapp-send {
  background: #25D366;
  color: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.whatsapp-send:hover {
  background: #20BA5A;
}

/* Notificación flotante de WhatsApp */
.whatsapp-ping {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #ff3b30;
  border-radius: 50%;
  border: 2px solid var(--white);
  animation: pulsePing 2s infinite;
}
@keyframes pulsePing {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}


/* ── PROP SUBLINK (enlace a subdominio en tarjeta) ── */
.prop-sublink {
  color: var(--gold-dark) !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: var(--transition);
  display: inline-block;
  padding-top: 4px;
}
.prop-sublink:hover {
  color: var(--dark) !important;
}


/* Grid 5 propiedades — 2 cards en segunda fila del mismo tamaño que las de arriba, tercera posición vacía */
@media (min-width: 769px) {
  .prop-grid:has(> .prop-card:nth-child(5):last-child) {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── ICONOS SVG SPRITE ── */
.ti {
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
  color: inherit;
}

/* Stats del hero */
.hero-stat-icon {
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 6px;
  display: block;
}

/* Features list con iconos */
.features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.features-list li .ti {
  color: var(--gold);
  flex-shrink: 0;
}

/* Perk icon SVG */
.perk-icon .ti {
  color: var(--gold);
}

/* Direct icons contacto */
.direct-icon .ti {
  color: var(--gold);
}

/* loc-arrow */
.loc-arrow .ti {
  color: var(--gold);
}

/* Topbar iconos */
.topbar-info a .ti,
.topbar-socials a .ti {
  vertical-align: -0.2em;
  opacity: 0.85;
}
.topbar-socials a {
  display: inline-flex;
  align-items: center;
}

/* Nav CTA icono */
.nav-cta .ti {
  vertical-align: -0.15em;
  margin-right: 2px;
}

/* Submit btn icono */
.form-submit-btn .ti,
.btn-gold .ti {
  vertical-align: -0.15em;
}

/* Menú hamburguesa */
.menu-toggle .ti {
  display: block;
}

/* ── SHIMMER: imagen del modal mientras carga ── */
@keyframes modalShimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.modal-slide--loading {
  background-image: none !important;
  background: linear-gradient(90deg,
    var(--dark-light) 25%,
    rgba(197,168,109,0.08) 50%,
    var(--dark-light) 75%
  ) !important;
  background-size: 1200px 100% !important;
  animation: modalShimmer 1.6s infinite linear;
}

/* ── TOAST: notificación newsletter ── */
.vastil-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark-light);
  border: 1px solid rgba(197, 168, 109, 0.35);
  color: var(--light);
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  border-radius: 4px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  text-align: center;
  max-width: 360px;
}
.vastil-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.vastil-toast__icon {
  color: var(--gold);
  margin-right: 8px;
}


/* ══════════════════════════════════════════════
   FORMULARIO DE CONTACTO — cform
   ══════════════════════════════════════════════ */
.cform-wrapper {
  margin-top: 2rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(197,168,109,.18);
  border-radius: 12px;
  padding: 2rem 2rem 1.5rem;
}
.cform-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--color-gold, #c5a86d);
  margin: 0 0 1.4rem;
  font-weight: 500;
}
.cform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) { .cform-row { grid-template-columns: 1fr; } }
.cform-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}
.cform-field label {
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  font-weight: 500;
}
.cform-field label span { color: var(--color-gold, #c5a86d); }
.cform-field input,
.cform-field select,
.cform-field textarea {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .95rem;
  padding: .7rem 1rem;
  transition: border-color .2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.cform-field select option { background: #1a1a2e; color: #fff; }
.cform-field input:focus,
.cform-field select:focus,
.cform-field textarea:focus {
  border-color: var(--color-gold, #c5a86d);
  background: rgba(255,255,255,.09);
}
.cform-field textarea { resize: vertical; min-height: 100px; }
.cform-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}
.cform-privacy {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  margin: 0;
}
.cform-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--color-gold, #c5a86d);
  color: #07090e;
  border: none;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  padding: .75rem 1.75rem;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.cform-btn:hover { opacity: .88; transform: translateY(-1px); }
.cform-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.cform-feedback {
  margin-top: .9rem;
  font-size: .9rem;
  padding: .6rem 1rem;
  border-radius: 7px;
  display: none;
}
.cform-feedback:not(:empty) { display: block; }
.cform-feedback--ok { background: rgba(80,200,120,.12); color: #6ee898; border: 1px solid rgba(80,200,120,.3); }
.cform-feedback--err { background: rgba(220,80,80,.12); color: #f48484; border: 1px solid rgba(220,80,80,.3); }

/* ── ATENCIÓN SOLO ONLINE — badge reutilizable ── */
.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(197,168,109,0.08);
  border: 1px solid rgba(197,168,109,0.25);
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.online-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulsePing 2s infinite;
}
.online-badge--dark {
  color: var(--mid);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}
.online-only-note {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.online-only-note::before {
  content: '◈';
  color: var(--gold);
  font-size: 10px;
}

/* ── MOBILE TOUCH IMPROVEMENTS ── */

/* Área táctil mínima 44px en todos los botones interactivos */
.filter-btn {
  min-height: 44px;
  padding: 10px 20px;
}
.prop-btn-details {
  min-height: 44px;
  padding: 14px 0;
}
.whatsapp-send {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}
.whatsapp-btn {
  width: 56px;
  height: 56px;
}

/* Active state para touch (feedback visual inmediato) */
.btn-gold:active,
.btn-outline:active {
  transform: scale(0.97);
  opacity: 0.9;
}
.filter-btn:active {
  transform: scale(0.96);
}
.prop-btn-details:active {
  background: var(--dark);
  color: var(--gold);
  transform: scale(0.98);
}
.contact-action-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}
.modal-contact-btn:active {
  background: rgba(197,168,109,0.1);
  transform: scale(0.98);
}
.whatsapp-btn:active {
  transform: scale(0.93);
}
.whatsapp-send:active {
  background: #1aad55;
  transform: scale(0.95);
}
.cform-btn:active {
  transform: scale(0.97);
  opacity: 0.85;
}

/* Eliminar tap highlight azul nativo en iOS/Android */
.btn-gold, .btn-outline, .btn-dark,
.filter-btn, .prop-btn-details,
.contact-action-btn, .modal-contact-btn,
.whatsapp-btn, .whatsapp-send, .cform-btn,
.nav-links a, .footer-links a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
