* ── TIPOGRAFÍA GLOBAL ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@300;400;500&display=swap');
 
h1, h2, h3,
.houzez-title,
.property-title,
.listing-title,
.page-title,
.entry-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
}
 
body, p, a, li, input, textarea, select, button {
  font-family: 'DM Sans', sans-serif;
}
 
/* ── COLORES GLOBALES ── */
:root {
  --houzez-primary: #1a2744;
  --houzez-gold: #b8963e;
}
 
/* Botones primarios Houzez → dorado */
.btn-primary,
.houzez-btn,
.btn-1,
.property-btn,
.search-btn,
.flex-search .search-submit,
.houzez-search-v2 .btn,
a.btn.btn-primary,
input[type="submit"].btn-primary {
  background-color: #b8963e !important;
  border-color: #b8963e !important;
  color: #1a2744 !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 500 !important;
}
 
.btn-primary:hover,
.houzez-btn:hover,
.btn-1:hover {
  background-color: #d4b06a !important;
  border-color: #d4b06a !important;
}
 
/* Botón "Contáctanos" en header → navy */
.header-btn a,
.houzez-header .btn-wrap a {
  background-color: #1a2744 !important;
  border-color: #1a2744 !important;
  color: #fff !important;
  font-family: 'DM Sans', sans-serif !important;
}
 
/* Color primario en links activos y acentos */
a:not([class]),
.houzez-color,
.property-price,
.listing-price {
  color: #1a2744;
}
 
.houzez-color-bg,
.fw-pagination .current {
  background-color: #1a2744 !important;
}
 
/* ── EVITA QUE EL NÚMERO DE TELÉFONO SE PARTA ── */
a[href^="tel"] {
  white-space: nowrap;
  font-size: clamp(18px, 5vw, 28px) !important;
}
 
