
/* =========================================================
   VALENZUELA PROPIEDADES V35
   Detalle: navbar + breadcrumb + flotantes ordenados
   ========================================================= */

/* ---------------------------------------------------------
   1. La ficha debe comenzar SIEMPRE debajo del navbar fijo
   --------------------------------------------------------- */
body[data-page="detalle"]{
  padding-top:118px!important;
}

body[data-page="detalle"] .internal-v16-main{
  margin:0!important;
  padding:0!important;
  min-height:55vh!important;
  overflow:visible!important;
}

/* ---------------------------------------------------------
   2. Ruta / breadcrumb visible como en la referencia
   --------------------------------------------------------- */
body[data-page="detalle"] .detail-page-head{
  display:block!important;
  position:relative!important;
  z-index:20!important;
  width:100%!important;
  margin:0!important;
  padding:14px 0 13px!important;
  background:#f5f8fb!important;
  border-top:1px solid #e7edf3!important;
  border-bottom:1px solid #dfe7ef!important;
  box-shadow:none!important;
}

body[data-page="detalle"] .detail-page-head .container-xl{
  max-width:1460px!important;
}

body[data-page="detalle"] .detail-breadcrumb{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:0!important;
  margin:0!important;
  padding:0!important;
  font-family:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif!important;
  font-size:12px!important;
  line-height:1.4!important;
  font-weight:700!important;
  color:#6d7888!important;
}

body[data-page="detalle"] .detail-breadcrumb .breadcrumb-item{
  display:inline-flex!important;
  align-items:center!important;
  color:#6d7888!important;
}

body[data-page="detalle"] .detail-breadcrumb .breadcrumb-item + .breadcrumb-item{
  padding-left:10px!important;
}

body[data-page="detalle"] .detail-breadcrumb .breadcrumb-item + .breadcrumb-item::before{
  content:"/"!important;
  float:none!important;
  padding-right:10px!important;
  color:#a7b0bc!important;
}

body[data-page="detalle"] .detail-breadcrumb a{
  color:#b40000!important;
  text-decoration:none!important;
  font-weight:800!important;
}

body[data-page="detalle"] .detail-breadcrumb a:hover{
  color:#b40000!important;
}

body[data-page="detalle"] .detail-breadcrumb .active{
  color:#667181!important;
  font-weight:700!important;
}

/* La galería comienza después de la ruta, nunca debajo del navbar */
body[data-page="detalle"] .detail-gallery-section{
  position:relative!important;
  z-index:1!important;
  margin-top:0!important;
  padding-top:16px!important;
}

/* ---------------------------------------------------------
   3. Flotantes exactamente en columna como en portada
   --------------------------------------------------------- */
body[data-page="detalle"] .floating{
  position:fixed!important;
  right:16px!important;
  bottom:18px!important;
  top:auto!important;
  left:auto!important;
  z-index:1035!important;

  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;

  width:auto!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}

/*
 * IMPORTANTE:
 * style.css tenía .floating-socials como position:fixed.
 * Al estar dentro de .floating provocaba que los círculos se montaran.
 */
body[data-page="detalle"] .floating .floating-socials{
  position:static!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  transform:none!important;

  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;

  width:auto!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
}

body[data-page="detalle"] .floating .floating-social{
  position:static!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  min-height:38px!important;
  flex:0 0 38px!important;

  display:grid!important;
  place-items:center!important;
  margin:0!important;
  padding:0!important;

  border-radius:50%!important;
  border:1px solid rgba(255,255,255,.92)!important;
  box-shadow:0 5px 14px rgba(0,0,0,.14)!important;
  transform:none!important;
}

body[data-page="detalle"] .floating .floating-social:hover{
  transform:translateY(-2px) scale(1.025)!important;
}

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

body[data-page="detalle"] .floating .floating-scroll-btn{
  position:static!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  flex:0 0 40px!important;

  margin:2px 0 0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;

  border-radius:50%!important;
  border:1px solid #e1e6eb!important;
  background:#fff!important;
  color:#354255!important;
  box-shadow:0 5px 14px rgba(0,0,0,.12)!important;
}

body[data-page="detalle"] .floating .floating-scroll-btn i{
  margin:0!important;
  padding:0!important;
  line-height:1!important;
}

/* Colores idénticos a la portada */
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;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media(max-width:991.98px){
  body[data-page="detalle"]{
    padding-top:90px!important;
  }

  body[data-page="detalle"] .detail-page-head{
    padding:11px 0 10px!important;
  }

  body[data-page="detalle"] .detail-breadcrumb{
    font-size:11px!important;
  }
}

@media(max-width:767.98px){
  body[data-page="detalle"]{
    padding-top:90px!important;
  }

  body[data-page="detalle"] .detail-page-head .container-xl{
    padding-left:16px!important;
    padding-right:16px!important;
  }

  body[data-page="detalle"] .detail-breadcrumb{
    font-size:10.5px!important;
    white-space:normal!important;
  }

  body[data-page="detalle"] .detail-gallery-section{
    padding-top:12px!important;
  }

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

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

  body[data-page="detalle"] .floating .floating-scroll-btn{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    flex-basis:38px!important;
  }
}
