/* ── Problema Section ── */
.problem-section {
  padding: 8rem 0;
  background-color: #F8FAFC;
  background-image: radial-gradient(circle at 1px 1px, rgba(15,61,76,0.06) 1px, transparent 0);
  background-size: 28px 28px;
  border-bottom: 1px solid #E5E7EB;
}

.problem-tag {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.2);
}

.problem-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0B2E3A;
  margin: 0 0 1.25rem;
}

.problem-caos {
  color: #dc2626;
}

.problem-equipe {
  color: #D4AF37;
}

.problem-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.problem-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 1.25rem;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.problem-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.problem-icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(15, 61, 76, 0.07);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  padding: 0.5rem;
}

.problem-icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke: #0F3D4C;
  fill: none;
}

.problem-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0B2E3A;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.problem-card p {
  font-size: 0.82rem;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

/* Phone mockup */
.problem-phone {
  position: relative;
  width: 220px;
  flex-shrink: 0;
}

.problem-phone-frame {
  background: #0B2E3A;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  position: relative;
}

.problem-wpp-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  z-index: 2;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.problem-phone-screen {
  background: #ece5dd;
  border-radius: 28px;
  overflow: hidden;
  min-height: 340px;
}

.phone-chat-header {
  background: #075e54;
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.phone-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
}

.phone-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.phone-header-info span {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.phone-header-info small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
}

.phone-unread-badge {
  background: #dc2626;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-messages {
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.phone-msg {
  max-width: 80%;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.phone-msg span:first-child {
  background: #fff;
  border-radius: 8px 8px 8px 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.7rem;
  color: #0B2E3A;
  line-height: 1.4;
}

.phone-msg.phone-sent {
  align-self: flex-end;
}

.phone-msg.phone-sent span:first-child {
  background: #d9fdd3;
  border-radius: 8px 8px 0 8px;
}

.phone-time {
  font-size: 0.58rem;
  color: #94a3b8;
  align-self: flex-end;
}

.phone-alert-badge {
  align-self: flex-end;
  background: #fff3cd;
  border: 1px solid #fbbf24;
  color: #92400e;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
}

.phone-lead-badge {
  align-self: flex-start;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #92400e;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
}

.phone-unread-5 {
  align-self: flex-end;
  background: #dc2626;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Solution bar */
.problem-solution {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #FFFFFF;
  border-left: 4px solid #0F3D4C;
  border-radius: 0 16px 16px 0;
  padding: 1.25rem 1.5rem;
  max-width: 600px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.problem-solution-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
}

.problem-solution-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.problem-solution p {
  margin: 0;
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
  .problem-layout {
    grid-template-columns: 1fr;
  }

  .problem-phone {
    display: none;
  }
}

@media (max-width: 640px) {
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-title {
    font-size: 1.75rem;
  }
}