/* ── BOTÓN WHATSAPP PROPORCIONAL EN MÓVIL ── */
@media (max-width: 768px) {
  .wp-block-button__link,
  .wp-block-buttons .wp-block-button__link {
    display: inline-block !important;
    width: auto !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
  }
  .entry-content,
  .page-content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
 
/* ── BADGE VENDIDA ── */
a[href*="/status/vendida/"] {
  background-color: #c0392b !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 4px 12px !important;
  border-radius: 3px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}
.item-listing-wrap:has(a[href*="/status/vendida/"]) .item-header-wrap-left {
  position: relative;
  overflow: hidden;
}
.item-listing-wrap:has(a[href*="/status/vendida/"]) .item-header-wrap-left::before {
  content: "VENDIDA";
  position: absolute;
  top: 28px;
  left: -35px;
  width: 150px;
  background: #c0392b;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  padding: 6px 0;
  transform: rotate(-45deg);
  z-index: 10;
  letter-spacing: 2px;
}
.item-listing-wrap:has(a[href*="/status/vendida/"]) .item-buttons-wrap {
  display: none !important;
}
 
/* ── BADGE ARRENDADA ── */
a[href*="/status/arrendada/"] {
  background-color: #27ae60 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 4px 12px !important;
  border-radius: 3px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}
.item-listing-wrap:has(a[href*="/status/arrendada/"]) .item-header-wrap-left {
  position: relative;
  overflow: hidden;
}
.item-listing-wrap:has(a[href*="/status/arrendada/"]) .item-header-wrap-left::before {
  content: "ARRENDADA";
  position: absolute;
  top: 28px;
  left: -35px;
  width: 150px;
  background: #27ae60;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  padding: 6px 0;
  transform: rotate(-45deg);
  z-index: 10;
  letter-spacing: 1px;
}
.item-listing-wrap:has(a[href*="/status/arrendada/"]) .item-buttons-wrap {
  display: none !important;
}
 
/* ── LANDING VENDE-ARRIENDA ── */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 48px 60px;
  background: #1a2744;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("https://corredoradepropiedadescastillo.cl/wp-content/uploads/2026/05/ChatGPT-Image-29-may-2026-03_32_38-p.m.png");
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(26,39,68,0.97) 45%, rgba(26,39,68,0.6) 100%);
}
.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184,150,62,0.15);
  border: 1px solid rgba(184,150,62,0.35);
  color: #d4b06a;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #d4b06a; }
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: clamp(2.2rem, 4vw, 3.2rem) !important;
  font-weight: 500 !important;
  color: #fff !important;
  line-height: 1.15 !important;
  margin-bottom: 24px;
  letter-spacing: -0.01em !important;
}
.hero h1 em { font-style: italic; color: #d4b06a; }
.hero-lead { font-size: 1.05rem; color: rgba(255,255,255,0.72); line-height: 1.75; margin-bottom: 16px; font-weight: 300; }
.hero-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(184,150,62,0.1);
  border: 1px solid rgba(184,150,62,0.25);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 36px;
}
.hero-guarantee svg { width: 18px; height: 18px; stroke: #d4b06a; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 2px; }
.hero-guarantee p { font-size: 0.88rem; color: rgba(255,255,255,0.8); line-height: 1.55; font-weight: 300; }
.hero-guarantee strong { color: #d4b06a; font-weight: 500; }
.hero-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  background: #b8963e !important;
  color: #1a2744 !important;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: 4px;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
  line-height: 1 !important;
}
.hero-cta:hover { background: #d4b06a !important; transform: translateY(-1px); }
.hero-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 40px; }
.hero-card-title { font-family: 'Playfair Display', serif !important; font-size: 1.2rem; color: #fff; margin-bottom: 28px; font-weight: 400; }
.feature-row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.feature-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.feature-icon { width: 40px; height: 40px; border-radius: 8px; background: rgba(184,150,62,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-icon svg { width: 20px; height: 20px; stroke: #d4b06a; fill: none; stroke-width: 1.5; }
.feature-text strong { display: block; color: #fff; font-size: 0.88rem; font-weight: 500; margin-bottom: 2px; }
.feature-text span { color: rgba(255,255,255,0.5); font-size: 0.8rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.tag-label { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #b8963e; margin-bottom: 16px; display: block; }
.section-title { font-family: 'Playfair Display', serif !important; font-size: clamp(1.8rem, 3vw, 2.5rem) !important; font-weight: 500 !important; color: #1a2744 !important; line-height: 1.2; margin-bottom: 20px; letter-spacing: -0.01em; }
.section-lead { font-size: 1.05rem; color: #4b5563; line-height: 1.75; max-width: 560px; font-weight: 300; }
.section-360 { background: #f8f6f1; padding: 96px 24px; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-top: 64px; }
.tour-img { border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; position: relative; cursor: zoom-in; }
.tour-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s; }
.tour-img:hover img { transform: scale(1.02); }
.tour-corner { position: absolute; top: 16px; right: 16px; background: #b8963e; color: #1a2744; font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; }
.benefit-list { list-style: none; margin-top: 32px; }
.benefit-list li { display: flex; align-items: flex-start; gap: 14px; padding: 20px 0; border-bottom: 1px solid rgba(26,39,68,0.12); }
.benefit-list li:first-child { padding-top: 0; }
.benefit-list li:last-child { border-bottom: none; }
.check { width: 22px; height: 22px; border-radius: 50%; background: rgba(184,150,62,0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.check svg { width: 12px; height: 12px; stroke: #b8963e; fill: none; stroke-width: 2.5; }
.benefit-text strong { display: block; font-size: 0.95rem; color: #1a2744; font-weight: 500; margin-bottom: 3px; }
.benefit-text p { font-size: 0.85rem; color: #4b5563; font-weight: 300; line-height: 1.55; }
.section-process { padding: 96px 24px; background: #fff; }
.process-header { text-align: center; max-width: 560px; margin: 0 auto 48px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.step { padding: 36px 28px; background: #f8f6f1; }
.step:first-child { border-radius: 12px 0 0 12px; }
.step:last-child { border-radius: 0 12px 12px 0; }
.step-num { font-family: 'Playfair Display', serif !important; font-size: 3rem; font-weight: 400; color: rgba(184,150,62,0.25); line-height: 1; margin-bottom: 20px; }
.step h3 { font-size: 0.95rem; font-weight: 500; color: #1a2744; margin-bottom: 10px; }
.step p { font-size: 0.83rem; color: #4b5563; line-height: 1.6; font-weight: 300; }
.section-portales { background: #1a2744; padding: 80px 24px; }
.portales-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 700px; margin: 32px auto 0; }
.portal-chip { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.75); font-size: 0.85rem; padding: 10px 20px; border-radius: 100px; }
.section-cta { padding: 96px 24px; background: #f8f6f1; }
.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 16px; overflow: hidden; max-width: 1000px; margin: 0 auto; }
.cta-img { position: relative; min-height: 420px; }
.cta-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cta-content { background: #1a2744; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.cta-content .tag-label { color: #d4b06a; }
.cta-content .section-title { color: #fff !important; margin-bottom: 16px; font-size: clamp(1.5rem, 2.5vw, 2rem) !important; }
.cta-content .section-lead { color: rgba(255,255,255,0.65); max-width: 100%; margin-bottom: 12px; }
.guarantee-note { font-size: 0.82rem; color: rgba(255,255,255,0.45); line-height: 1.55; margin-bottom: 32px; font-weight: 300; font-style: italic; }
.cta-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  background: #b8963e !important;
  color: #1a2744 !important;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: 4px;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
  line-height: 1 !important;
}
.cta-btn:hover { background: #d4b06a !important; transform: translateY(-1px); }
.lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 92vw; max-height: 92vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 28px; color: white; font-size: 2rem; cursor: pointer; line-height: 1; font-weight: 300; }
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { display: none; }
  .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step:first-child { border-radius: 12px 0 0 0; }
  .step:nth-child(2) { border-radius: 0 12px 0 0; }
  .step:nth-child(3) { border-radius: 0 0 0 12px; }
  .step:last-child { border-radius: 0 0 12px 0; }
  .cta-split { grid-template-columns: 1fr; }
  .cta-img { min-height: 260px; }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; gap: 2px; }
  .step { border-radius: 0 !important; }
  .step:first-child { border-radius: 12px 12px 0 0 !important; }
  .step:last-child { border-radius: 0 0 12px 12px !important; }
}
/* ── FIN LANDING VENDE-ARRIENDA ── */
 /* ── CF7 MENSAJES ── */
.wpcf7-response-output {
  background: rgba(39,174,96,0.15) !important;
  border: 1px solid #27ae60 !important;
  color: #6fcf97 !important;
  padding: 14px 18px !important;
  margin-top: 16px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
}
.wpcf7-response-output.wpcf7-validation-errors {
  background: rgba(192,57,43,0.15) !important;
  border-color: #c0392b !important;
  color: #eb5757 !important;
}
.wpcf7-not-valid-tip {
  color: #eb5757 !important;
  font-size: 12px !important;
}