/* ================================================================
   SIGMA-PLI — M00 Home — Guias "Como Fazer"
   Páginas visuais de passo a passo — sem sidebar, foco em cards
   ================================================================ */

/* ── 1. WRAPPER ─────────────────────────────────────────────────── */
.como-wrapper {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 28px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── 2. SECTION PANELS ──────────────────────────────────────────── */
.como-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  padding: 28px 32px;
}

.como-section-head {
  margin-bottom: 22px;
}

.como-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pli-navy, #1c3d59);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
}

.como-section-title i {
  width: 20px;
  text-align: center;
  opacity: 0.75;
}

.como-section-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  padding-left: 30px;
  text-align: justify;
}

/* ── 3. NEEDS / PRÉ-REQUISITOS ──────────────────────────────────── */
.como-needs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.como-need-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--pli-navy, #1c3d59);
  transition: border-color 180ms ease;
}

.como-need-item:hover {
  border-color: var(--pli-green, #3ec26e);
}

.como-need-item i {
  flex-shrink: 0;
  font-size: 0.88rem;
  color: var(--pli-green, #3ec26e);
}

/* ── 4. STEPS GRID ──────────────────────────────────────────────── */
.como-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.como-steps-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.como-step-card {
  position: relative;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 26px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.como-step-card:hover {
  border-color: var(--pli-blue, #116593);
  box-shadow: 0 4px 16px rgba(17, 101, 147, 0.12);
}

.como-step-card__num {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pli-navy, #1c3d59);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.como-step-card__icon {
  font-size: 2rem;
  color: var(--pli-blue, #116593);
  margin: 8px 0 12px;
  line-height: 1;
}

.como-step-card__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pli-navy, #1c3d59);
  margin: 0 0 8px;
}

.como-step-card__desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.como-step-card__desc strong {
  color: var(--pli-navy, #1c3d59);
  font-weight: 600;
}

.como-step-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 10px;
}

.como-chip {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.como-chip--danger {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.como-text--danger {
  color: #dc2626;
  font-weight: 600;
}

/* ── 5. STATUS FLOW ─────────────────────────────────────────────── */
.como-status-flow {
  display: flex;
  align-items: flex-start;
}

.como-status-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
}

.como-status-node__icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
  border: 2px solid transparent;
}

.como-status-node__icon-wrap--pending {
  background: #f1f5f9;
  border-color: #cbd5e0;
  color: #64748b;
}

.como-status-node__icon-wrap--waiting {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.como-status-node__icon-wrap--approved {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

.como-status-node__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.como-status-node__badge--pending {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e0;
}

.como-status-node__badge--waiting {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.como-status-node__badge--approved {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.como-status-node__desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
  max-width: 180px;
}

.como-status-connector {
  flex-shrink: 0;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  color: #94a3b8;
  font-size: 1.1rem;
}

/* ── 6. CTA CARD ─────────────────────────────────────────────────── */
.como-cta-card {
  background: linear-gradient(135deg, #003b5a 0%, #1c3d59 100%);
  border-radius: 8px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.como-cta-card__text {
  flex: 1;
}

.como-cta-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.como-cta-card__subtitle {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.como-cta-card__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.como-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pli-green, #3ec26e);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 6px;
  transition:
    background 180ms ease,
    transform 120ms ease;
  white-space: nowrap;
}

.como-cta-btn-primary:hover {
  background: var(--pli-green-dark, #2aa358);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.como-cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 0;
  transition: color 180ms ease;
}

.como-cta-btn-secondary:hover {
  color: #fff;
  text-decoration: none;
}

/* ── 7. PERFIS CHIPS (guia de login) ────────────────────────────── */
.como-perfis-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.como-perfil-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid;
}

.como-perfil-chip--vis {
  background: #f0f7ff;
  color: #1a6fb5;
  border-color: #1a6fb5;
}
.como-perfil-chip--op {
  background: #fff7ed;
  color: #b45309;
  border-color: #b45309;
}
.como-perfil-chip--an {
  background: #f0fdf4;
  color: #166534;
  border-color: #166534;
}
.como-perfil-chip--gest {
  background: #faf5ff;
  color: #7c3aed;
  border-color: #7c3aed;
}
.como-perfil-chip--admin {
  background: #fff1f2;
  color: #be123c;
  border-color: #be123c;
}

/* ── 8. OBSERVAÇÃO (link para outro guia) ───────────────────────── */
.como-section-obs {
  margin-top: 14px;
  font-size: 0.82rem;
  color: #64748b;
  text-align: justify;
}

.como-section-obs i {
  color: var(--pli-blue, #116593);
}

.como-section-obs a {
  color: var(--pli-blue, #116593);
  font-weight: 600;
  text-decoration: none;
}

.como-section-obs a:hover {
  text-decoration: underline;
}

/* ── 9. PROBLEMAS COMUNS GRID ───────────────────────────────────── */
.como-problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.como-problems-grid--cols3 {
  grid-template-columns: repeat(3, 1fr);
}

.como-problem-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff8f8;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 14px 16px;
}

.como-problem-item__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #fee2e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  font-size: 0.9rem;
}

.como-problem-item__body strong {
  display: block;
  font-size: 0.85rem;
  color: var(--pli-navy, #1c3d59);
  margin-bottom: 4px;
}

.como-problem-item__body p {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

/* ── 10. BADGE RESTRITO ──────────────────────────────────────────── */
.guia-badge--restrito {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* ── 11. PERFIS DO CATÁLOGO ──────────────────────────────────────── */
.como-perfis-catalogo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.como-perfil-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pli-navy, #1c3d59);
  text-align: center;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.como-perfil-cat-item:hover {
  border-color: var(--pli-blue, #116593);
  background: #f0f7ff;
}

.como-perfil-cat-item i {
  font-size: 1.3rem;
  color: var(--pli-blue, #116593);
}

/* ── 12. VARIANTE INFO (problem-item azul) ───────────────────────── */
.como-problem-item--info {
  background: #f0f7ff;
  border-color: #bfdbfe;
}

.como-problem-item__icon--info {
  background: #dbeafe;
  color: var(--pli-blue, #116593);
}

/* ── 14. FILTROS / GRUPOS DE COLUNAS ─────────────────────────────── */
.como-subsection-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pli-navy, #1c3d59);
  margin: 20px 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.como-subsection-title--spaced {
  margin-top: 26px;
}

.como-subsection-title i {
  font-size: 0.85rem;
  opacity: 0.7;
}

.como-subsection-intro {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 14px;
  text-align: justify;
}

.como-colgroup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
  margin-bottom: 14px;
}

.como-colgroup-card {
  border-radius: 8px;
  padding: 18px 20px;
  border: 1px solid;
}

.como-colgroup-card--base {
  background: #f0f7ff;
  border-color: #bfdbfe;
}

.como-colgroup-card--spec {
  background: #f0fdf4;
  border-color: #a7f3d0;
}

.como-colgroup-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.como-colgroup-card--base .como-colgroup-card__header > i {
  color: var(--pli-blue, #116593);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.como-colgroup-card--spec .como-colgroup-card__header > i {
  color: var(--pli-green-dark, #2aa358);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.como-colgroup-card__badge {
  background: rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  white-space: nowrap;
}

.como-colgroup-card__header strong {
  font-size: 0.85rem;
  color: var(--pli-navy, #1c3d59);
}

.como-colgroup-card__header code {
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 400;
  background: rgba(0, 0, 0, 0.07);
  padding: 0 4px;
  border-radius: 3px;
}

.como-colgroup-card__desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 10px;
  text-align: justify;
}

.como-colgroup-card__desc strong {
  color: var(--pli-navy, #1c3d59);
}

.como-colgroup-card__fields {
  margin: 0;
  padding-left: 16px;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.9;
  text-align: justify;
}

.como-colgroup-card__fields li em {
  font-style: normal;
  font-weight: 600;
  color: var(--pli-navy, #1c3d59);
}

/* ── 13. RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .como-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .como-wrapper {
    padding: 0 12px 40px;
  }

  .como-section {
    padding: 20px 16px;
  }

  .como-steps-grid {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .como-status-flow {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .como-status-connector {
    transform: rotate(90deg);
    padding: 0;
    width: auto;
  }

  .como-cta-card {
    flex-direction: column;
    padding: 24px 20px;
  }

  .como-cta-card__actions {
    align-items: stretch;
    width: 100%;
  }

  .como-cta-btn-primary,
  .como-cta-btn-secondary {
    justify-content: center;
  }
}
