/* [PN2 OCT 2026] Plan de Negocio 2.0 — complementos Apple sobre .plan-negocio-modal / .pn-* (modal-apple.css) */
.pn2-modal { max-width: 1180px; }
.pn2 .pn-tabs { flex-wrap: wrap; }
.pn2 .pn-tab { font-size: 13px; padding: 10px 12px; }
.pn2-chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 4px; line-height: 1.5; }
.pn2-chip-ok { background: #dcfce7; color: #166534; }
.pn2-chip-pliego { background: #dbeafe; color: #1e40af; }
.pn2-chip-warn { background: #fef3c7; color: #92400e; }
.pn2-chip-ko { background: #fee2e2; color: #991b1b; }
.pn2-estado-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid; border-radius: 10px; margin-bottom: 12px; font-size: 13px; }
.pn2-no-aprobable { font-size: 12px; font-weight: 600; color: #991b1b; background: #fee2e2; padding: 4px 10px; border-radius: 8px; }
.pn2-muted { color: #64748b; font-size: 12px; }
.pn2-error { color: #b91c1c; font-size: 12px; }
.pn2-kpi-sub { font-size: 11px; color: #64748b; margin-top: 2px; }
.pn2-h4 { margin: 12px 0 6px; font-size: 13px; color: #334155; font-weight: 600; }
.pn2-link { font-size: 12px; font-weight: 500; color: #1d4ed8; margin-left: 8px; }
.pn2-narrativa { background: linear-gradient(135deg, #eff6ff, #f5f3ff); border: 1px solid #dbeafe; border-radius: 12px; padding: 12px 16px; }
.pn2-narrativa p { font-size: 13.5px; line-height: 1.6; color: #1e293b; margin: 0 0 8px; }
.pn2-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.pn2-check { font-size: 12.5px; padding: 6px 10px; border-radius: 8px; background: #f8fafc; border: 1px solid #e2e8f0; }
.pn2-check span { font-weight: 700; margin-right: 4px; }
.pn2-check.ok { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.pn2-check.ko { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.pn2-check.warn { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.pn2-check em { font-style: normal; font-size: 11px; opacity: .8; }
.pn2-apartados { display: flex; flex-wrap: wrap; gap: 6px; }
.pn2-apartado { font-size: 12px; padding: 4px 8px 4px 10px; border-radius: 999px; background: #f1f5f9; color: #334155; display: inline-flex; align-items: center; gap: 4px; }
.pn2-avisos { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #78350f; }
.pn2-avisos ul { margin: 6px 0 0 18px; }
.pn2-lista { margin: 6px 0 0 18px; font-size: 12.5px; line-height: 1.5; }
.pn2-pre { white-space: pre-wrap; font-size: 12.5px; line-height: 1.5; color: #334155; background: #f8fafc; border-radius: 8px; padding: 10px 12px; max-height: 320px; overflow: auto; }
.pn2-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; align-items: center; }
.pn2-actions label { font-size: 12.5px; color: #334155; }
.pn2-actions select { font-size: 12.5px; padding: 4px 6px; border: 1px solid #cbd5e1; border-radius: 6px; }
.pn2-btn-forzar { background: #f59e0b; color: #fff; }
.pn2-form { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; margin: 8px 0 12px; }
.pn2-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pn2-form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #475569; font-weight: 600; }
.pn2-form-grid input, .pn2-form-grid select, .pn2-form-grid textarea { font-size: 13px; font-weight: 400; padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #1e293b; font-family: inherit; }
.pn2-form-grid .pn2-full { grid-column: 1 / -1; }
.pn2-form-grid .pn2-inline { flex-direction: row; align-items: center; }
.pn2-bloque { padding: 10px 0; border-bottom: 1px solid #e2e8f0; }
.pn2-bloque-cab { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.pn2-barra { height: 6px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin: 6px 0; }
.pn2-barra > div { height: 100%; border-radius: 999px; transition: width .4s ease; }
@media (prefers-color-scheme: dark) {
  .pn2-check { background: #1e293b; border-color: #334155; color: #e2e8f0; }
  .pn2-apartado { background: #1e293b; color: #e2e8f0; }
  .pn2-form { background: #0f172a; border-color: #334155; }
  .pn2-form-grid input, .pn2-form-grid select, .pn2-form-grid textarea { background: #1e293b; color: #e2e8f0; border-color: #475569; }
  .pn2-pre { background: #0f172a; color: #e2e8f0; }
  .pn2-narrativa { background: #1e293b; border-color: #334155; }
  .pn2-narrativa p { color: #e2e8f0; }
}
