/* Ajustes finales HOMDLY páginas públicas. No se carga en el dashboard. */
.homdly-page main{background:#f8f5f1;}
.homdly-page-home main{overflow:hidden;}

/* Slider principal del index */
.homdly-page-home .carrusel{
  position:relative;
  width:min(100%, 1480px);
  height:clamp(360px, 62vh, 680px);
  margin:0 auto 44px;
  overflow:hidden;
  background:#d8d8d8;
  border-radius:0 0 18px 18px;
  box-shadow:0 12px 34px rgba(17,67,88,.08);
}
.homdly-page-home .slide{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity .85s ease;}
.homdly-page-home .slide.activo{opacity:1;z-index:1;}
.homdly-page-home .slide img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;}
.homdly-page-home .carrusel-puntos{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);display:flex;gap:8px;z-index:3;}
.homdly-page-home .punto{width:11px;height:11px;border-radius:999px;border:0;background:rgba(255,255,255,.58);cursor:pointer;transition:width .25s ease, background .25s ease;}
.homdly-page-home .punto.activo{width:30px;background:#fff;}

/* Index centrado, menos aire lateral y sin anuncios falsos */
.homdly-page-home article{max-width:1280px;margin:0 auto;padding:0 22px;}
.home-featured-clean{padding:14px 0 28px;}
.home-featured-clean__inner{max-width:860px;margin:0 auto;text-align:center;background:#fff;border:1px solid #eee2d7;border-radius:18px;padding:24px 26px;box-shadow:0 8px 28px rgba(17,67,88,.06);}
.home-featured-clean .section-title{margin:0 0 10px!important;}
.home-featured-clean__text{margin:0 auto 18px;color:#5a6370;max-width:620px;font-size:14px;}
.home-featured-clean__btn{display:inline-flex;align-items:center;justify-content:center;background:#f2aa1f;color:#114358;text-decoration:none;font-weight:800;border-radius:999px;padding:10px 24px;}
.home-featured-clean__btn:hover{background:#114358;color:#fff;text-decoration:none;}
.homdly-page-home .stats-section{padding:28px 20px 42px;}
.homdly-page-home .services-section{max-width:1180px;padding-left:12px;padding-right:12px;}

/* Quiénes somos y soporte: contenido más compacto y centrado */
.homdly-page-about .container,
.homdly-page-support .so-contenido{
  max-width:1180px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.homdly-page-about .qs-block__inner,
.homdly-page-about .qs-block__inner--reverse{padding-left:18px!important;padding-right:18px!important;}
.homdly-page-support .so-contenido{padding-left:22px!important;padding-right:22px!important;}

/* Páginas legales */
.homdly-page-legal main{background:#fff;}
.homdly-page-legal .legal-embed .hero{margin-top:0;}
.homdly-page-legal .legal-embed .page-wrap{max-width:980px;}
.homdly-page-legal .legal-embed h2,
.homdly-page-legal .legal-embed h3{font-family:'Inter',sans-serif;}

@media(max-width:768px){
  .homdly-page-home article{padding:0 14px;}
  .homdly-page-home .carrusel{height:clamp(280px, 44vh, 420px);border-radius:0 0 14px 14px;margin-bottom:28px;}
  .home-featured-clean__inner{padding:20px 16px;}
}

/* V16: Ajuste fino de márgenes y padding del home para que el contenido respire igual que el slider superior. */
.homdly-page-home main{
  background:#f8f5f1;
  padding-top:0!important;
}

.homdly-page-home .carrusel{
  width:calc(100% - 48px)!important;
  max-width:1680px!important;
  height:clamp(360px, 42vw, 560px)!important;
  margin:0 auto 28px!important;
  border-radius:0 0 18px 18px!important;
}

.homdly-page-home article{
  width:calc(100% - 48px)!important;
  max-width:1680px!important;
  margin:0 auto!important;
  padding:0!important;
}

.homdly-page-home .home-featured-clean{
  padding:0 0 28px!important;
}

.homdly-page-home .home-featured-clean__inner{
  max-width:920px!important;
  padding:24px 30px!important;
}

.homdly-page-home .section-title{
  margin-top:20px!important;
  margin-bottom:18px!important;
}

.homdly-page-home .stats-section{
  padding:18px 0 36px!important;
}

.homdly-page-home .stats-title{
  margin-bottom:28px!important;
}

.homdly-page-home .stats-grid{
  gap:18px!important;
}

.homdly-page-home .services-section{
  max-width:1280px!important;
  padding:18px 0 0!important;
}

.homdly-page-home .main-cards{
  margin-left:auto!important;
  margin-right:auto!important;
}

@media(max-width:992px){
  .homdly-page-home .carrusel,
  .homdly-page-home article{
    width:calc(100% - 28px)!important;
  }
  .homdly-page-home .carrusel{
    height:clamp(280px, 48vw, 430px)!important;
    margin-bottom:22px!important;
  }
}

@media(max-width:576px){
  .homdly-page-home .carrusel,
  .homdly-page-home article{
    width:100%!important;
  }
  .homdly-page-home .carrusel{
    border-radius:0!important;
  }
  .homdly-page-home .home-featured-clean,
  .homdly-page-home .stats-section,
  .homdly-page-home .services-section{
    padding-left:14px!important;
    padding-right:14px!important;
  }
}

/* V17: Alineación de Propiedades Destacadas y Contador Estadística con la sección Nuestros Servicios. */
.homdly-page-home .home-featured-clean,
.homdly-page-home .stats-section,
.homdly-page-home .services-section{
  width:100%!important;
  max-width:1280px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:0!important;
  padding-right:0!important;
}

.homdly-page-home .home-featured-clean{
  padding-top:10px!important;
  padding-bottom:26px!important;
}

.homdly-page-home .home-featured-clean__inner{
  width:100%!important;
  max-width:100%!important;
  min-height:180px!important;
  padding:34px 42px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
}

.homdly-page-home .stats-section{
  padding-top:18px!important;
  padding-bottom:46px!important;
}

.homdly-page-home .stats-title{
  margin-top:0!important;
  margin-bottom:30px!important;
}

.homdly-page-home .stats-grid{
  width:100%!important;
  max-width:100%!important;
  grid-template-columns:repeat(4, minmax(0, 1fr))!important;
  gap:22px!important;
}

.homdly-page-home .stat-card{
  width:100%!important;
  min-height:142px!important;
}

.homdly-page-home .services-section{
  padding-top:8px!important;
}

.homdly-page-home .services-section .section-title{
  margin-top:0!important;
}

@media(max-width:1328px){
  .homdly-page-home .home-featured-clean,
  .homdly-page-home .stats-section,
  .homdly-page-home .services-section{
    max-width:calc(100% - 48px)!important;
  }
}

@media(max-width:768px){
  .homdly-page-home .home-featured-clean,
  .homdly-page-home .stats-section,
  .homdly-page-home .services-section{
    max-width:calc(100% - 28px)!important;
  }

  .homdly-page-home .home-featured-clean__inner{
    min-height:auto!important;
    padding:24px 18px!important;
  }

  .homdly-page-home .stats-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr))!important;
    gap:14px!important;
  }
}

@media(max-width:420px){
  .homdly-page-home .stats-grid{
    grid-template-columns:1fr!important;
  }
}

/* V18: Buscador principal del home sobre el hero */
.homdly-page-home .home-hero-search{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  width:min(calc(100% - 72px), 1100px);
  z-index:4;
  pointer-events:none;
}
.homdly-page-home .home-hero-search__panel{
  position:relative;
  pointer-events:auto;
}
.homdly-page-home .home-hero-search__tabs{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin:0 0 10px 18px;
}
.homdly-page-home .home-hero-search__tab{
  border:0;
  border-radius:14px 14px 0 0;
  background:rgba(255,255,255,.9);
  color:#172033;
  font-family:'Inter',sans-serif;
  font-size:15px;
  font-weight:700;
  padding:12px 22px;
  box-shadow:0 12px 28px rgba(0,0,0,.12);
  transition:background .2s ease,color .2s ease,transform .2s ease;
}
.homdly-page-home .home-hero-search__tab:hover{transform:translateY(-1px);}
.homdly-page-home .home-hero-search__tab.is-active{
  background:#0f2032;
  color:#fff;
}
.homdly-page-home .home-hero-search__grid{
  display:grid;
  grid-template-columns:1.05fr 1.05fr .86fr auto;
  gap:14px;
  align-items:center;
  padding:18px 18px 18px 18px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:18px;
  background:rgba(10, 21, 34, .42);
  box-shadow:0 24px 60px rgba(0,0,0,.24);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.homdly-page-home .home-hero-search__field{
  position:relative;
  display:flex;
  align-items:center;
  min-height:54px;
  border-radius:16px;
  background:rgba(255,255,255,.9);
  box-shadow:inset 0 0 0 1px rgba(17,67,88,.08);
}
.homdly-page-home .home-hero-search__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:54px;
  min-width:54px;
  color:#1d2d3f;
  font-size:19px;
}
.homdly-page-home .home-hero-search__field select,
.homdly-page-home .home-hero-search__field input{
  width:100%;
  min-width:0;
  height:54px;
  border:0;
  background:transparent;
  color:#172033;
  font-size:16px;
  font-weight:500;
  padding:0 18px 0 0;
  outline:none;
}
.homdly-page-home .home-hero-search__field select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding-right:34px;
  cursor:pointer;
}
.homdly-page-home .home-hero-search__field::after{
  content:'\f078';
  font-family:'Font Awesome 6 Free';
  font-weight:900;
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-50%);
  color:#6b7280;
  font-size:12px;
  pointer-events:none;
}
.homdly-page-home .home-hero-search__field--code::after{display:none;}
.homdly-page-home .home-hero-search__field input::placeholder{color:#667085;opacity:1;}
.homdly-page-home .home-hero-search__submit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width:156px;
  min-height:54px;
  border:0;
  border-radius:16px;
  background:linear-gradient(180deg,#f6b326 0%, #f2aa1f 100%);
  color:#10233f;
  font-family:'Inter',sans-serif;
  font-size:16px;
  font-weight:800;
  padding:0 24px;
  box-shadow:0 14px 26px rgba(242,170,31,.3);
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.homdly-page-home .home-hero-search__submit:hover{
  transform:translateY(-1px);
  background:#114358;
  color:#fff;
  box-shadow:0 18px 34px rgba(17,67,88,.32);
}
.homdly-page-home .home-hero-search__submit i{font-size:15px;}

@media (max-width: 1080px){
  .homdly-page-home .home-hero-search{
    width:min(calc(100% - 48px), 980px);
  }
  .homdly-page-home .home-hero-search__grid{
    grid-template-columns:1fr 1fr;
  }
  .homdly-page-home .home-hero-search__submit{
    width:100%;
  }
}

@media (max-width: 767px){
  .homdly-page-home .home-hero-search{
    top:auto;
    bottom:56px;
    transform:translateX(-50%);
    width:min(calc(100% - 24px), 640px);
  }
  .homdly-page-home .home-hero-search__tabs{
    margin:0 0 8px 10px;
    gap:8px;
  }
  .homdly-page-home .home-hero-search__tab{
    padding:10px 16px;
    font-size:14px;
    border-radius:12px 12px 0 0;
  }
  .homdly-page-home .home-hero-search__grid{
    grid-template-columns:1fr;
    gap:10px;
    padding:14px;
    border-radius:16px;
    background:rgba(10,21,34,.56);
  }
  .homdly-page-home .home-hero-search__field,
  .homdly-page-home .home-hero-search__field select,
  .homdly-page-home .home-hero-search__field input,
  .homdly-page-home .home-hero-search__submit{
    min-height:50px;
    height:50px;
  }
}

@media (max-width: 480px){
  .homdly-page-home .home-hero-search{
    bottom:52px;
    width:calc(100% - 18px);
  }
  .homdly-page-home .home-hero-search__tabs{
    margin-left:6px;
  }
  .homdly-page-home .home-hero-search__tab{
    padding:9px 14px;
    font-size:13px;
  }
  .homdly-page-home .home-hero-search__icon{
    width:46px;
    min-width:46px;
    font-size:17px;
  }
  .homdly-page-home .home-hero-search__field select,
  .homdly-page-home .home-hero-search__field input{
    font-size:15px;
  }
}

/* V19: Autocompletado del buscador principal */
.homdly-page-home .home-hero-autocomplete{
  position:relative;
  overflow:visible;
}
.homdly-page-home .home-hero-autocomplete::after{display:none!important;}
.homdly-page-home .home-hero-autocomplete__input{padding-right:18px!important;}
.homdly-page-home .home-hero-autocomplete__menu{
  position:absolute;
  top:calc(100% + 9px);
  left:0;
  right:0;
  z-index:30;
  display:none;
  max-height:250px;
  overflow-y:auto;
  padding:7px;
  border:1px solid rgba(17,67,88,.12);
  border-radius:14px;
  background:rgba(255,255,255,.98);
  box-shadow:0 18px 45px rgba(10,21,34,.22);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  scrollbar-width:thin;
}
.homdly-page-home .home-hero-autocomplete.is-open .home-hero-autocomplete__menu{display:block;}
.homdly-page-home .home-hero-autocomplete__menu button{
  display:flex;
  align-items:center;
  gap:11px;
  width:100%;
  padding:10px 12px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#172033;
  text-align:left;
  font-family:'Inter',sans-serif;
  cursor:pointer;
}
.homdly-page-home .home-hero-autocomplete__menu button:hover,
.homdly-page-home .home-hero-autocomplete__menu button.is-active{
  background:#fdf3dc;
  color:#114358;
}
.homdly-page-home .home-hero-autocomplete__menu button i{
  width:20px;
  color:#f2aa1f;
  text-align:center;
}
.homdly-page-home .home-hero-autocomplete__menu button span{
  display:flex;
  flex-direction:column;
  min-width:0;
  line-height:1.25;
}
.homdly-page-home .home-hero-autocomplete__menu button strong{
  color:#114358;
  font-size:13px;
}
.homdly-page-home .home-hero-autocomplete__menu button small{
  max-width:100%;
  overflow:hidden;
  color:#667085;
  font-size:11px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.homdly-page-home .home-hero-autocomplete__menu button[hidden]{display:none!important;}

@media(max-width:767px){
  .homdly-page-home .home-hero-autocomplete__menu{
    max-height:190px;
  }
}

/* V19: buscador debajo del carrusel y antes de propiedades destacadas. */
.homdly-page-home .home-hero-search{
  position:relative!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
  width:min(calc(100% - 48px), 1280px)!important;
  margin:24px auto 36px!important;
  z-index:5!important;
  pointer-events:auto!important;
}
.homdly-page-home .home-hero-search__panel{
  position:relative!important;
  width:100%!important;
  pointer-events:auto!important;
}
.homdly-page-home .home-featured-clean{
  padding-top:0!important;
}

@media(max-width:992px){
  .homdly-page-home .home-hero-search{
    width:calc(100% - 28px)!important;
    margin:22px auto 30px!important;
  }
}

@media(max-width:767px){
  .homdly-page-home .home-hero-search{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    transform:none!important;
    width:calc(100% - 28px)!important;
    margin:18px auto 28px!important;
  }
}

@media(max-width:576px){
  .homdly-page-home .home-hero-search{
    width:calc(100% - 20px)!important;
    margin:16px auto 24px!important;
  }
}
