/* ============================================================
   Circuitos component: "circuit numbers" card grid.
   ============================================================ */

.circuitos {
  background: var(--bg);
  padding: 8.75rem var(--pad-x);
}
.circuitos__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.circuitos__label {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.circuitos__h {
  font-size: var(--fz-h2);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 22ch;
  margin-bottom: 1.5rem;
}
.circuitos__h b {
  color: var(--blue);
}
.circuitos__intro {
  font-size: var(--fz-lead);
  line-height: 1.4;
  max-width: 52ch;
  color: #2a2a2a;
  margin-bottom: 5rem;
}
.circuitos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 860px) {
  .circuitos__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .circuitos {
    padding-top: 4rem;
  }
}

.circ {
  background: var(--white);
  border-radius: 0.375rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 20, 0.06);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  display: flex;
  flex-direction: column;
}
.circ:hover {
  transform: translateY(-0.1875rem);
  box-shadow: 0 1.875rem 3.75rem -1.25rem rgba(6, 96, 223, 0.18);
}
.circ__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--blue);
}
.circ__media__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.circ__media__grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0) 40%, rgba(20, 20, 20, 0.6) 100%);
}
.circ__media__label {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.9;
}
.circ__body {
  padding: 1.875rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.circ__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}
.circ__name {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 1.1;
}
.circ__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6a6a6a;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.circ__tag::before {
  content: '';
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--blue);
  flex: 0 0 auto;
}
.circ__tag--out::before {
  background: #2ee47b;
}
.circ__metrics {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.375rem;
}
.circ__metric strong {
  display: block;
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--black);
  font-variant-numeric: tabular-nums;
}
.circ__metric span {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6a6a6a;
}
.circ__desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #3a3a3a;
}
