/* —— Help widget (¿Dudas?) — Holoform compact —— */
.bb-help-widget {
  --bb-accent-blue: #426fff;
  --bb-accent-blue-deep: #423dff;
  --bb-edge: linear-gradient(
    135deg,
    color-mix(in srgb, var(--bb-accent-blue) 35%, transparent),
    transparent 42%,
    color-mix(in srgb, var(--bb-accent-blue-deep) 28%, transparent)
  );
  --bb-help-inset: 1.25rem;
  --bb-help-panel-width: min(24rem, calc(100vw - 2rem));
  position: fixed;
  right: var(--bb-help-inset);
  bottom: var(--bb-help-inset);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  max-width: var(--bb-help-panel-width);
  pointer-events: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bb-help-widget > * {
  pointer-events: auto;
}

.bb-help-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem 0.55rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--bb-accent-blue) 28%, rgba(255, 255, 255, 0.9));
  border-radius: 999px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 100%);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  color: color-mix(in srgb, var(--bb-accent-blue-deep) 70%, var(--color-text, #111));
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  box-shadow:
    0 14px 36px color-mix(in srgb, var(--bb-accent-blue) 14%, transparent),
    0 4px 12px rgba(17, 24, 39, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition:
    transform 0.28s var(--holo-motion-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 0.28s ease,
    border-color 0.2s ease;
}

.bb-help-toggle::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--bb-edge, linear-gradient(135deg, var(--bb-accent-blue), var(--bb-accent-blue-deep)));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.45;
  pointer-events: none;
}

.bb-help-toggle__pulse {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--bb-accent-blue) 35%, transparent);
  opacity: 0;
  animation: bb-help-toggle-pulse 4.5s ease-in-out infinite;
  pointer-events: none;
}

.bb-help-toggle__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--bb-accent-blue);
  filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--bb-accent-blue) 25%, transparent));
}

