
/* =========================================================
   VALENZUELA PROPIEDADES V34 — DETALLE VISUAL FIX
   ========================================================= */

:root{
  --v34-red:#b40000;
  --v34-red-dark:#b40000;
  --v34-gold:#e4a51c;
  --v34-gold-dark:#9a6300;
  --v34-ink:#2a1c1e;
}

/* ---------------------------------------------------------
   CABECERA / TÍTULO / BOTONES — como la referencia
   --------------------------------------------------------- */
body[data-page="detalle"] .detail-v32-title-card{
  padding:22px 20px 20px!important;
}

body[data-page="detalle"] .detail-v32-title-grid{
  grid-template-columns:minmax(0,1fr) 300px!important;
  gap:28px!important;
}

body[data-page="detalle"] .detail-v32-title-copy .detail-v32-badges{
  margin-bottom:16px!important;
}

/* Ningún chip de operación azul */
body[data-page="detalle"] .detail-v32-badges .property-badge-static.badge-red,
body[data-page="detalle"] .detail-v32-badges .badge-primary,
body[data-page="detalle"] .detail-v32-badges .bg-primary{
  background:linear-gradient(180deg,#b40000,#b40000)!important;
  border:1px solid #b40000!important;
  color:#fff!important;
}

/* Segundo chip amarillo/dorado, como referencia */
body[data-page="detalle"] .detail-v32-badges .badge-gold{
  background:#fff9ec!important;
  border:1px solid #e7b74d!important;
  color:#9a6200!important;
}

/* Título exactamente con la jerarquía de la imagen de referencia */
body[data-page="detalle"] .detail-v32-title-card h1{
  max-width:880px!important;
  margin:0 0 12px!important;
  font-family:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif!important;
  font-size:clamp(34px,3.1vw,48px)!important;
  line-height:1.08!important;
  letter-spacing:-.035em!important;
  font-weight:900!important;
  color:var(--v34-ink)!important;
  text-transform:uppercase!important;
}

body[data-page="detalle"] .detail-location{
  font-size:14px!important;
  line-height:1.45!important;
  color:#7b7e86!important;
  gap:8px!important;
}
body[data-page="detalle"] .detail-location i{
  color:var(--v34-gold)!important;
  font-size:15px!important;
}

/* Composición de botones idéntica en jerarquía a la referencia */
body[data-page="detalle"] .detail-v34-actions{
  width:300px!important;
  max-width:300px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:8px!important;
}

body[data-page="detalle"] .detail-v34-compare{
  align-self:flex-end!important;
  min-width:108px!important;
  min-height:39px!important;
  background:#fff!important;
  color:#9c5f00!important;
  border:1px solid #dfa11d!important;
  box-shadow:none!important;
}

body[data-page="detalle"] .detail-v34-compare:has(input:checked){
  background:#fff7e8!important;
  color:#8b5200!important;
  border-color:#d48f00!important;
}

body[data-page="detalle"] .detail-v34-actions-row{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  width:100%!important;
}

body[data-page="detalle"] .detail-v34-actions .detail-v32-action{
  min-height:42px!important;
  height:42px!important;
  padding:0 14px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border-radius:8px!important;
  font-family:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif!important;
  font-size:11.5px!important;
  line-height:1!important;
  font-weight:850!important;
  text-decoration:none!important;
}

body[data-page="detalle"] .detail-v34-whatsapp{
  background:linear-gradient(180deg,#b40000,#b40000)!important;
  border:1px solid #b40000!important;
  color:#fff!important;
  box-shadow:0 5px 12px rgba(180,0,0,.15)!important;
}

body[data-page="detalle"] .detail-v34-facebook{
  background:linear-gradient(180deg,#e7ad2a,#d89b10)!important;
  border:1px solid #cf9007!important;
  color:#4d3300!important;
  box-shadow:none!important;
}

body[data-page="detalle"] .detail-v34-share{
  width:100%!important;
  min-height:40px!important;
  background:#fff!important;
  color:#b40000!important;
  border:1px solid #e1a125!important;
  box-shadow:none!important;
}

body[data-page="detalle"] .detail-v34-actions .detail-v32-action:hover{
  transform:translateY(-1px)!important;
}

/* ---------------------------------------------------------
   MÉTRICAS / DESCRIPCIÓN / CARACTERÍSTICAS — letra más grande
   --------------------------------------------------------- */
body[data-page="detalle"] .detail-v32-metrics .metric-card strong{
  font-size:20px!important;
}
body[data-page="detalle"] .detail-v32-metrics .metric-card--price strong{
  font-size:22px!important;
}
body[data-page="detalle"] .detail-v32-metrics .metric-card span{
  font-size:11px!important;
}

body[data-page="detalle"] .detail-v32-content-card h2,
body[data-page="detalle"] .features-card h2,
body[data-page="detalle"] .detail-v32-media-card h2,
body[data-page="detalle"] .detail-v32-location-card h2{
  font-size:22px!important;
}

body[data-page="detalle"] .property-description-html{
  font-size:14.5px!important;
  line-height:1.75!important;
}

body[data-page="detalle"] .feature-list li{
  gap:11px!important;
  padding:7px 0!important;
  font-size:15px!important;
  line-height:1.45!important;
  color:#65738a!important;
}

body[data-page="detalle"] .feature-list li i{
  width:16px!important;
  flex:0 0 16px!important;
  margin-top:3px!important;
  font-size:12px!important;
  color:#e0a000!important;
}

/* ---------------------------------------------------------
   SIDEBAR CONTACTO — mayor legibilidad
   --------------------------------------------------------- */
body[data-page="detalle"] .detail-v32-contact-card .section-kicker{
  font-size:10.5px!important;
  letter-spacing:.12em!important;
}

body[data-page="detalle"] .detail-v32-contact-card>h2{
  font-size:24px!important;
  line-height:1.2!important;
}

body[data-page="detalle"] .contact-agent strong{
  font-size:14px!important;
}
body[data-page="detalle"] .contact-agent span{
  font-size:11px!important;
}

body[data-page="detalle"] .contact-quick-actions .btn{
  min-height:43px!important;
  font-size:11.5px!important;
}

body[data-page="detalle"] .contact-form .form-label{
  font-size:11px!important;
  font-weight:750!important;
}

body[data-page="detalle"] .contact-form .form-control{
  min-height:43px!important;
  font-size:13px!important;
  line-height:1.4!important;
}

body[data-page="detalle"] .contact-form textarea.form-control{
  font-size:13px!important;
  line-height:1.55!important;
}

body[data-page="detalle"] .quick-message-title{
  font-size:10.5px!important;
}
body[data-page="detalle"] .quick-message-buttons button{
  font-size:9.5px!important;
  line-height:1.25!important;
}

body[data-page="detalle"] .contact-submit{
  font-size:11.5px!important;
}

/* No botones azules en la ficha */
body[data-page="detalle"] .btn-primary,
body[data-page="detalle"] .btn-info,
body[data-page="detalle"] .bg-primary:not(.floating-facebook),
body[data-page="detalle"] button.btn-primary{
  background:linear-gradient(180deg,#b40000,#b40000)!important;
  border-color:#b40000!important;
  color:#fff!important;
}

/* ---------------------------------------------------------
   BOTONES FLOTANTES — EXACTAMENTE COMO LA PORTADA
   --------------------------------------------------------- */
body[data-page="detalle"] .floating{
  position:fixed!important;
  right:16px!important;
  bottom:18px!important;
  z-index:1035!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:7px!important;
}

body[data-page="detalle"] .floating-socials{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:7px!important;
  margin-bottom:0!important;
}

body[data-page="detalle"] .floating-social{
  width:38px!important;
  height:38px!important;
  flex:0 0 38px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  color:#fff!important;
  font-size:16px!important;
  line-height:1!important;
  border:1px solid rgba(255,255,255,.90)!important;
  box-shadow:0 5px 14px rgba(0,0,0,.14)!important;
  text-decoration:none!important;
}

body[data-page="detalle"] .floating-social i{
  color:#fff!important;
  font-size:16px!important;
  line-height:1!important;
}

body[data-page="detalle"] .floating-facebook{
  background:linear-gradient(180deg,#3294ff,#1160d9)!important;
}
body[data-page="detalle"] .floating-instagram{
  background:linear-gradient(135deg,#ffdc80 0%,#f77737 22%,#f56040 40%,#e1306c 58%,#c13584 76%,#833ab4 100%)!important;
}
body[data-page="detalle"] .floating-tiktok{
  background:linear-gradient(180deg,#171717,#050505)!important;
}
body[data-page="detalle"] .floating-whatsapp{
  background:linear-gradient(180deg,#28d86d,#10b957)!important;
}

body[data-page="detalle"] .floating-scroll-btn{
  width:39px!important;
  height:39px!important;
  flex:0 0 39px!important;
  border-radius:50%!important;
  border:1px solid #e3e7eb!important;
  background:#fff!important;
  color:#394555!important;
  display:grid!important;
  place-items:center!important;
  font-size:16px!important;
  box-shadow:0 5px 14px rgba(0,0,0,.12)!important;
}

/* ---------------------------------------------------------
   FOOTER — mismo orden visual de portada y letra legible
   --------------------------------------------------------- */
body[data-page="detalle"] .premium-footer{
  padding:50px 0 18px!important;
  background:linear-gradient(135deg,#171a1f,#0c0e11)!important;
}

body[data-page="detalle"] .premium-footer-grid{
  gap:48px!important;
}

body[data-page="detalle"] .footer-logo-real{
  width:174px!important;
  max-height:104px!important;
}

body[data-page="detalle"] .footer-about p,
body[data-page="detalle"] .premium-footer p{
  font-size:13.5px!important;
  line-height:1.65!important;
  color:#d5dae1!important;
}

body[data-page="detalle"] .footer-contact-list li,
body[data-page="detalle"] .footer-contact-list a{
  font-size:13px!important;
  line-height:1.5!important;
  color:#eef1f5!important;
}

body[data-page="detalle"] .premium-footer h6{
  font-size:14.5px!important;
  line-height:1.25!important;
  font-weight:850!important;
  color:#fff!important;
}

body[data-page="detalle"] .footer-links li,
body[data-page="detalle"] .footer-links a{
  font-size:12.5px!important;
  line-height:1.5!important;
  color:#d7dce3!important;
}

body[data-page="detalle"] .footer-whatsapp{
  min-height:44px!important;
  font-size:12px!important;
}

body[data-page="detalle"] .follow-label{
  font-size:11.5px!important;
  color:#d8dde4!important;
}

/* Íconos del footer: visibles, sin círculos blancos vacíos */
body[data-page="detalle"] .footer-socials{
  display:flex!important;
  gap:10px!important;
}

body[data-page="detalle"] .footer-socials a{
  width:36px!important;
  height:36px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  background:transparent!important;
  border:1px solid rgba(255,255,255,.45)!important;
  color:#fff!important;
  font-size:14px!important;
}

body[data-page="detalle"] .footer-socials a i{
  color:#fff!important;
  font-size:14px!important;
  line-height:1!important;
}

body[data-page="detalle"] .premium-footer-bottom,
body[data-page="detalle"] .premium-footer-bottom a,
body[data-page="detalle"] .footer-developed-by,
body[data-page="detalle"] .footer-developed-by a{
  font-size:11px!important;
  line-height:1.5!important;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media(max-width:991.98px){
  body[data-page="detalle"] .detail-v32-title-grid{
    grid-template-columns:1fr!important;
  }

  body[data-page="detalle"] .detail-v34-actions{
    width:min(100%,420px)!important;
    max-width:420px!important;
    align-items:stretch!important;
  }

  body[data-page="detalle"] .detail-v34-compare{
    align-self:flex-start!important;
  }
}

@media(max-width:575.98px){
  body[data-page="detalle"] .detail-v32-title-card h1{
    font-size:29px!important;
    line-height:1.12!important;
  }

  body[data-page="detalle"] .detail-v34-actions,
  body[data-page="detalle"] .detail-v34-actions-row{
    width:100%!important;
    max-width:none!important;
  }

  body[data-page="detalle"] .detail-v34-actions-row{
    grid-template-columns:1fr!important;
  }

  body[data-page="detalle"] .detail-v34-compare,
  body[data-page="detalle"] .detail-v34-share{
    width:100%!important;
  }

  body[data-page="detalle"] .feature-list li{
    font-size:14px!important;
  }

  body[data-page="detalle"] .floating{
    right:10px!important;
    bottom:12px!important;
  }

  body[data-page="detalle"] .floating-social{
    width:38px!important;
    height:38px!important;
  }
}
