@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1s linear infinite;
}

.evento-btn {
    min-height: 120px;
    transition: all 0.2s ease;
}

/* Marcaje del portal al estilo de la tableta (homologación 2026-10-28).
   Tokens en css/marca.css. Verde SOLO para marcar asistencia. */
.marcaje-evento {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 96px; padding: 18px 8px; font-size: 18px; font-weight: 700; line-height: 1.2;
    text-align: center; border: 2px solid #B0E3E2; border-radius: var(--reasis-radio);
    background: #fff; color: var(--reasis-tinta); cursor: pointer;
}
.marcaje-evento:hover:not(:disabled) { border-color: var(--reasis-accion); background: var(--reasis-menta); }
/* Elegido: igual que el evento sugerido de la tableta */
.marcaje-evento.sel,
.marcaje-evento.sel:hover { border-color: var(--reasis-marcar-borde); background: var(--reasis-marcar-sugerido); color: #fff; }
.marcaje-evento .evento-motivo { font-size: 13px; font-weight: 500; line-height: 1.3; }
.marcaje-evento .evento-motivo:empty { display: none; }
/* No permitido ahora: sin opacidad, el motivo debe leerse */
.marcaje-evento:disabled { cursor: not-allowed; border-style: dashed; border-color: #d1d5db;
    background: #f9fafb; color: #6b7280; }
.marcaje-evento:disabled .evento-motivo { color: #4b5563; }
.marcaje-evento.registrado:disabled { border-style: solid; border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.marcaje-evento.registrado .evento-nombre::before { content: '✓ '; }
.marcaje-evento.registrado:disabled .evento-motivo { color: #166534; }
.btn-marcar {
    width: 100%; max-width: 420px; padding: 18px 36px; font-size: 22px; font-weight: 700;
    border: none; border-radius: var(--reasis-radio); background: var(--reasis-marcar); color: #fff; cursor: pointer;
}
.btn-marcar:hover:not(:disabled) { background: #15803d; }
.btn-marcar:disabled { opacity: .4; cursor: not-allowed; }
.marcaje-evento:focus-visible, .btn-marcar:focus-visible {
    outline: 3px solid var(--reasis-marca); outline-offset: 3px;
}

/* Confirmación grande (como #confirmacion de la tableta): legible de lejos,
   se cierra sola o al tocarla */
.confirmacion-grande {
    position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center; padding: 24px; cursor: pointer;
}
.confirmacion-grande[hidden] { display: none; }
.confirmacion-grande.ok { background: var(--reasis-ok); color: #dcfce7; }
.confirmacion-grande.error { background: var(--reasis-error); color: #fee2e2; }
.confirmacion-grande .icono { font-size: clamp(88px, 22vw, 120px); line-height: 1; }
.confirmacion-grande .quien { font-size: clamp(28px, 7vw, 44px); font-weight: 700; margin-top: 12px; }
.confirmacion-grande .quien:empty { display: none; }
.confirmacion-grande .que { font-size: clamp(20px, 5vw, 28px); margin-top: 10px; max-width: 720px; }
.confirmacion-grande .cerrar { font-size: 15px; margin-top: 28px; opacity: .85; }
