/* PQRComplexity — flujo de atención de PQRs · landing Complexity */
:root {
  --pqr-accent: #059669;
  --pqr-accent-light: #34d399;
  --pqr-glow: rgba(5, 150, 105, 0.4);
  --pqr-blue: #6cAED1;
}

.text-gradient-pqr {
  background: linear-gradient(135deg, #34d399 0%, #059669 45%, #6CAED1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-product-name.pqr-brand {
  background: linear-gradient(135deg, #34d399, #059669);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/*
 * En brand.css la clase .btn solo define tipografía y disposición: el alto y el
 * padding los aporta la clase de tamaño (.btn-primary, .btn-outline, .btn-sm).
 * .btn-pqr nacía únicamente con color, así que en su versión grande quedaba con
 * padding 0 y el texto tocaba los bordes. Se le da aquí su propio tamaño y se
 * excluye .btn-sm, que ya trae el suyo.
 */
.btn-pqr {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  border: none;
  box-shadow: 0 4px 24px rgba(5, 150, 105, 0.26);
}
.btn-pqr:not(.btn-sm) {
  height: 48px;
  padding: 0 32px;
  border-radius: var(--radius-xl);
}
.btn-pqr:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(5, 150, 105, 0.34);
}

.lab-hero-pqr {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) 0 3rem;
}

.lab-hero-pqr .lab-hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 50% 45% at 75% 15%, rgba(5, 150, 105, 0.2), transparent 65%),
    radial-gradient(ellipse 35% 40% at 15% 55%, rgba(108, 174, 209, 0.12), transparent 60%);
  pointer-events: none;
}

/* ---- tablero del hero: la corrida de los siete agentes ---- */
.pqr-hero-panel {
  position: relative;
  min-height: 22rem;
  border-color: rgba(5, 150, 105, 0.35) !important;
  box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.12), 0 24px 64px rgba(5, 150, 105, 0.14);
  padding: 0;
  overflow: hidden;
}

.pqr-panel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(5, 150, 105, 0.2);
  background: hsl(var(--surface) / 0.5);
  font-size: 0.82rem;
}

.pqr-panel-body { padding: 14px; display: grid; gap: 10px; }

.pqr-step {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  background: hsl(var(--surface) / 0.35);
  font-size: 0.82rem;
}

.pqr-step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 1.6rem;
  border-radius: 6px;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  background: rgba(5, 150, 105, 0.12);
  border: 1px solid rgba(5, 150, 105, 0.3);
}

.pqr-step__state {
  font-family: ui-monospace, monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.pqr-step--parallel { border-left: 3px solid rgba(5, 150, 105, 0.45); }

/* ---- marcas que el flujo deja a propósito ---- */
.pqr-mark {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.pqr-mark--verificar { background: rgba(217, 119, 6, 0.15); color: #b45309; }
.pqr-mark--insumo { background: rgba(220, 38, 38, 0.12); color: #b91c1c; }

/* ---- rejilla de los siete agentes ---- */
.pqr-agents { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.pqr-agent {
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  padding: 14px;
  background: hsl(var(--surface) / 0.4);
}

.pqr-agent__n {
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: #059669;
  letter-spacing: 0.06em;
}

.pqr-agent h4 { margin: 4px 0 6px; font-size: 1rem; }
.pqr-agent p { font-size: 0.86rem; opacity: 0.85; margin: 0; }

/* ---- reglas duras ---- */
.pqr-rules { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pqr-rule {
  border-left: 3px solid #059669;
  padding: 8px 0 8px 14px;
  font-size: 0.9rem;
}
.pqr-rule strong { display: block; margin-bottom: 2px; }
