/* site-enhance.css — WhatsApp floating button + cookie notice (see site-enhance.js).
 * Position and size of .dc-wa-fab are set at runtime from the "Top" button;
 * the values below are only the fallback before the script runs.
 */

.dc-wa-fab {
  position: fixed;
  right: 16px;
  bottom: 86px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  z-index: 121;
  cursor: pointer;
  transition: bottom 220ms ease, transform 150ms ease;
}
.dc-wa-fab svg {
  position: relative;
  width: 58%;
  height: 58%;
  display: block;
}
.dc-wa-fab:hover {
  transform: scale(1.06);
}
.dc-wa-fab:focus-visible {
  outline: 3px solid #0b7a3a;
  outline-offset: 3px;
}

/* Continuous attention pulse: an expanding green ring */
.dc-wa-fab::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  animation: dcWaPulse 1.8s ease-out infinite;
}
@keyframes dcWaPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dc-wa-fab::after {
    animation: none;
  }
}

/* While the cookie notice is open, lift the Top button above it (the WhatsApp button follows) */
html.dc-cookie-open .floating-top {
  margin-bottom: var(--dc-cookie-offset, 0px);
}

.dc-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  width: 100%;
  background: rgba(20, 19, 18, 0.95);
  color: #fff;
  font: 14px/1.5 Arial, 'Microsoft YaHei', 'PingFang SC', sans-serif;
  z-index: 9998;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
}
.dc-cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dc-cookie p {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.dc-cookie p a {
  color: #9be7b4;
}
.dc-cookie-actions {
  display: flex;
  gap: 10px;
  flex: none;
}
.dc-cookie button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}
.dc-cookie .accept {
  background: #25d366;
  color: #06210f;
  font-weight: 600;
}
.dc-cookie .decline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Phones: keep the notice short so it does not cover the page */
@media (max-width: 640px) {
  .dc-cookie {
    font-size: 12.5px;
    line-height: 1.45;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .dc-cookie-inner {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .dc-cookie p {
    flex-basis: 100%;
  }
  .dc-cookie-actions {
    margin-left: auto;
    gap: 8px;
  }
  .dc-cookie button {
    min-height: 34px;
    padding: 0 14px;
  }
}

/* Social links in the footer (rendered only when a URL is configured in site-enhance.js) */
.dc-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 8px;
}
.dc-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.82);
  transition: color 160ms ease, border-color 160ms ease;
}
.dc-social a:hover,
.dc-social a:focus-visible {
  color: #d39a00;
  border-color: #d39a00;
}
.dc-social svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.site-footer nav:has(.dc-social) {
  align-items: center;
}
@media (max-width: 640px) {
  .dc-social {
    flex-basis: 100%;
    margin: 0 0 6px;
  }
}

/* Longer Spanish labels need a little more room beside the language and quote controls. */
@media (min-width: 981px) {
  html[lang="es"] body .primary-nav {
    gap: 18px;
    left: 45%;
  }
}
