/* ============================================
   INFOGRÁFICO: MATRIZ DE HOSPITAIS E REDE
   Arquivo: infografo.css
   ============================================ */

/* 1. Introdução e Container Principal */
.intro-destaque {
  font-size: 18px;
  line-height: 1.7;
  color: #4a4a4a;
  margin-bottom: 40px;
  max-width: 900px;
}

.infografico-matriz {
  background: #ffffff;
  border: 1px solid #e8e0d5;
  border-radius: 12px;
  padding: 32px;
  margin: 40px 0;
  box-shadow: 0 8px 24px rgba(151, 116, 51, 0.08);
}

.infografico-matriz h2 {
  font-size: 24px;
  color: #1a1a1a;
  margin-bottom: 8px;
  margin-top: 0;
}

.subtitulo-matriz {
  color: #666;
  margin-bottom: 24px;
  font-size: 16px;
}

/* 2. Tabela Matriz (O Infográfico em si) */
.tabela-responsiva {
  width: 100%;
  overflow-x: auto; /* Permite rolagem horizontal no celular */
  margin-bottom: 20px;
  border-radius: 8px;
}

.tabela-matriz-infografico {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
  min-width: 600px; /* Garante que a tabela não quebre no mobile */
}

.tabela-matriz-infografico th {
  background: #2c2c2c;
  color: #ffffff;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
}

.tabela-matriz-infografico th:first-child {
  text-align: left;
  width: 25%;
}

.tabela-matriz-infografico td {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  color: #333;
}

.tabela-matriz-infografico td:first-child {
  text-align: left;
  font-weight: 600;
  color: #1a1a1a;
  background: #faf8f5;
}

.hospital-nome {
  display: flex;
  flex-direction: column;
}

.hospital-bairro {
  display: block;
  font-size: 13px;
  color: #777;
  font-weight: 400;
  margin-top: 4px;
}

/* 3. Cores de Status (Semáforo Visual) */
.status-sim {
  color: #2e7d32;
  font-weight: 700;
  background: #f1f8f1;
}

.status-nao {
  color: #c62828;
  font-weight: 700;
  background: #fdf1f1;
}

.status-parcial {
  color: #e65100;
  font-weight: 600;
  background: #fff8f0;
}

/* 4. Aviso e Notas */
.aviso-matriz {
  margin-top: 20px;
  font-size: 14px;
  color: #555;
  font-style: italic;
  background: #fff8e1;
  padding: 12px 16px;
  border-left: 3px solid #ffc107;
  border-radius: 4px;
}

/* 5. Cards de Detalhe dos Hospitais */
.detalhe-hospitais {
  margin: 50px 0;
}

.card-hospital-detalhe {
  background: #faf8f5;
  border-left: 4px solid #977433;
  padding: 24px;
  margin-bottom: 20px;
  border-radius: 0 8px 8px 0;
  transition: transform 0.2s ease;
}

.card-hospital-detalhe:hover {
  transform: translateX(4px);
}

.card-hospital-detalhe h3 {
  margin-top: 0;
  color: #1a1a1a;
  font-size: 20px;
  margin-bottom: 12px;
}

.card-hospital-detalhe p {
  margin: 0;
  color: #4a4a4a;
  line-height: 1.6;
}

/* 6. CTA Final (Caixa de Conversão) */
.cta-final-box {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  color: #fff;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  margin: 50px 0;
}

.cta-final-box h3 {
  color: #fff;
  margin-bottom: 16px;
  margin-top: 0;
  font-size: 22px;
}

.cta-final-box p {
  color: #ccc;
  margin-bottom: 24px;
  font-size: 16px;
}

.botao-whatsapp-destaque {
  display: inline-block;
  background: #25D366;
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.botao-whatsapp-destaque:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  color: #fff;
}

/* 7. Responsividade (Mobile) */
@media (max-width: 768px) {
  .infografico-matriz {
    padding: 20px;
  }
  
  .infografico-matriz h2 {
    font-size: 20px;
  }
  
  .cta-final-box {
    padding: 24px;
  }
  
  .cta-final-box h3 {
    font-size: 18px;
  }
  
  .botao-whatsapp-destaque {
    width: 100%;
    box-sizing: border-box;
  }
}