/* ─────────────────────────────────────────
   Residuos Card — carrusel
   Uso: <div class="rc-grid" id="residuos-grid"></div>
────────────────────────────────────────── */

.rc-wrapper {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.rc-card {
  background: #ffffff;
  border: 1px solid rgba(21, 96, 130, 0.12);
  border-radius: 20px;
  padding: 2rem 2rem 1.75rem;
  overflow: hidden;
  position: relative;
}

.rc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 2rem;
  width: 32px; height: 2px;
  background: #8DB4DA;
  transition: width 0.3s;
}
.rc-card:hover::before { width: 56px; }

.rc-year {
  font-family: 'Figtree', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #8DB4DA;
  text-align: center;
  margin-bottom: 0.2rem;
  line-height: 1;
}

.rc-period {
  font-family: 'Figtree', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4e6e7a;
  text-align: center;
  margin-bottom: 1.2rem;
}

.rc-pct-wrap {
  text-align: center;
  margin-bottom: 0.2rem;
  line-height: 1;
}

.rc-pct {
  font-family: 'Figtree', sans-serif;
  font-size: 3.8rem;
  font-weight: 300;
  color: #156082;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.rc-pct-suffix {
  font-size: 1.8rem;
  color: #8DB4DA;
  vertical-align: super;
}

.rc-pct-label {
  font-family: 'Figtree', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #4e6e7a;
  text-align: center;
  margin-bottom: 1.25rem;
}

.rc-bar-track {
  height: 14px;
  background: #E7F1F2;
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(21, 96, 130, 0.08);
}

.rc-bar-fill {
  height: 100%;
  width: 0%;
  background: #27B76F;
  border-radius: 100px;
}

.rc-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  border-top: 1px solid rgba(21, 96, 130, 0.1);
  padding-top: 1.25rem;
}

.rc-metric-label {
  font-family: 'Figtree', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4e6e7a;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}

.rc-metric-value {
  font-family: 'Figtree', sans-serif;
  font-size: 1.9rem;
  font-weight: 300;
  color: #156082;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ── Navegación del carrusel ── */
.rc-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.rc-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(21, 96, 130, 0.2);
  background: #ffffff;
  color: #156082;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.rc-btn:hover { background: #E7F1F2; }

.rc-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.rc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(21, 96, 130, 0.2);
  transition: background 0.2s, transform 0.2s;
}
.rc-dot.active {
  background: #156082;
  transform: scale(1.35);
}

/* ── Transición de slides ── */
.rc-slide {
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.rc-slide.out-left  { opacity: 0; transform: translateX(-30px); }
.rc-slide.out-right { opacity: 0; transform: translateX(30px);  }
.rc-slide.in        { opacity: 1; transform: translateX(0);     }

@media (max-width: 480px) {
  .rc-wrapper { max-width: 100%; }
  .rc-card { padding: 1.5rem 1.25rem; }
  .rc-pct { font-size: 3rem; }
}