/* ============================================================
   INMOnube — assets/css/footer.css
   Estilos del footer y botón flotante de WhatsApp
   Requiere las variables CSS de :root definidas en header.php
   ============================================================ */

/* ── Footer general ───────────────────────────── */
.inmo-footer {
  margin-top: 4rem;
  font-size: .88rem;
}

/* ── Bloque superior ──────────────────────────── */
.inmo-footer__top {
  background: var(--color-prim);
  color: rgba(255,255,255,.85);
  padding: 3.5rem 0 2.5rem;
}

/* Logo en texto (cuando no hay imagen) */
.inmo-footer__logo-texto {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 100;
  color: #fff;
}

/* Slogan */
.inmo-footer__slogan {
  color: rgba(255,255,255,.65);
  font-size: .84rem;
  line-height: 1.55;
  max-width: 28ch;
}

/* Encabezados de columna */
.inmo-footer__heading {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-sec);
  margin-bottom: 1rem;
}

/* ── Links de navegación ──────────────────────── */
.inmo-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.inmo-footer__links a {
  color: rgba(255,255,255,.75);
  font-size: .87rem;
  transition: var(--transition);
}
.inmo-footer__links a:hover {
  color: #fff;
  padding-left: 4px;
}

/* ── Lista de contacto ────────────────────────── */
.inmo-footer__contacto {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.inmo-footer__contacto li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  color: rgba(255,255,255,.75);
}
.inmo-footer__contacto li i {
  color: var(--color-sec);
  font-size: 1rem;
  margin-top: .1rem;
  flex-shrink: 0;
}
.inmo-footer__contacto a {
  color: rgba(255,255,255,.75);
  transition: var(--transition);
}
.inmo-footer__contacto a:hover { color: #fff; }

/* ── Redes sociales ───────────────────────────── */
.inmo-footer__redes {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.inmo-footer__red-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}
.inmo-footer__red-link:hover {
  background: var(--color-sec);
  color: var(--text-sobre-sec);
  transform: translateY(-2px);
}

/* ── Barra de copyright ───────────────────────── */
.inmo-footer__bottom {
  background: color-mix(in srgb, var(--color-prim) 85%, black);
  color: rgba(255,255,255,.55);
  font-size: .78rem;
  padding: .9rem 0;
}
.inmo-footer__powered {
  font-size: .75rem;
}
.inmo-footer__powered strong {
  color: var(--color-sec);
}

/* ── Botón flotante WhatsApp (FAB) ────────────── */
.wapp-fab {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 18px rgba(37,211,102,.45);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
}
.wapp-fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 24px rgba(37,211,102,.55);
  color: #fff;
}

/* Tooltip del FAB */
.wapp-fab__tooltip {
  position: absolute;
  right: calc(100% + 10px);
  background: #1a1a1a;
  color: #fff;
  font-size: .75rem;
  font-weight: 500;
  white-space: nowrap;
  padding: .3rem .7rem;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.wapp-fab__tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #1a1a1a;
}
.wapp-fab:hover .wapp-fab__tooltip { opacity: 1; }

/* Animación de entrada del FAB */
@keyframes fabIn {
  from { opacity: 0; transform: scale(0.5) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.wapp-fab {
  animation: fabIn .4s .6s cubic-bezier(.34,1.56,.64,1) both;
}
