/* ============================================================
   SEÇÃO COMPARATIVO — Carrossel antes/depois
   ============================================================ */

.comparativo {
  background: var(--color-bg-alt);
  padding: 80px 0 88px;
}

/* ── Header ── */
.comparativo__header {
  text-align: center;
  margin-bottom: 40px;
}

.comparativo__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 16px;
}

.comparativo__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--color-text);
  margin-bottom: 12px;
}

.comparativo__title em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--color-teal);
}

.comparativo__sub {
  font-size: var(--size-base);
  color: var(--color-text-muted);
  max-width: 400px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* ══════════════════════════════════════════
   TOGGLE
══════════════════════════════════════════ */
.cmp-toggle {
  display: flex;
  background: rgba(0,0,0,0.06);
  border-radius: 40px;
  padding: 5px;
  max-width: 340px;
  margin: 0 auto 36px;
  position: relative;
}

.cmp-toggle__track {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 32px;
  background: #EF4444;
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1), background 0.32s ease;
}

.cmp-toggle__track.is-good {
  transform: translateX(100%);
  background: var(--color-teal);
}

.cmp-toggle__btn {
  flex: 1;
  position: relative;
  z-index: 1;
  padding: 10px 0;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color 0.22s ease;
  border-radius: 32px;
}

.cmp-toggle__btn.active { color: #fff; }

/* ══════════════════════════════════════════
   STAGE — container relativo para animação
══════════════════════════════════════════ */
.cmp-stage {
  position: relative;
  min-height: 200px;
}

/* ══════════════════════════════════════════
   CARD
══════════════════════════════════════════ */
.cmp-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--color-border-soft);
  box-shadow: 0 4px 40px rgba(0,0,0,0.07);
  overflow: hidden;
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.cmp-card[aria-hidden="true"] {
  display: none;
}

/* ── Barra de estado ── */
.cmp-card__bar {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-bottom: 1px solid var(--color-border-soft);
}

.cmp-card__bar--bad  { background: rgba(239,68,68,0.05); color: #EF4444; }
.cmp-card__bar--good { background: rgba(0,180,166,0.05); color: var(--color-teal-dark); }

/* ── Vídeo ── */
.cmp-card__video {
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
}

.cmp-card__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Pontos ── */
.cmp-card__points {
  padding: 4px 0;
}

.cmp-card__point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border-soft);
  transition: background 0.18s;
}

.cmp-card__point:last-child { border-bottom: none; }
.cmp-card__point:hover { background: rgba(0,0,0,0.015); }

.cmp-card__icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.cmp-card__title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: var(--weight-bold);
  margin-bottom: 4px;
  line-height: 1.3;
}

.cmp-card--bad  .cmp-card__title { color: #B91C1C; }
.cmp-card--good .cmp-card__title { color: #0F766E; }

.cmp-card__desc {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════════
   NAVEGAÇÃO INFERIOR
══════════════════════════════════════════ */
.cmp-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.cmp-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  padding: 0;
}

.cmp-arrow:hover {
  background: var(--color-text);
  color: #fff;
  border-color: transparent;
  transform: scale(1.07);
}

.cmp-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cmp-dot {
  height: 4px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 28px;
  transition: width 0.3s ease, background 0.3s ease;
}

.cmp-dot--bad  { background: #FCA5A5; }
.cmp-dot--good { background: #99F6E4; }

.cmp-dot--bad.active  { width: 52px; background: #EF4444; }
.cmp-dot--good.active { width: 52px; background: var(--color-teal); }

/* ══════════════════════════════════════════
   RESPONSIVO
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .comparativo { padding: 60px 0 68px; }
  .cmp-toggle  { max-width: 300px; }
  .cmp-card__bar { padding: 11px 18px; }
  .cmp-card__point { padding: 15px 18px; gap: 12px; }
  .cmp-card__icon { font-size: 20px; }
  .cmp-card__video { aspect-ratio: 4 / 3; }
}

@media (max-width: 480px) {
  .cmp-toggle__btn { font-size: 10px; padding: 9px 0; }
  .cmp-card__desc  { font-size: 13px; }
  .cmp-arrow { width: 40px; height: 40px; font-size: 16px; }
}
