/* ============================================================
   THM — Before/After Component (Tu clínica, antes y después)
   Sustituye a las antiguas secciones Dolor + Nueva Era + Transformación:
   el mismo mensaje, contado una sola vez y lado a lado.
   ============================================================ */

.ba {
  background: var(--color-bg);
  position: relative;
}

.ba__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: stretch;
}

.ba__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-card);
}

.ba__col--after {
  border-color: rgba(5, 150, 105, 0.3);
  background: linear-gradient(180deg, rgba(5, 150, 105, 0.05) 0%, var(--color-bg-card) 55%);
  box-shadow: var(--shadow-md);
}

.ba__col--before {
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.04) 0%, var(--color-bg-card) 55%);
}

.ba__label {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.ba__col--before .ba__label {
  color: #b91c1c;                      /* AA sobre el fondo rosado */
  background: rgba(220, 38, 38, 0.08);
}

.ba__col--after .ba__label {
  color: var(--color-success-strong);
  background: rgba(5, 150, 105, 0.1);
}

.ba__head h3 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  line-height: 1.25;
}

/* Mini-UI: notificaciones del móvil — lo que ve el dueño de la clínica */
.ba__visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: #0f172a;
}

.ba__notif {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.ba__visual--before .ba__notif:nth-child(2) { opacity: 0.85; }
.ba__visual--before .ba__notif:nth-child(3) { opacity: 0.7; }

.ba__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.ba__dot--red   { background: var(--color-error); box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.25); }
.ba__dot--amber { background: var(--color-warning); }
.ba__dot--green { background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25); }
.ba__dot--blue  { background: var(--color-accent-2); }

.ba__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ba__item {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.55;
}

.ba__item strong {
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
}

.ba__mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ba__col--before .ba__mark { color: var(--color-error);   background: rgba(220, 38, 38, 0.1); }
.ba__col--after  .ba__mark { color: var(--color-success); background: rgba(5, 150, 105, 0.12); }

.ba__closing {
  max-width: 640px;
  margin: var(--space-12) auto 0;
  text-align: center;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}

@media (max-width: 900px) {
  .ba__grid { grid-template-columns: 1fr; }
  .ba__col  { padding: var(--space-6); }
}
