/* =====================================================================
   Homelengo — Header y footer públicos unificados
   Fase A, Paso 3 — re-skin de menu_public.php / menu_bolsa.php y de los
   tres footers (footer_contact.php / footer_public.php / footer_bolsa.php)
   ---------------------------------------------------------------------
   Misma técnica que css/homelengo-card.css: skin scoped bajo las clases
   propias `.mii-hl-header` y `.mii-hl-footer` para no colisionar con
   `css/style.css` (Real Villa) ni con zona/listado (que heredan la hoja
   global). El markup mantiene la estructura funcional original (topbar +
   navbar sticky Bootstrap + CTA por sesión); aquí solo se cambia la piel.

   Tokens (recorte de _template_source/build/dist/homelengo.css, recolor
   Fase A):
     $primary        #A9AFFF  (lavanda MIO)
     $primary-hover  #001935  (azul marca)
     $on-surface     #001935
     $variant-2      #a3abb0  |  $outline #e4e4e4
   ===================================================================== */

/* ============ HEADER ============ */

/* Barra superior (redes / login / nombre de sesión) */
.mii-hl-header .topbar {
  background-color: #001935;
  padding: 9px 0;
}
.mii-hl-header .topbar a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  -webkit-transition: color 0.25s ease;
  -moz-transition: color 0.25s ease;
  -ms-transition: color 0.25s ease;
  -o-transition: color 0.25s ease;
  transition: color 0.25s ease;
}
.mii-hl-header .topbar a:hover {
  color: #A9AFFF;
}
.mii-hl-header .topbar .login a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
}
.mii-hl-header .topbar .login a i {
  color: #A9AFFF;
}
.mii-hl-header .topbar .login + .login {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 14px;
  margin-left: 4px;
}
.mii-hl-header .topbar .social a {
  font-size: 15px;
}

/* Navbar (sticky) */
.mii-hl-header .navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #eef1f6;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}
.mii-hl-header .navbar .navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  padding: 10px 16px;
  color: #001935;
  text-transform: capitalize;
  letter-spacing: 0;
}
.mii-hl-header .navbar-nav li > a {
  position: relative;
  padding: 6px 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: #001935;
  -webkit-transition: color 0.25s ease;
  -moz-transition: color 0.25s ease;
  -ms-transition: color 0.25s ease;
  -o-transition: color 0.25s ease;
  transition: color 0.25s ease;
}
.mii-hl-header .navbar-nav li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #A9AFFF;
  -webkit-transition: width 0.35s ease;
  -moz-transition: width 0.35s ease;
  -ms-transition: width 0.35s ease;
  -o-transition: width 0.35s ease;
  transition: width 0.35s ease;
}
.mii-hl-header .navbar-nav li > a:hover {
  color: #A9AFFF;
}
.mii-hl-header .navbar-nav li > a:hover::after {
  width: 100%;
  left: 0;
  right: auto;
}

/* CTA del header (Descargar App / Perfil / Panel) */
.mii-hl-header .mii-hl-btn,
.mii-hl-header a.btn.btn-primary.mii-hl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 9999px;
  border: 1px solid #A9AFFF;
  background-color: #A9AFFF;
  --bs-btn-color: #ffffff;
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.mii-hl-header .mii-hl-btn:hover,
.mii-hl-header a.btn.btn-primary.mii-hl-btn:hover {
  background-color: #001935;
  border-color: #001935;
  --bs-btn-color: #ffffff;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(0, 25, 53, 0.25);
}
.mii-hl-header .mii-hl-btn i,
.mii-hl-header a.btn.btn-primary.mii-hl-btn i {
  padding-right: 0;
  font-size: 16px;
  color: #ffffff !important;
}

/* Logo */
.mii-hl-header .navbar-brand {
  padding: 12px 0;
}

/* Header por encima del wrapper de la ficha (sidebar sticky no debe tapar el menú) */
.mii-hl-header.header {
  position: relative;
  z-index: 1040;
}

/* Estado sticky (custom.js añade .is-sticky sobre .header-sticky) */
.mii-hl-header .is-sticky,
.mii-hl-header.header .is-sticky {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  z-index: 1040 !important;
}

/* Toggler móvil */
.mii-hl-header .navbar-toggler {
  border-color: rgba(0, 25, 53, 0.15);
  padding: 6px 10px;
  border-radius: 10px;
}
.mii-hl-header .navbar-toggler i {
  color: #001935;
  font-size: 18px;
}

