/* MBC panel-nino (2026-11-11): estilos del panel de control del niño.
   Marca MBC: teal #03AC9D + amarillo #FCC321. Prefijo .pn- para no chocar
   con la SPA ni con los demás overlays. */

.pn-btn {
  border: 1px solid #03AC9D;
  background: linear-gradient(135deg, #03AC9D, #028F82);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 10px;
  padding: 7px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.pn-btn:hover { filter: brightness(1.07); }

.pn-backdrop {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(9, 38, 34, 0.55);
  display: flex; align-items: stretch; justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.pn-sheet {
  background: #f6faf9;
  width: 100%; max-width: 760px;
  min-height: 100%;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}
@media (min-width: 820px) {
  .pn-backdrop { align-items: flex-start; padding: 28px 12px; }
  .pn-sheet { min-height: 0; border-radius: 24px; max-height: calc(100vh - 56px); }
}

.pn-load { padding: 64px 24px; text-align: center; color: #446; font-size: 15px; }
.pn-close2 { margin-top: 16px; border: 1px solid #03AC9D; color: #028F82; background: #fff; border-radius: 10px; padding: 8px 16px; font-weight: 700; cursor: pointer; }

.pn-head {
  position: sticky; top: 0; z-index: 3;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(120deg, #027F74, #03AC9D 55%, #35BFA9);
  color: #fff;
  border-bottom: 4px solid #FCC321;
}
.pn-ava {
  width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto;
  background: #FCC321; color: #083a34;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900;
  border: 3px solid rgba(255, 255, 255, 0.7);
}
.pn-head-t { flex: 1 1 auto; min-width: 0; }
.pn-head-t h3 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: 0.2px; }
.pn-head-t p { margin: 2px 0 0; font-size: 13px; opacity: 0.92; }
.pn-x {
  border: 0; background: rgba(255, 255, 255, 0.18); color: #fff;
  width: 36px; height: 36px; border-radius: 50%; font-size: 16px; cursor: pointer; flex: 0 0 auto;
}
.pn-x:hover { background: rgba(255, 255, 255, 0.3); }

.pn-chips { display: flex; gap: 8px; padding: 12px 20px 0; flex-wrap: wrap; }
.pn-chip {
  border: 1.5px solid #03AC9D; background: #fff; color: #027F74;
  border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13px; cursor: pointer;
}
.pn-chip.on { background: #03AC9D; color: #fff; }

.pn-body { padding: 16px 20px 28px; display: flex; flex-direction: column; gap: 14px; }
.pn-card {
  background: #fff; border: 1px solid #e3efec; border-radius: 18px;
  padding: 16px 18px; box-shadow: 0 2px 10px rgba(2, 90, 80, 0.05);
}
.pn-card h4 { margin: 0 0 10px; font-size: 16px; font-weight: 800; color: #0b3d37; }
.pn-kicker { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #7aa79f; }
.pn-level-name { font-size: 20px; font-weight: 900; color: #06302a; margin: 2px 0 10px; }
.pn-bar { height: 12px; border-radius: 999px; background: #e6f2ef; overflow: hidden; }
.pn-bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #03AC9D, #FCC321);
  transition: width 0.6s ease;
}
.pn-level-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: #40655e; font-weight: 600; }
.pn-next { margin-top: 10px; font-size: 13px; color: #40655e; }
.pn-next strong { color: #027F74; }

.pn-doors { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 14px; }
.pn-door {
  display: flex; align-items: center; gap: 7px;
  border-radius: 12px; padding: 8px 10px; font-size: 13px; font-weight: 700;
  border: 1.5px solid #e3efec; color: #5b7a74; background: #fbfdfd;
}
.pn-door.done { border-color: #03AC9D; background: #e9f8f5; color: #027F74; }
.pn-door.now { border-color: #FCC321; background: #fff8e2; color: #7a5c00; }
.pn-door-ic { font-size: 16px; }
.pn-door-mark { margin-left: auto; font-weight: 900; }

.pn-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pn-stat {
  background: linear-gradient(160deg, #ffffff, #eefaf7);
  border: 1px solid #e3efec; border-radius: 16px; padding: 12px 8px; text-align: center;
}
.pn-stat-n { font-size: 21px; font-weight: 900; color: #027F74; }
.pn-stat-l { font-size: 12px; font-weight: 700; color: #6d8f88; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.6px; }

.pn-row { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #e8f1ef; }
.pn-row:last-child { border-bottom: 0; }
.pn-row-t { flex: 1 1 auto; min-width: 0; font-size: 14px; color: #173f39; font-weight: 600; }
.pn-row-d { font-size: 12px; color: #7d9a94; white-space: nowrap; }
.pn-amt { font-size: 13px; font-weight: 800; color: #173f39; white-space: nowrap; }
.pn-amt.pos { color: #028F82; }
.pn-amt.neg { color: #c2452d; }
.pn-empty { margin: 0; font-size: 14px; color: #6d8f88; }
.pn-note { margin: 10px 0 0; font-size: 13px; color: #8a6d00; background: #fff8e2; border: 1px solid #FCC321; border-radius: 10px; padding: 8px 10px; }
.pn-now { font-size: 14px; color: #173f39; margin-bottom: 6px; }
.pn-next-exp { margin-top: 10px; font-size: 13px; color: #40655e; background: #f2faf8; border-radius: 10px; padding: 9px 11px; }

.pn-dara-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: #40655e; }
.pn-dara-head strong { font-size: 24px; color: #027F74; font-weight: 900; }
.pn-dara-sub { font-size: 13px; color: #6d8f88; margin: 2px 0 8px; }
.pn-dara-sub strong { color: #173f39; }

.pn-biz-name { font-size: 18px; font-weight: 900; color: #06302a; }
.pn-biz-type { font-size: 12px; font-weight: 700; color: #027F74; background: #e9f8f5; border-radius: 999px; padding: 3px 9px; vertical-align: 2px; }
.pn-biz-slogan { font-size: 14px; color: #40655e; font-style: italic; margin-top: 2px; }
.pn-biz-since { font-size: 12px; color: #7d9a94; margin-top: 2px; }
.pn-biz-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.pn-biz-stats > div { background: #f2faf8; border-radius: 12px; padding: 9px 6px; text-align: center; }
.pn-biz-stats strong { display: block; font-size: 17px; color: #027F74; }
.pn-biz-stats span { font-size: 11px; font-weight: 700; color: #6d8f88; text-transform: uppercase; letter-spacing: 0.4px; }
.pn-biz-sub { font-size: 13px; font-weight: 800; color: #0b3d37; margin: 12px 0 4px; }
.pn-unpaid { font-size: 11px; font-weight: 800; color: #a33b20; background: #fdeee9; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.pn-goal { font-size: 14px; color: #6d8f88; padding: 4px 0; }
.pn-goal span:first-child { font-weight: 900; margin-right: 4px; }
.pn-goal.done { color: #027F74; font-weight: 600; }

.pn-tl { display: flex; flex-direction: column; }
.pn-tl-i { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #e8f1ef; }
.pn-tl-i:last-child { border-bottom: 0; }
.pn-tl-ic {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%;
  background: #e9f8f5; display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.pn-tl-t { font-size: 14px; font-weight: 600; color: #173f39; }
.pn-tl-d { font-size: 12px; color: #7d9a94; }

.pn-foot { text-align: center; font-size: 12px; color: #93aca6; margin: 4px 0 0; }

@media (max-width: 560px) {
  .pn-body { padding: 12px 12px 22px; }
  .pn-head { padding: 14px; }
  .pn-head-t h3 { font-size: 19px; }
  .pn-stat-n { font-size: 18px; }
  .pn-row { flex-wrap: wrap; }
}

/* Formalización de la empresa (Fase 3): número de documento bajo cada etapa */
.pn-fz-num { margin: 1px 0 2px 22px; font-size: 12px; color: #5c737d; font-weight: 600; }
