/* Cartões em movimento: edita os temas e cores em datos.js e neste bloco. */
.bca {
  --bca-gap: clamp(6px, .65vw, 12px);
  --bca-duration: 60s;
  position: relative;
  min-width: 0;
  color: #eef8ff;
  font-family: Manrope, Arial, sans-serif;
}
.bca, .bca * { box-sizing: border-box; }
.bca-stage {
  position: relative;
  width: 100%;
  aspect-ratio: .9;
  overflow: hidden;
  isolation: isolate;
}
.bca-stage::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 15%;
  background: linear-gradient(to bottom, var(--bca-fade, #bedceb), transparent);
  pointer-events: none;
}
.bca-columns {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--bca-gap);
}
.bca-column { min-width: 0; overflow: hidden; }
.bca-track {
  animation: bca-down var(--bca-duration) linear infinite;
  will-change: transform;
}
.bca-column:nth-child(2) .bca-track {
  animation-name: bca-up;
  animation-delay: -8s;
}
.bca-column.is-paused .bca-track { animation-play-state: paused; }
.bca-group {
  display: flex;
  flex-direction: column;
  gap: var(--bca-gap);
  padding-bottom: var(--bca-gap);
}
.bca-card {
  --bca-light: #1c77d0;
  --bca-accent: #a9e6ff;
  --bca-base: #031532;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.38;
  overflow: hidden;
  border-radius: clamp(6px, .55vw, 11px);
  background: #103657;
  cursor: pointer;
}
.bca-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bca-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 28% 44% 28%;
  align-items: center;
  padding: 8% 8% 7%;
  text-align: center;
  background:
    radial-gradient(ellipse at 78% -10%, var(--bca-light) 0%, transparent 43%),
    radial-gradient(ellipse at 42% 115%, var(--bca-light) 0%, transparent 43%),
    linear-gradient(145deg, #092957, var(--bca-base) 58%, #071c40);
  opacity: 0;
  transition: opacity .28s ease;
}
.bca-face::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(154deg, transparent 16%, #7fdfff20 16.2%, transparent 16.8%, transparent 69%, #64c9ff1c 69.2%, transparent 69.7%);
  pointer-events: none;
}
.bca-card.is-active .bca-face { opacity: 1; }
.bca-topic, .bca-value, .bca-caption { position: relative; display: block; margin: 0; }
.bca-topic {
  align-self: center;
  font-size: clamp(11px, 1.05vw, 19px);
  line-height: 1.15;
  font-weight: 750;
  text-transform: uppercase;
  background: linear-gradient(120deg, #f5fbff 12%, var(--bca-accent) 90%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bca-value {
  align-self: center;
  font-size: clamp(18px, 1.9vw, 34px);
  line-height: 1.1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #f5fbff 12%, var(--bca-accent) 90%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  overflow-wrap: anywhere;
}
.bca-caption {
  align-self: end;
  font-size: clamp(9px, .67vw, 12px);
  line-height: 1.45;
  font-weight: 500;
  color: #f2f8ff;
  text-wrap: balance;
}
.bca-card[data-cor="visitantes"] { --bca-light: #13677e; --bca-accent: #9ae6eb; --bca-base: #031d30; }
.bca-card[data-cor="trabalho"] { --bca-light: #2456b6; --bca-accent: #9acafa; }
.bca-card[data-cor="economia"] { --bca-light: #347596; --bca-accent: #b2ebf3; --bca-base: #052135; }
.bca-card[data-cor="hospedagem"] { --bca-light: #2584b8; --bca-accent: #aceaff; --bca-base: #06243c; }
.bca-card[data-cor="pessoas"] { --bca-light: #6755a0; --bca-accent: #ddd1ff; --bca-base: #171337; }
.bca-card[data-cor="cadastur"] { --bca-light: #434f9f; --bca-accent: #c1d3ff; --bca-base: #0b1737; }
.bca-card[data-cor="alimentacao"] { --bca-light: #8d5a42; --bca-accent: #ffdbb5; --bca-base: #241924; }
@keyframes bca-up { from { transform: translateY(0); } to { transform: translateY(calc(-100% / var(--bca-groups, 2))); } }
@keyframes bca-down { from { transform: translateY(calc(-100% / var(--bca-groups, 2))); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .bca-track { animation-play-state: paused !important; }
  .bca-face { transition: none; }
}