/* Menú colapsado móvil */
@media (max-width: 991.98px) {
  .mii-hl-header .navbar-collapse {
    background-color: #ffffff;
    padding: 10px 0 14px;
    border-top: 1px solid #eef1f6;
  }
  .mii-hl-header .navbar .navbar-nav .nav-link {
    padding: 9px 6px;
    font-size: 15px;
  }
  .mii-hl-header .navbar-nav li > a {
    font-size: 15px;
  }
  .mii-hl-header .add-listing {
    flex: 0 0 auto;
  }
}

/* ============ FOOTER ============ */

/* Fondo general: azul marca (reemplaza bg-dark #001022 !important de Bootstrap) */
.mii-hl-footer {
  background-color: #001935 !important;
  padding-top: 0;
}
/* Contenedor principal (la barra inferior .footer-bottom tiene su propio padding) */
.mii-hl-footer > .container {
  padding-top: 44px;
  padding-bottom: 40px;
}

/* Títulos de columna */
.mii-hl-footer h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: #ffffff !important;
}

/* Columna de contacto */
.mii-hl-footer .footer-contact-info ul li i {
  color: #A9AFFF;
  font-size: 16px;
}
.mii-hl-footer .footer-contact-info ul li span {
  color: rgba(255, 255, 255, 0.85);
}
.mii-hl-footer .footer-contact-info ul li {
  align-items: flex-start;
}
.mii-hl-footer .footer-contact-info ul li i {
  margin-top: 3px;
}

/* Enlaces de categorías */
.mii-hl-footer .footer-link ul li a {
  position: relative;
  color: #a3abb0;
  font-size: 14px;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.mii-hl-footer .footer-link ul li a:hover {
  color: #A9AFFF;
  text-decoration: none;
  padding-left: 4px;
}

/* Redes sociales */
.mii-hl-footer .footer-contact-info ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  -webkit-transition: color 0.3s ease;
  -moz-transition: color 0.3s ease;
  -ms-transition: color 0.3s ease;
  -o-transition: color 0.3s ease;
  transition: color 0.3s ease;
}
.mii-hl-footer .footer-contact-info ul li a:hover {
  color: #A9AFFF;
}

/* Barra inferior */
.mii-hl-footer .footer-bottom {
  background-color: #001123;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0;
  padding: 22px 0;
}
.mii-hl-footer .footer-bottom p,
.mii-hl-footer .footer-bottom a {
  color: #a3abb0;
}
.mii-hl-footer .footer-bottom a {
  -webkit-transition: color 0.3s ease;
  -moz-transition: color 0.3s ease;
  -ms-transition: color 0.3s ease;
  -o-transition: color 0.3s ease;
  transition: color 0.3s ease;
}
.mii-hl-footer .footer-bottom a:hover {
  color: #A9AFFF;
  text-decoration: none;
}

/* Botón subir: flecha blanca sobre el círculo #A9AFFF */
.mii-hl-footer .back-to-top,
.mii-hl-footer .back-to-top i,
.mii-hl-footer .footer-bottom .back-to-top,
.mii-hl-footer .footer-bottom .back-to-top:hover,
.mii-hl-footer .footer-bottom .back-to-top i {
  color: #ffffff !important;
}

/* Enlace legal dentro del footer */
.mii-hl-footer a {
  color: #A9AFFF;
  -webkit-transition: color 0.3s ease;
  -moz-transition: color 0.3s ease;
  -ms-transition: color 0.3s ease;
  -o-transition: color 0.3s ease;
  transition: color 0.3s ease;
}
.mii-hl-footer a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* ============ BOTÓN FLOTANTE INSTAGRAM ============
   Clon visual de `a.btn-wsp` (WhatsApp flotante, estilos.css) pero anclado a
   la IZQUIERDA para no competir con el WhatsApp (derecha) en las páginas
   donde ambos conviven. Se renderiza solo en páginas públicas que NO son
   fichas de propiedad/agente/agencia (ver
   src/Views/public/partials/btn_instagram_flotante.php). Mismo z-index que el
   WhatsApp (100): al estar en esquinas opuestas nunca se superponen. */
.btn-instagram {
  position: fixed;
  width: 60px;
  height: 60px;
  line-height: 63px;
  bottom: 25px;
  left: 25px;
  background: #e4405f; /* color de marca Instagram (sólido, patrón .btn-wsp) */
  color: #ffffff;
  border-radius: 50px;
  text-align: center;
  font-size: 35px;
  box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.3);
  z-index: 100;
  transition: all 300ms ease;
}
.btn-instagram:hover {
  background: #c93355;
  color: #ffffff;
}
@media only screen and (min-width: 320px) and (max-width: 768px) {
  .btn-instagram {
    width: 63px;
    height: 63px;
    line-height: 66px;
  }
}