.bb-help-toggle:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--bb-accent-blue) 42%, #fff);
  box-shadow:
    0 18px 44px color-mix(in srgb, var(--bb-accent-blue) 18%, transparent),
    0 6px 16px rgba(17, 24, 39, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.bb-help-toggle:focus-visible {
  outline: 2px solid var(--bb-accent-blue);
  outline-offset: 3px;
}

.bb-help-panel {
  width: var(--bb-help-panel-width);
  max-height: min(70vh, 32rem);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1.125rem 1.125rem 1rem;
  border-radius: 1.35rem;
  border: 1px solid color-mix(in srgb, var(--bb-accent-blue) 14%, rgba(255, 255, 255, 0.65));
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--bb-accent-blue) 8%, transparent), transparent 55%),
    linear-gradient(168deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 100%);
  backdrop-filter: blur(24px) saturate(1.12);
  -webkit-backdrop-filter: blur(24px) saturate(1.12);
  box-shadow:
    0 28px 64px rgba(17, 24, 39, 0.14),
    0 10px 24px color-mix(in srgb, var(--bb-accent-blue) 10%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  transition:
    opacity 0.32s var(--holo-motion-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 0.32s var(--holo-motion-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    visibility 0s linear 0.32s;
}

.bb-help-panel.bb-help-panel--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.32s var(--holo-motion-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 0.32s var(--holo-motion-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    visibility 0s;
}

.bb-help-header {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border, #e5e7eb) 70%, var(--bb-accent-blue) 8%);
}

.bb-help-avatar {
  position: relative;
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, color-mix(in srgb, var(--bb-accent-blue) 18%, #fff), #fff);
  border: 1px solid color-mix(in srgb, var(--bb-accent-blue) 22%, #fff);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--bb-accent-blue) 8%, transparent),
    0 8px 20px color-mix(in srgb, var(--bb-accent-blue) 12%, transparent);
}

.bb-help-avatar__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bb-help-avatar__fallback {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--bb-accent-blue-deep);
}

.bb-help-avatar--loading .bb-help-avatar__fallback {
  display: none;
}

.bb-help-avatar--loading .bb-help-avatar__img {
  display: block;
  opacity: 0.35;
}

.bb-help-avatar--fallback .bb-help-avatar__fallback {
  display: grid;
}

.bb-help-avatar--fallback .bb-help-avatar__img {
  display: none;
}

.bb-help-avatar--has-photo .bb-help-avatar__fallback {
  display: none;
}

.bb-help-avatar--has-photo .bb-help-avatar__img {
  display: block;
  opacity: 1;
}

.bb-help-header__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text, #111827);
}

.bb-help-header__line {
  display: block;
}

.bb-help-header__sub {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--color-text-muted, #6b7280);
}

.bb-help-faq {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bb-help-faq__item {
  border-radius: 0.85rem;
  border: 1px solid color-mix(in srgb, var(--color-border, #e5e7eb) 80%, var(--bb-accent-blue) 6%);
  background: color-mix(in srgb, #fff 88%, var(--bb-accent-blue) 2%);
  overflow: hidden;
}

.bb-help-faq__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.bb-help-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 0;
  background: transparent;
  color: var(--color-text, #111827);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.bb-help-question__main {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}

.bb-help-question__text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.bb-help-question__topic {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--bb-accent-blue);
}

.bb-help-question:hover {
  background: color-mix(in srgb, var(--bb-accent-blue) 6%, #fff);
  color: color-mix(in srgb, var(--bb-accent-blue-deep) 55%, var(--color-text, #111));
}

.bb-help-question:focus-visible {
  outline: 2px solid var(--bb-accent-blue);
  outline-offset: -2px;
}

.bb-help-question__chevron {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: color-mix(in srgb, var(--bb-accent-blue) 70%, #6b7280);
  transition: transform 0.28s var(--holo-motion-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.bb-help-question.is-expanded .bb-help-question__chevron {
  transform: rotate(180deg);
}

.bb-help-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.35s var(--holo-motion-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    opacity 0.25s ease;
}

.bb-help-answer.is-expanded {
  max-height: 16rem;
  opacity: 1;
}

.bb-help-answer p {
  margin: 0;
  padding: 0 0.85rem 0.8rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-text-muted, #6b7280);
}

.bb-help-team {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: color-mix(in srgb, var(--color-text-muted, #6b7280) 92%, #000);
}

.bb-help-team-link {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent-blue, #426fff);
  text-decoration: none;
}

.bb-help-team-link:hover {
  text-decoration: underline;
}

.bb-help-owner {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid color-mix(in srgb, var(--color-border, #e5e7eb) 70%, var(--bb-accent-blue) 8%);
}

.bb-help-contact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--bb-accent-blue) 22%, #fff);
  background: linear-gradient(135deg, color-mix(in srgb, var(--bb-accent-blue) 8%, #fff), #fff);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.25s var(--holo-motion-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 0.25s ease,
    border-color 0.2s ease;
}

.bb-help-contact:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--bb-accent-blue) 38%, #fff);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--bb-accent-blue) 14%, transparent);
}

.bb-help-contact:focus-visible {
  outline: 2px solid var(--bb-accent-blue);
  outline-offset: 2px;
}

.bb-help-contact__title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text, #111827);
}

.bb-help-contact__email {
  font-size: 0.75rem;
  color: var(--bb-accent-blue);
  font-weight: 600;
}

@keyframes bb-help-toggle-pulse {
  0%,
  72%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
  78% {
    opacity: 0.55;
    transform: scale(1.06);
  }
  86% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@media (max-width: 47.99rem) {
  .bb-help-widget {
    --bb-help-inset: 1rem;
    --bb-help-panel-width: calc(100vw - 2rem);
    left: 1rem;
    right: 1rem;
    bottom: 5.5rem;
    align-items: stretch;
    max-width: none;
  }

  .bb-help-panel {
    transform-origin: bottom center;
  }

  .bb-help-toggle {
    align-self: flex-end;
    min-height: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bb-help-toggle,
  .bb-help-panel,
  .bb-help-question,
  .bb-help-question__chevron,
  .bb-help-answer,
  .bb-help-contact {
    transition-duration: 0.001ms !important;
  }

  .bb-help-toggle__pulse {
    animation: none;
  }

  .bb-help-panel {
    transform: none;
  }

  .bb-help-panel.bb-help-panel--open {
    transform: none;
  }
}

/* —— Pago seguro (footer, help panel, toggle) —— */
.bloqio-secure-pay {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.bloqio-secure-pay__head {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.bloqio-secure-pay__lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: color-mix(in srgb, var(--color-identity, #444) 82%, #000);
}

.bloqio-secure-pay__lock svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bloqio-secure-pay__title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--color-text, #111) 88%, #000);
}

.bloqio-secure-pay__providers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.bloqio-secure-pay__logo {
  display: block;
  width: auto;
  height: 1.35rem;
  max-width: 6.5rem;
  object-fit: contain;
  object-position: left center;
}

.bloqio-secure-pay__logo--stripe {
  max-width: 5.75rem;
  aspect-ratio: 360 / 150;
}

.bloqio-secure-pay__logo--mp {
  height: 1.5rem;
  max-width: 7.25rem;
}

.bloqio-secure-pay__note {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--color-text-muted, #6b7280);
}

.bloqio-secure-pay--panel {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid color-mix(in srgb, var(--color-border, #e5e7eb) 80%, transparent);
  width: 100%;
}

.bloqio-secure-pay--answer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--color-border, #e5e7eb) 72%, transparent);
  width: 100%;
}

.bloqio-secure-pay--answer .bloqio-secure-pay__lead {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: color-mix(in srgb, var(--color-text, #111) 86%, #000);
}

.bloqio-secure-pay--answer .bloqio-secure-pay__lock {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.bloqio-secure-pay--answer .bloqio-secure-pay__note {
  margin-top: 0.15rem;
}

.bb-help-answer .bloqio-secure-pay--answer {
  margin-bottom: 0;
}
