/* Panel de la delegada. Se suma a curso.css (mismo look que las pantallas de familias). */

.barra-grande { flex: 1; min-width: 0; }
.barra-grande .barra-tit, .barra-grande .barra-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-cuerpo { padding-bottom: 8px; }
.sin-margen { margin-top: 0; margin-bottom: 0; }
.subtit { font-size: 1.02rem; margin: 18px 0 10px; }
.acciones-fila { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.acciones-fila .btn { flex: 1 1 180px; }
.acciones-fila .btn-chico { flex: 0 0 auto; }
a.btn { text-decoration: none; }

/* sello de libro cerrado */
.sello {
  display: flex; gap: 16px; align-items: center; margin-bottom: 14px; padding: 18px 20px;
  background: var(--verde-claro); border: 2px solid var(--verde); border-radius: var(--r-xl); color: var(--verde-hondo);
}
.sello h2 { font-size: 1.25rem; }
.sello p { margin: 4px 0 0; font-size: .92rem; color: #14513A; }
.sello-ico {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--verde); color: #fff; font-size: 1.6rem; font-weight: 800; transform: rotate(-8deg);
  box-shadow: 0 0 0 4px var(--verde-claro), 0 0 0 6px var(--verde);
}

/* avance: anillo */
.avance-fila { display: flex; gap: 20px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.anillo { position: relative; width: 128px; height: 128px; flex: none; }
.anillo svg { display: block; }
.anillo-fondo { stroke: var(--verde-claro); }
.anillo-avance { stroke: var(--verde); transition: stroke-dashoffset .5s ease; }
.anillo-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Quicksand'; font-weight: 700; font-size: 1.7rem; }
.avance-txt { flex: 1 1 140px; min-width: 0; }
.avance-grande { font-family: 'Quicksand'; font-weight: 700; font-size: 1.25rem; margin: 0; line-height: 1.25; }

/* recordatorio */
.recordatorio { margin-top: 12px; min-height: 180px; font-size: .95rem; overflow: hidden; resize: none; }

/* lista de niños */
.filas { display: grid; gap: 8px; }
.fila { display: flex; gap: 8px; align-items: stretch; }
.fila .nino { flex: 1; min-width: 0; }
.fila .nino:disabled { opacity: .72; box-shadow: none; }
.fila .nino:disabled:hover { border-color: transparent; transform: none; }
.fila .nino small { display: block; }
.fila .nino .reclamado { color: var(--morado); }
.fila > .btn-chico { flex: none; align-self: center; }
.confirmar-fila { display: flex; gap: 6px; align-items: center; flex: none; align-self: center; font-weight: 700; font-size: .85rem; }
.confirmar-fila .btn-chico { padding: 8px 14px; }

/* orden de secciones */
.orden { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.orden-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--lienzo-alto);
  border-radius: var(--r-m); border: 1px solid var(--linea);
}
.orden-num {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blanco); font-family: 'Quicksand'; font-weight: 700; font-size: .85rem; color: var(--tinta-suave);
}
.orden-nombre { flex: 1; min-width: 0; line-height: 1.25; }
.orden-nombre b { font-family: 'Quicksand'; font-size: .95rem; overflow-wrap: anywhere; }
.orden-nombre small { display: block; font-size: .74rem; color: var(--tinta-suave); }
.orden-botones { display: flex; gap: 6px; flex: none; }
.mini-btn {
  min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: var(--r-s); background: var(--blanco);
  border: 1.5px solid var(--linea); font-weight: 800; font-size: 1.05rem; color: var(--tinta);
}
.mini-btn:hover:not(:disabled) { border-color: var(--linea-fuerte); box-shadow: var(--alza); }
.mini-btn:disabled { opacity: .35; }
.mini-btn.quitar { font-size: .8rem; font-family: 'Quicksand'; color: #A8240F; }
.agregar-fila { display: flex; gap: 8px; align-items: stretch; }
.agregar-fila select { flex: 1; min-width: 0; }
@media (max-width: 400px) {
  .orden-item { flex-wrap: wrap; }
  .orden-nombre { flex-basis: calc(100% - 44px); }
  .orden-botones { margin-left: 38px; }
}

/* cierre */
.advertencia ul { margin: 8px 0 0; padding-left: 20px; }
.advertencia li { margin: 3px 0; overflow-wrap: anywhere; }
.confirmar { margin-top: 14px; padding: 16px; border: 2px solid var(--coral); border-radius: var(--r-m); background: var(--coral-claro); }
.confirmar h3 { font-size: 1.05rem; color: #7E2515; }
.confirmar p { margin: 8px 0 0; font-size: .92rem; color: #7E2515; }

/* cuenta */
details.tarjeta summary { cursor: pointer; font-family: 'Quicksand'; font-weight: 700; font-size: 1.02rem; min-height: 32px; }
details.tarjeta[open] summary { margin-bottom: 8px; }

/* extras del libro */
.extra-cab { display: flex; gap: 10px 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.etiqueta-estado {
  font-size: .8rem; font-weight: 800; padding: 4px 11px; border-radius: 99px; background: var(--coral-claro); color: #7E2515;
}
.etiqueta-estado.ok { background: var(--verde-claro); color: var(--verde-hondo); }
.extra .bajada { margin: 8px 0 14px; }
.interruptor { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; font-weight: 700; }
.interruptor input { position: absolute; opacity: 0; width: 48px; height: 48px; margin: 0; }
.interruptor-pista {
  flex: none; width: 50px; height: 30px; border-radius: 99px; background: #C9C2DA; position: relative; transition: background .15s;
}
.interruptor-pista::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s;
}
.interruptor input:checked + .interruptor-pista { background: var(--verde); }
.interruptor input:checked + .interruptor-pista::after { transform: translateX(20px); }
.interruptor input:focus-visible + .interruptor-pista { outline: 3px solid var(--verde); outline-offset: 2px; }
.interruptor input:disabled + .interruptor-pista { opacity: .55; }
.fotos-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .fotos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.foto-marco { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; background: var(--lienzo-alto); }
.foto-marco img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-num {
  position: absolute; left: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.92); font-family: 'Quicksand'; font-weight: 700; font-size: .85rem;
}
.foto-botones { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.foto-botones .mini-btn { min-width: 44px; padding: 0 6px; flex: 1 1 40%; }
.foto-botones .mini-btn.quitar { flex-basis: 100%; font-size: .85rem; }
.btn-foto { position: relative; cursor: pointer; text-align: center; }
.btn-foto.inactivo { opacity: .5; cursor: not-allowed; }
.btn-foto input:focus-visible ~ * { outline: none; }
.btn-foto:focus-within { outline: 3px solid var(--verde); outline-offset: 2px; }
.contador { font-weight: 700; margin-left: 4px; }
.foto-una { width: min(240px, 100%); aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; background: var(--lienzo-alto); margin-bottom: 4px; }
.foto-una img { width: 100%; height: 100%; object-fit: cover; display: block; }
.staff-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.staff-fila { display: flex; gap: 14px; align-items: flex-start; }
.staff-foto {
  flex: none; width: 76px; height: 84px; border-radius: var(--r-m); overflow: hidden; background: var(--lienzo-alto);
  display: grid; place-items: center; font-size: 1.8rem;
}
.staff-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.staff-datos { flex: 1; min-width: 0; }
.staff-datos label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.staff-datos .acciones-fila { gap: 8px; margin-top: 10px; }
.staff-datos .acciones-fila .btn { flex: 1 1 96px; padding: 8px 10px; }
.extra .acciones-fila { align-items: stretch; }
