/* ===================================================================
   CTA Kit — Dijital-Karma-style conversion buttons
   Theme: dark (SEO for LATAM)
   =================================================================== */

:root {
  --cta-accent: #81d4fa;
  --cta-accent-dark: #4fc3f7;
  --cta-bg: #0c0d0e;
  --cta-bg-hover: #15171a;
  --cta-text: #ffffff;
  --cta-radius: 999px;
  --cta-transition: 180ms ease-out;
  --cta-shadow: 0 8px 28px rgba(129, 212, 250, 0.18);
  --cta-shadow-hover: 0 12px 36px rgba(129, 212, 250, 0.28);
}

/* Base CTA reset */
.cta-primary,
.cta-secondary,
.cta-header,
.cta-link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: transform var(--cta-transition),
              background-color var(--cta-transition),
              box-shadow var(--cta-transition),
              color var(--cta-transition);
}

.cta-primary:focus-visible,
.cta-secondary:focus-visible,
.cta-header:focus-visible,
.cta-link:focus-visible {
  outline: 2px solid var(--cta-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .cta-primary,
  .cta-secondary,
  .cta-header,
  .cta-link {
    transition: none;
  }
}

/* Primary button */
.cta-primary {
  padding: 0.9rem 1.8rem;
  border-radius: var(--cta-radius);
  background: linear-gradient(135deg, var(--cta-accent) 0%, var(--cta-accent-dark) 100%);
  color: #050506;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  box-shadow: var(--cta-shadow);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--cta-shadow-hover);
  background: linear-gradient(135deg, #a3e0fb 0%, var(--cta-accent) 100%);
}

.cta-primary:active {
  transform: translateY(0);
}

/* Secondary / ghost button */
.cta-secondary {
  padding: 0.9rem 1.8rem;
  border-radius: var(--cta-radius);
  background: transparent;
  color: var(--cta-text);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 1.5px solid rgba(129, 212, 250, 0.5);
}

.cta-secondary:hover {
  background: rgba(129, 212, 250, 0.1);
  border-color: var(--cta-accent);
  color: var(--cta-accent);
}

/* Header CTA — compact pill */
.cta-header {
  padding: 0.55rem 1.15rem;
  border-radius: var(--cta-radius);
  background: var(--cta-accent);
  color: #050506;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cta-header:hover {
  background: #a3e0fb;
  transform: translateY(-1px);
}

/* Nav/menu CTA override — prevent Bricks nav styles from hiding it */
.hdr-nav .cta-header,
#brxe-menu-cta.cta-header {
  background: var(--cta-accent) !important;
  color: #050506 !important;
  padding: 0.55rem 1.15rem !important;
  font-size: 0.82rem !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  border: none !important;
  box-shadow: none !important;
  display: inline-flex !important;
}

.hdr-nav .cta-header:hover,
#brxe-menu-cta.cta-header:hover {
  background: #a3e0fb !important;
  color: #050506 !important;
}

@media (max-width: 768px) {
  .hdr-nav .cta-header,
  #brxe-menu-cta.cta-header {
    padding: 0.5rem 0.9rem !important;
    font-size: 0.78rem !important;
  }
}

/* Header-right CTA override — keep text dark on the accent pill */
#brxe-tifxhh.cta-header {
  background: var(--cta-accent) !important;
  color: #050506 !important;
  box-shadow: var(--cta-shadow) !important;
}

#brxe-tifxhh.cta-header:hover {
  background: #a3e0fb !important;
  color: #050506 !important;
}

@media (max-width: 767px) {
  #brxe-tifxhh.cta-header {
    padding: 0.7rem 1.1rem !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 480px) {
  #brxe-tifxhh.cta-header {
    padding: 0.6rem 0.85rem !important;
    font-size: 0.78rem !important;
  }
}

/* Text link with arrow for cards */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cta-accent);
  font-size: 0.9rem;
  font-weight: 600;
  background: none;
  padding: 0.25rem 0;
  border-bottom: 1.5px solid rgba(129, 212, 250, 0.35);
}

.cta-link::after {
  content: "→";
  transition: transform var(--cta-transition);
}

.cta-link:hover {
  color: #a3e0fb;
  border-bottom-color: var(--cta-accent);
}

.cta-link:hover::after {
  transform: translateX(4px);
}

/* Mobile sizing */
@media (max-width: 768px) {
  .cta-primary,
  .cta-secondary {
    padding: 0.8rem 1.4rem;
    font-size: 0.9rem;
  }

  .cta-header {
    padding: 0.5rem 0.9rem;
    font-size: 0.78rem;
  }
}

/* Container helpers */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cta-group--center {
  justify-content: center;
}


/* ===================================================================
   Usability improvements — mobile menu, scrollspy, back-to-top,
   form skeletons, FAQ, focus states
   =================================================================== */

/* Section anchors offset the sticky header when deep-linking */
.section-anchor {
  display: block;
  scroll-margin-top: 100px;
}

