/* Zona del profesor */
body { background: var(--orange, #d8682a); }
.profe { width: 100%; max-width: 900px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 40px; display: flex; flex-direction: column; gap: 18px; }
.profe-head { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; text-align: center; position: relative; }
.profe-logo { width: clamp(150px, 24vw, 220px); height: auto; }
.profe-title { font-size: clamp(30px, 5vw, 44px); font-weight: 900; }
.pf-volver { align-self: flex-start; color: #fff; font-weight: 800; min-height: 44px; display: inline-flex; align-items: center; }
.pf-panel { background: #fffaf0; color: var(--ink, #1d1410); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.pf-panel h2 { font-size: 24px; font-weight: 900; }
.pf-panel h3 { font-size: 17px; font-weight: 800; }
.pf-nota { color: var(--muted, #6a564c); font-weight: 600; }
.pf-fila { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.pf-campo { display: flex; flex-direction: column; gap: 6px; font-weight: 800; flex: 1 1 260px; }
.pf-campo input, .pf-campo textarea, .pf-tabla input {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 2px solid #e2d3c6; background: #fff;
  font: 600 18px var(--font, "Outfit Local", sans-serif); color: var(--ink, #1d1410);
}
.pf-boton { min-height: 48px; padding: 8px 18px; border: 0; border-radius: 12px; cursor: pointer; font: 800 17px var(--font, "Outfit Local", sans-serif); background: #c2561f; color: #fff; }
.pf-claro { background: #fff; color: #a84a18; box-shadow: inset 0 0 0 2.5px #c2561f; }
.pf-peligro { background: #b42318; color: #fff; }
.recortes .rc-btn.pf-boton { --rc-btn: #c2561f; }
.recortes .rc-btn.pf-claro { --rc-btn: #fffaf0; box-shadow: none; }
.recortes .rc-btn.pf-peligro { --rc-btn: #b42318; }
.pf-error { min-height: 1.2em; color: #b42318; font-weight: 800; }
.pf-ok { color: #2f7a3b; }
.pf-cabecera { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.pf-tabla-caja { overflow-x: auto; }
.pf-tabla { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pf-tabla th, .pf-tabla td { padding: 8px 6px; text-align: left; border-bottom: 1.5px solid #eadccf; vertical-align: middle; }
.pf-tabla th { font-size: 14px; color: var(--muted, #6a564c); }
.pf-tabla td:nth-child(2), .pf-tabla td:nth-child(3), .pf-tabla td:nth-child(4), .pf-tabla th:nth-child(2), .pf-tabla th:nth-child(3), .pf-tabla th:nth-child(4) { text-align: right; }
.pf-nombre { font-weight: 800; font-size: 18px; }
.pf-acciones { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.pf-mini { min-height: 44px; padding: 6px 10px; border: 0; border-radius: 10px; cursor: pointer; font: 800 14px var(--font, "Outfit Local", sans-serif); background: #f7efe9; color: var(--ink, #1d1410); }
.pf-mini.peligro { background: #fbe1de; color: #b42318; }
.pf-mini.seguro { background: #b42318; color: #fff; }
.pf-pin { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 6px; background: #fff3cc; font-weight: 900; letter-spacing: 2px; }
.pf-tarjetas-mini { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.pf-tarjetas-mini li { padding: 10px 12px; border-radius: 12px; background: #fff3cc; font-weight: 800; }
.pf-tarjetas-mini b { display: block; font-size: 26px; letter-spacing: 4px; font-variant-numeric: tabular-nums; }
.pf-salir-caja { text-align: center; }
.print-area { display: none; }
@media (max-width: 600px) {
  .pf-tabla thead { display: none; }
  .pf-tabla tr { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1.5px solid #eadccf; }
  .pf-tabla td { border: 0; padding: 2px 0; }
  .pf-tabla td:nth-child(1) { grid-column: 1 / -1; }
  .pf-tabla td:nth-child(2)::before { content: "Semana: "; color: var(--muted, #6a564c); }
  .pf-tabla td:nth-child(3)::before { content: "Curso: "; color: var(--muted, #6a564c); }
  .pf-tabla td:nth-child(4)::before { content: "Partidas: "; color: var(--muted, #6a564c); }
  .pf-tabla td:nth-child(5) { grid-column: 1 / -1; }
  .pf-acciones { justify-content: flex-start; }
}
/* Tarjetas de acceso para imprimir y recortar */
@media print {
  body { background: #fff; }
  .profe { display: none !important; }
  .print-area { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 6mm; padding: 6mm; }
  .pf-tarjeta { border: 1.5px dashed #999; border-radius: 4mm; padding: 6mm; text-align: center; break-inside: avoid; font-family: var(--font, "Outfit Local", sans-serif); color: #1d1410; }
  .pf-tarjeta .t1 { font-size: 11pt; color: #a84a18; font-weight: 800; }
  .pf-tarjeta .t2 { font-size: 18pt; font-weight: 900; margin: 2mm 0; }
  .pf-tarjeta .t3 { font-size: 26pt; font-weight: 900; letter-spacing: 4pt; }
  .pf-tarjeta .t4 { font-size: 9pt; color: #555; margin-top: 2mm; }
}
.pc-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf-panel code { background: #f7efe9; padding: 1px 6px; border-radius: 6px; }
.pf-panel[hidden], #pf-dentro[hidden], #pf-nuevos[hidden] { display: none !important; }
