/* =========================================
   footer.css — Mascotas Ayacucho (AA listo)
   - Fondo turquesa (support)
   - Texto/enlaces blancos
   - Layout fluido y accesible
   ========================================= */

/* Utilidad: solo lectores de pantalla */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* ---------- Contenedor principal ---------- */
#site-footer{
  background-color: var(--support, #0AC5CA);    /* TURQUESA oficial */
  color: var(--ma-white, #FFFFFF);
  padding: 20px 15px;
  font-size: .95rem;
}
#site-footer a{ color:#fff; text-decoration:none; }
#site-footer a:hover{ text-decoration:underline; }

/* Foco visible accesible (no mueve layout) */
#site-footer :is(a, button):focus-visible{
  outline: none;
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(34,204,211,.28));
  border-radius: .4rem;
}

/* ---------- Grid interno ---------- */
.footer-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 15px;
  max-width: var(--container, 1200px);
  margin-inline:auto;
  width:100%;
}

/* Redes sociales */
.footer-social ul{
  display:flex; gap:14px; margin:0; padding:0; list-style:none;
}
.footer-social a{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:999px;
  text-decoration:none; font-size:1.1rem; line-height:1;
  transition: transform .15s ease, background-color .15s ease;
  background: color-mix(in srgb, #000 0%, transparent); /* sutil */
  border: 1px solid rgba(255,255,255,.25);
}
.footer-social a:hover,
.footer-social a:focus-visible{
  transform: translateY(-1px);
  background: rgba(255,255,255,.18);
}

/* Texto / derechos */
.footer-text{
  flex:1; text-align:center;
  font-size:.85rem; line-height:1.45;
}

/* Enlaces legales */
.footer-links ul{
  display:flex; gap:10px; flex-wrap:wrap; margin:0; padding:0; list-style:none;
}
.footer-links a{
  color:#fff; text-decoration:none; font-size:.85rem;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible{ color:#fff; text-decoration:underline; }

/* ---------- Botón WhatsApp flotante ---------- */
.whatsapp-float{
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items:center; justify-content:center;
  text-decoration: none;
  background: #25D366; color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
  z-index: 2147483647;           /* por encima de overlays */
  pointer-events: auto;
  will-change: transform;
}
.whatsapp-float svg,
.whatsapp-float i{ width:28px; height:28px; line-height:1; flex:0 0 auto; }
.whatsapp-float:hover,
.whatsapp-float:focus-visible{ transform: translateY(-1px); }

/* Ajustes móviles */
@media (max-width: 480px){
  .whatsapp-float{ right:14px; width:54px; height:54px; }
}

/* ---------- Responsivo: 3 filas en móvil ---------- */
@media (max-width: 768px){
  .footer-container{ flex-direction:column; align-items:center; text-align:center; }
  .footer-social{ order:1; }
  .footer-text{   order:2; }
  .footer-links{  order:3; }
}

/* Alto contraste (opcional) */
@media (prefers-contrast: more){
  .footer-social a:hover,
  .footer-social a:focus-visible,
  .footer-links a:hover,
  .footer-links a:focus-visible{
    text-decoration: underline;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
}

/* Ocultar el botón en impresión */
@media print{
  .whatsapp-float{ display:none !important; }
}
