/* Hanken Grotesk se carga via <link> en head.php para no bloquear el render */

.visually-hidden{
    display: none !important;
}

:root {
    --celeste: #0097C4;
    --celeste-dark: #006F8E;
    --celeste-light: #E0F4FA;
    --naranja: #f60507;
    --naranja-dark: #c40406;
    --naranja-light: #fde0e1;
    --blanco: #FFFFFF;
    --gris-claro: #F5F7F9;
    --gris-medio: #DEE4EA;
    --gris-texto: #4A5568;
    --negro: #1A202C;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0); /* Transparente */
}

::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0); /* Transparente */
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* anchors no quedan tapados por el navbar fijo */
}

body{
    width: 100%;
    background-color: var(--bg);
}

/* ---- Spacer para navbar fijo en paginas sin hero ---- */
.navbar-spacer {
    height: 72px;
}

body.has-hero .navbar-spacer {
    display: none;
}

@media (min-width: 768px) {
    .navbar-spacer {
        height: 78px;
    }
    html {
        scroll-padding-top: 90px;
    }
}

*{
    box-sizing: border-box;
    font-family: "Hanken Grotesk", "Hanken Grotesk Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    margin: 0px;
    padding: 0px;
    list-style: none;
    text-decoration: none;
}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 300,
  'GRAD' 0,
  'opsz' 24
}

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.32), 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wa-float i {
  color: inherit;
  font-size: 2rem;
  line-height: 1;
}

.wa-float:hover,
.wa-float:focus-visible {
  background: #1ebe5d;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(37, 211, 102, 0.38), 0 10px 22px rgba(0, 0, 0, 0.22);
}

/* ---- Bubble de estado al lado del boton flotante ---- */
.wa-float-bubble {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: #1f2937;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  padding: 7px 13px 7px 11px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  pointer-events: none;
  animation: wa-bubble-hide 4s ease-in forwards;
}

@keyframes wa-bubble-hide {
  0%, 75%  { opacity: 1; visibility: visible; }
  100%     { opacity: 0; visibility: hidden; }
}

.wa-float-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wa-float.is-online .wa-float-dot {
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: wa-pulse 1.8s ease-out infinite;
}

.wa-float.is-offline .wa-float-dot {
  background: #9ca3af;
}

.wa-float.is-offline .wa-float-text {
  color: #4b5563;
}

@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float.is-online .wa-float-dot { animation: none; }
}

@media (max-width: 640px) {
  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .wa-float i {
    font-size: 1.85rem;
  }

  .wa-float-bubble {
    font-size: 12px;
    padding: 6px 11px 6px 10px;
    right: calc(100% + 8px);
  }
}