/* Mobile hamburger toggle */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: 0;
  flex: 0 0 auto;
}

.menu-toggle:hover {
  color: var(--cta-accent);
}

.menu-toggle:focus-visible,
.back-to-top:focus-visible,
.hdr-nav a.brxe-button:focus-visible {
  outline: 2px solid var(--cta-accent);
  outline-offset: 3px;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 767px) {
  .menu-toggle {
    display: inline-flex;
  }

  .hdr-pill {
    position: relative;
  }

  .hdr-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    padding: 16px !important;
    background: rgba(12, 13, 14, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
  }

  .hdr-nav.is-open {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hdr-nav a.brxe-button {
    justify-content: flex-start !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
  }

  .hdr-nav a.brxe-button:hover {
    background: rgba(255, 255, 255, 0.06) !important;
  }

  #brx-header .hdr-brand img {
    width: 72px !important;
    height: 72px !important;
  }

  #brx-header .hdr-brand .brxe-heading,
  #brx-header .hdr-brand h2 {
    font-size: 18px !important;
  }
}

@media (max-width: 480px) {
  #brx-header .hdr-brand img {
    width: 64px !important;
    height: 64px !important;
  }

  #brx-header .hdr-brand .brxe-heading,
  #brx-header .hdr-brand h2 {
    font-size: 16px !important;
  }
}

/* Active nav state */
.hdr-nav a.brxe-button.nav-active {
  color: var(--cta-accent) !important;
  background: rgba(129, 212, 250, 0.10) !important;
  border-radius: 999px;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cta-accent);
  color: #050506;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--cta-shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 250ms ease, transform 250ms ease, background-color 250ms ease;
  z-index: 1000;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #a3e0fb;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top,
  .hdr-nav {
    transition: none;
  }
}

/* Elfsight widget skeleton placeholders */
#brxe-hvcfsp,
#brxe-ghiypp {
  position: relative;
  min-height: 260px;
}

.elfsight-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0f1113 25%, #16191c 50%, #0f1113 75%);
  background-size: 200% 100%;
  border-radius: 16px;
  animation: cta-skeleton 1.4s infinite linear;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  pointer-events: none;
}

.elfsight-skeleton.is-loaded {
  opacity: 0;
  transition: opacity 300ms ease;
}

@keyframes cta-skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* FAQ section */
.ub-faq.brxe-section {
  padding: 80px 24px;
  background: #070709;
}

.ub-faq__container {
  max-width: 900px;
  margin: 0 auto;
}

.ub-faq__title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #fff;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 22px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--cta-accent);
  line-height: 1;
  flex: 0 0 auto;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item__answer {
  padding-top: 12px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .ub-faq.brxe-section {
    padding: 56px 20px;
  }

  .ub-faq__title {
    font-size: 1.6rem;
  }
}


/* Mobile-only sticky bottom contact bar (Dijital Karma style) */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 767px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(5, 5, 6, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 998;
    justify-content: space-around;
    align-items: center;
  }

  .mobile-cta-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    color: #ffffff;
    font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    transition: color 180ms ease;
    flex: 1 1 auto;
    min-width: 0;
  }

  .mobile-cta-bar__item svg {
    width: 24px;
    height: 24px;
    box-sizing: content-box;
    fill: #71FA4C;
    transition: fill 180ms ease;
  }

  .mobile-cta-bar__item:hover,
  .mobile-cta-bar__item:focus-visible {
    color: #71FA4C;
  }

  .mobile-cta-bar__item:hover svg,
  .mobile-cta-bar__item:focus-visible svg {
    fill: #ffffff;
  }

  .mobile-cta-bar__item:focus-visible {
    outline: 2px solid #71FA4C;
    outline-offset: 2px;
    border-radius: 8px;
  }

  /* Prominent middle Call button (Dijital Karma stacked-circle style) */
  .mobile-cta-bar__item--primary svg {
    width: 28px;
    height: 28px;
    padding: 14px;
    margin-top: -18px;
    background: #71FA4C;
    border-radius: 50%;
    fill: #000000;
    box-shadow: 0 6px 18px rgba(113, 250, 76, 0.4);
    transition: transform 180ms ease, box-shadow 180ms ease, fill 180ms ease;
  }

  .mobile-cta-bar__item--primary:hover svg,
  .mobile-cta-bar__item--primary:focus-visible svg {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(113, 250, 76, 0.55);
    background: #71FA4C;
    fill: #000000;
  }

  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .back-to-top {
    bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 480px) {
  .mobile-cta-bar__item {
    font-size: 0.65rem;
    padding: 6px 8px;
  }

  .mobile-cta-bar__item svg {
    width: 22px;
    height: 22px;
  }

  .mobile-cta-bar__item--primary svg {
    width: 24px;
    height: 24px;
    padding: 12px;
    margin-top: -14px;
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .back-to-top {
    bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }
}
