/**
 * Published Footer & Floating WhatsApp Styles
 * Reference: https://tenddy.shop/store/ayme-pet (T7 Footer & Floating WhatsApp)
 * Exact computed parity: rgb(20, 30, 51) navy footer, 4px #A61C2E crimson top border,
 * Instrument Sans typography, emerald floating WhatsApp CTA with Lucide MessageCircle outline icon.
 */

/* ==========================================================================
   WIDGET FLOTANTE DE WHATSAPP (REFERENCE FIDELITY)
   ========================================================================== */

.floating-whatsapp-widget,
aside[aria-label="Atención por WhatsApp"] {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Instrument Sans', 'Plus Jakarta Sans', sans-serif;
}

@media (min-width: 640px) {
  .floating-whatsapp-widget,
  aside[aria-label="Atención por WhatsApp"] {
    bottom: 24px;
    right: 24px;
    gap: 12px;
  }
}

.whatsapp-tooltip,
aside[aria-label="Atención por WhatsApp"] .whatsapp-tooltip {
  display: none;
  align-items: center;
  gap: 6px;
  opacity: 0;
  background-color: rgba(15, 23, 42, 0.95);
  background-color: oklab(0.208 -0.00310889 -0.0418848 / 0.95);
  color: #ffffff;
  font-family: 'Instrument Sans', 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid #334155;
  border: 1px solid oklch(0.372 0.044 257.287);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

@media (min-width: 640px) {
  .whatsapp-tooltip,
  aside[aria-label="Atención por WhatsApp"] .whatsapp-tooltip {
    display: inline-flex;
  }
}

.floating-whatsapp-widget:hover .whatsapp-tooltip,
aside[aria-label="Atención por WhatsApp"]:hover .whatsapp-tooltip,
.floating-whatsapp-widget:focus-within .whatsapp-tooltip,
aside[aria-label="Atención por WhatsApp"]:focus-within .whatsapp-tooltip {
  opacity: 1;
}

.whatsapp-tooltip svg {
  width: 14px;
  height: 14px;
  color: #34d399;
  color: oklch(0.765 0.177 163.223);
  flex-shrink: 0;
}

.floating-whatsapp-btn,
aside[aria-label="Atención por WhatsApp"] a {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background-color: #10b981;
  background-color: oklch(0.696 0.17 162.48);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(5, 150, 105, 0.4);
  box-shadow: 0 25px 50px -12px oklab(0.596 -0.13883 0.041849 / 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  border: 0 solid #ffffff;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .floating-whatsapp-btn,
  aside[aria-label="Atención por WhatsApp"] a {
    width: 52px;
    height: 52px;
  }
}

.floating-whatsapp-btn:hover,
aside[aria-label="Atención por WhatsApp"] a:hover {
  background-color: #34d399;
  background-color: oklch(0.765 0.177 163.223);
  transform: scale(1.08);
}

.floating-whatsapp-btn:active,
aside[aria-label="Atención por WhatsApp"] a:active {
  transform: scale(0.95);
}

.floating-whatsapp-btn:focus-visible,
aside[aria-label="Atención por WhatsApp"] a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.floating-whatsapp-btn .lucide-message-circle,
aside[aria-label="Atención por WhatsApp"] a .lucide-message-circle {
  width: 24px;
  height: 24px;
  color: #ffffff;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .floating-whatsapp-btn .lucide-message-circle,
  aside[aria-label="Atención por WhatsApp"] a .lucide-message-circle {
    width: 28px;
    height: 28px;
  }
}

/* Ping badge indicator */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.ping-badge-pulse,
aside[aria-label="Atención por WhatsApp"] a span.animate-ping {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background-color: #6ee7b7;
  background-color: oklch(0.845 0.143 164.978);
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
  pointer-events: none;
}

@media (min-width: 640px) {
  .ping-badge-pulse,
  aside[aria-label="Atención por WhatsApp"] a span.animate-ping {
    width: 14px;
    height: 14px;
  }
}

.ping-badge-solid,
aside[aria-label="Atención por WhatsApp"] a span.border-2 {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background-color: #34d399;
  background-color: oklch(0.765 0.177 163.223);
  border: 2px solid #ffffff;
  pointer-events: none;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .ping-badge-solid,
  aside[aria-label="Atención por WhatsApp"] a span.border-2 {
    width: 14px;
    height: 14px;
  }
}

/* Nonessential ping animation disabled under reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ping-badge-pulse,
  aside[aria-label="Atención por WhatsApp"] a span.animate-ping {
    animation: none;
    display: none;
  }
  .floating-whatsapp-btn,
  aside[aria-label="Atención por WhatsApp"] a {
    transition: none;
  }
}

/* ==========================================================================
   CORPORATE FOOTER (REFERENCE FIDELITY)
   ========================================================================== */

.site-footer,
footer.published-footer {
  display: block;
  position: static;
  width: 100%;
  max-width: none;
  background-color: rgb(20, 30, 51);
  border-top: 4px solid #A61C2E;
  padding: 72px 0 32px;
  margin: 0;
  font-family: 'Instrument Sans', 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 25.6px;
  letter-spacing: normal;
  color: rgb(248, 250, 252);
  box-sizing: border-box;
}

.site-footer .container {
  display: block;
  position: static;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.site-footer .footer-bottom-row {
  display: flex;
  position: static;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  gap: 16px;
  font-family: 'Instrument Sans', 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 25.6px;
  color: rgb(248, 250, 252);
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.site-footer .copyright-text,
.copyright-text {
  display: block;
  position: static;
  margin: 0;
  padding: 0;
  font-family: 'Instrument Sans', 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 25.6px;
  color: rgb(248, 250, 252);
}

/* Responsive badges / version container */
.site-footer .flex {
  display: flex;
}

.site-footer .flex-col {
  flex-direction: column;
}

.site-footer .items-start {
  align-items: flex-start;
}

.site-footer .gap-3 {
  gap: 12px;
}

.site-footer .mt-3 {
  margin-top: 12px;
}

@media (min-width: 640px) {
  .site-footer .sm\:flex-row {
    flex-direction: row;
  }
  .site-footer .sm\:items-center {
    align-items: center;
  }
  .site-footer .sm\:mt-0 {
    margin-top: 0;
  }
}

/* Quality badges row */
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: 'Instrument Sans', 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: #94a3b8;
  color: oklch(0.704 0.04 256.788);
}

@media (min-width: 640px) {
  .footer-badges {
    gap: 16px;
  }
}

.footer-badges .inline-flex {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-badges svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.footer-badges .text-amber-400 {
  color: #fbbf24;
}

.footer-badges .text-emerald-400 {
  color: #34d399;
}

.footer-badges .text-sky-400 {
  color: #38bdf8;
}

.site-footer .hidden {
  display: none;
}

@media (min-width: 640px) {
  .site-footer .sm\:inline {
    display: inline;
  }
}

/* Version pill badge */
.site-footer span.font-mono {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid #1e293b;
  border: 1px solid oklch(0.279 0.041 260.031);
  background-color: #0f172a;
  background-color: oklch(0.208 0.042 265.755);
  color: #94a3b8;
  color: oklch(0.704 0.04 256.788);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  box-sizing: border-box;
}

.site-footer span.font-mono .bg-emerald-500 {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: #10b981;
  background-color: oklch(0.696 0.17 162.48);
  display: block;
  flex-shrink: 0;
}

.site-footer span.font-mono .font-bold {
  font-weight: 700;
}
